Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-22 23:59:03.739857
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20012025
  port_id : 19756516
  datou_current_id : 2496361
in upload_from_sqlite, uploading in 19756516
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250116 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250117 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250118 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250119 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250120 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_58_3164.jpg', 2), ('/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_30_2155.jpg', 2), ('/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_28_3165.jpg', 2), ('/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_25_3165.jpg', 2), ('/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_19_3168.jpg', 2), ('/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_15_3166.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_58_3164.jpg', '/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_30_2155.jpg', '/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_28_3165.jpg', '/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_25_3165.jpg', '/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_19_3168.jpg', '/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_15_3166.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2496361&datou=0
/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_58_3164.jpg
/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_30_2155.jpg
/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_28_3165.jpg
/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_25_3165.jpg
/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_19_3168.jpg
/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_15_3166.jpg
uploaded 0 photos
time to upload: 10.520849466323853 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2496361&datou=0 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86baf860>: Failed to establish a new connection: [Errno -2] Name or service not known',))
requests timeout
Result Failed!
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-22 23:59:32.779534
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20012025
  port_id : 19756516
  datou_current_id : 2496361
in upload_from_sqlite, uploading in 19756516
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250116 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250117 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250118 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250119 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250120 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_58_3164.jpg', 2), ('/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_30_2155.jpg', 2), ('/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_28_3165.jpg', 2), ('/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_25_3165.jpg', 2), ('/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_19_3168.jpg', 2), ('/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_15_3166.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_58_3164.jpg', '/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_30_2155.jpg', '/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_28_3165.jpg', '/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_25_3165.jpg', '/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_19_3168.jpg', '/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_15_3166.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2496361&datou=0
/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_58_3164.jpg
/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_30_2155.jpg
/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_28_3165.jpg
/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_25_3165.jpg
/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_19_3168.jpg
/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_15_3166.jpg
uploaded 0 photos
time to upload: 10.49314832687378 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2496361&datou=0 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2dc5860>: Failed to establish a new connection: [Errno -2] Name or service not known',))
requests timeout
Result Failed!
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 00:00:02.448779
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19012025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20012025
  port_id : 19756516
  datou_current_id : 2496361
in upload_from_sqlite, uploading in 19756516
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250116 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250117 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250118 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250119 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250120 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_58_3164.jpg', 2), ('/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_30_2155.jpg', 2), ('/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_28_3165.jpg', 2), ('/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_25_3165.jpg', 2), ('/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_19_3168.jpg', 2), ('/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_15_3166.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_58_3164.jpg', '/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_30_2155.jpg', '/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_28_3165.jpg', '/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_25_3165.jpg', '/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_19_3168.jpg', '/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_15_3166.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2496361&datou=0
/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_58_3164.jpg
/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_30_2155.jpg
/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_28_3165.jpg
/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_25_3165.jpg
/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_19_3168.jpg
/home/nano/Desktop/images/20012025/23/59/image_20012025_23_59_15_3166.jpg
uploaded 0 photos
time to upload: 10.504522562026978 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2496361&datou=0 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b302860>: Failed to establish a new connection: [Errno -2] Name or service not known',))
requests timeout
Result Failed!
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 00:00:31.897267
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/00/00/image_23012025_00_00_52_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/00/00/image_23012025_00_00_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/00/00/image_23012025_00_00_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/00/00/image_23012025_00_00_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/00/00/image_23012025_00_00_22_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/00/00/image_23012025_00_00_17_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f955124a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f955124a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f955124a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:22:02.427794
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/21/image_23012025_01_21_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/21/image_23012025_01_21_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/01/21/image_23012025_01_21_23_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/21/image_23012025_01_21_16_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/01/21/image_23012025_01_21_10_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/01/21/image_23012025_01_21_04_5183.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf64f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf64f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf64f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:22:31.846913
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/22/image_23012025_01_22_53_6211.jpg', 2), ('/home/nano/Desktop/images/23012025/01/22/image_23012025_01_22_46_6212.jpg', 2), ('/home/nano/Desktop/images/23012025/01/22/image_23012025_01_22_34_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/01/22/image_23012025_01_22_29_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/01/22/image_23012025_01_22_23_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/01/22/image_23012025_01_22_16_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f842a5438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f842a5438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f842a5438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:23:02.653482
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/22/image_23012025_01_22_53_6211.jpg', 2), ('/home/nano/Desktop/images/23012025/01/22/image_23012025_01_22_46_6212.jpg', 2), ('/home/nano/Desktop/images/23012025/01/22/image_23012025_01_22_34_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/01/22/image_23012025_01_22_29_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/01/22/image_23012025_01_22_23_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/01/22/image_23012025_01_22_16_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f46c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f46c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f46c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:23:31.953838
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/23/image_23012025_01_23_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/01/23/image_23012025_01_23_34_6212.jpg', 2), ('/home/nano/Desktop/images/23012025/01/23/image_23012025_01_23_28_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/01/23/image_23012025_01_23_23_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/01/23/image_23012025_01_23_16_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/01/23/image_23012025_01_23_10_6207.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a6ea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a6ea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a6ea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:24:02.612866
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/23/image_23012025_01_23_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/01/23/image_23012025_01_23_34_6212.jpg', 2), ('/home/nano/Desktop/images/23012025/01/23/image_23012025_01_23_28_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/01/23/image_23012025_01_23_23_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/01/23/image_23012025_01_23_16_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/01/23/image_23012025_01_23_10_6207.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e2214a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e2214a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e2214a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:24:32.050728
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/24/image_23012025_01_24_34_6211.jpg', 2), ('/home/nano/Desktop/images/23012025/01/24/image_23012025_01_24_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/01/24/image_23012025_01_24_16_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/24/image_23012025_01_24_10_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/01/23/image_23012025_01_24_04_6227.jpg', 2), ('/home/nano/Desktop/images/23012025/01/23/image_23012025_01_23_53_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faed8e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faed8e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faed8e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:25:02.806173
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/24/image_23012025_01_24_34_6211.jpg', 2), ('/home/nano/Desktop/images/23012025/01/24/image_23012025_01_24_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/01/24/image_23012025_01_24_16_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/24/image_23012025_01_24_10_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/01/23/image_23012025_01_24_04_6227.jpg', 2), ('/home/nano/Desktop/images/23012025/01/23/image_23012025_01_23_53_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f930054a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f930054a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f930054a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:25:32.168307
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/25/image_23012025_01_25_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/25/image_23012025_01_25_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/25/image_23012025_01_25_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/25/image_23012025_01_25_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/01/25/image_23012025_01_25_23_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/25/image_23012025_01_25_10_6207.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f807cd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f807cd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f807cd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:26:02.609579
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/25/image_23012025_01_25_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/25/image_23012025_01_25_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/25/image_23012025_01_25_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/25/image_23012025_01_25_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/01/25/image_23012025_01_25_23_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/25/image_23012025_01_25_10_6207.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1b124a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1b124a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1b124a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:26:32.258029
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/26/image_23012025_01_26_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/26/image_23012025_01_26_34_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/01/26/image_23012025_01_26_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/01/26/image_23012025_01_26_23_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/01/26/image_23012025_01_26_16_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/01/25/image_23012025_01_26_04_6219.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8c064a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8c064a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8c064a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:27:03.057417
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/26/image_23012025_01_26_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/26/image_23012025_01_26_34_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/01/26/image_23012025_01_26_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/01/26/image_23012025_01_26_23_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/01/26/image_23012025_01_26_16_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/01/25/image_23012025_01_26_04_6219.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8214c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8214c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8214c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:27:32.362649
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/27/image_23012025_01_27_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/01/27/image_23012025_01_27_34_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/01/27/image_23012025_01_27_23_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/01/27/image_23012025_01_27_16_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/01/26/image_23012025_01_27_04_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/01/26/image_23012025_01_26_58_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96077438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96077438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96077438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:28:02.960597
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/27/image_23012025_01_27_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/01/27/image_23012025_01_27_34_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/01/27/image_23012025_01_27_23_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/01/27/image_23012025_01_27_16_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/01/26/image_23012025_01_27_04_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/01/26/image_23012025_01_26_58_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99fee4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99fee4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99fee4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:28:32.481694
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/28/image_23012025_01_28_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/01/28/image_23012025_01_28_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/28/image_23012025_01_28_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/01/28/image_23012025_01_28_28_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/01/28/image_23012025_01_28_23_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/01/28/image_23012025_01_28_16_6209.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab4244a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab4244a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab4244a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:29:03.549992
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/28/image_23012025_01_28_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/01/28/image_23012025_01_28_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/28/image_23012025_01_28_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/01/28/image_23012025_01_28_28_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/01/28/image_23012025_01_28_23_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/01/28/image_23012025_01_28_16_6209.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa324b438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa324b438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa324b438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:29:32.593625
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/29/image_23012025_01_29_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/29/image_23012025_01_29_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/29/image_23012025_01_29_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/01/29/image_23012025_01_29_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/29/image_23012025_01_29_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/01/29/image_23012025_01_29_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4e884a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4e884a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4e884a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:30:03.023236
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/29/image_23012025_01_29_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/29/image_23012025_01_29_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/29/image_23012025_01_29_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/01/29/image_23012025_01_29_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/29/image_23012025_01_29_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/01/29/image_23012025_01_29_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faab444a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faab444a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faab444a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:30:32.705070
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/30/image_23012025_01_30_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/30/image_23012025_01_30_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/01/30/image_23012025_01_30_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/30/image_23012025_01_30_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/01/30/image_23012025_01_30_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/01/30/image_23012025_01_30_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa217b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa217b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa217b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:31:02.560714
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/30/image_23012025_01_30_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/30/image_23012025_01_30_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/01/30/image_23012025_01_30_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/30/image_23012025_01_30_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/01/30/image_23012025_01_30_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/01/30/image_23012025_01_30_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c4d84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c4d84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c4d84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:31:31.791910
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/31/image_23012025_01_31_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/31/image_23012025_01_31_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/31/image_23012025_01_31_28_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/01/31/image_23012025_01_31_23_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/01/31/image_23012025_01_31_16_6267.jpg', 2), ('/home/nano/Desktop/images/23012025/01/30/image_23012025_01_31_04_6211.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d9e64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d9e64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d9e64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:32:02.317105
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/31/image_23012025_01_31_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/31/image_23012025_01_31_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/31/image_23012025_01_31_28_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/01/31/image_23012025_01_31_23_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/01/31/image_23012025_01_31_16_6267.jpg', 2), ('/home/nano/Desktop/images/23012025/01/30/image_23012025_01_31_04_6211.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f788f44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f788f44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f788f44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:32:31.881413
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/32/image_23012025_01_32_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/01/32/image_23012025_01_32_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/32/image_23012025_01_32_34_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/01/32/image_23012025_01_32_28_5219.jpg', 2), ('/home/nano/Desktop/images/23012025/01/32/image_23012025_01_32_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/32/image_23012025_01_32_17_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89cc24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89cc24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89cc24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:33:02.627415
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/32/image_23012025_01_32_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/01/32/image_23012025_01_32_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/32/image_23012025_01_32_34_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/01/32/image_23012025_01_32_28_5219.jpg', 2), ('/home/nano/Desktop/images/23012025/01/32/image_23012025_01_32_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/32/image_23012025_01_32_17_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f835df4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f835df4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f835df4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:33:31.975360
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/33/image_23012025_01_33_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/33/image_23012025_01_33_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/33/image_23012025_01_33_23_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/01/33/image_23012025_01_33_17_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/01/33/image_23012025_01_33_10_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/32/image_23012025_01_33_04_6218.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa50814a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa50814a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa50814a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:34:02.913838
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/33/image_23012025_01_33_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/33/image_23012025_01_33_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/33/image_23012025_01_33_23_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/01/33/image_23012025_01_33_17_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/01/33/image_23012025_01_33_10_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/32/image_23012025_01_33_04_6218.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9774f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9774f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9774f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:34:32.088177
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/34/image_23012025_01_34_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/01/34/image_23012025_01_34_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/34/image_23012025_01_34_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/01/34/image_23012025_01_34_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/34/image_23012025_01_34_17_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/01/33/image_23012025_01_34_04_6221.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87a404a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87a404a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87a404a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:35:02.738678
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/34/image_23012025_01_34_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/01/34/image_23012025_01_34_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/34/image_23012025_01_34_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/01/34/image_23012025_01_34_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/34/image_23012025_01_34_17_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/01/33/image_23012025_01_34_04_6221.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa85494a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa85494a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa85494a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:35:32.188761
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/35/image_23012025_01_35_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/01/35/image_23012025_01_35_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/01/35/image_23012025_01_35_28_5196.jpg', 2), ('/home/nano/Desktop/images/23012025/01/35/image_23012025_01_35_23_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/01/35/image_23012025_01_35_17_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/01/35/image_23012025_01_35_10_6212.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c9af4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c9af4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c9af4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:36:02.654967
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/35/image_23012025_01_35_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/01/35/image_23012025_01_35_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/01/35/image_23012025_01_35_28_5196.jpg', 2), ('/home/nano/Desktop/images/23012025/01/35/image_23012025_01_35_23_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/01/35/image_23012025_01_35_17_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/01/35/image_23012025_01_35_10_6212.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f822434a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f822434a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f822434a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:36:32.289073
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/36/image_23012025_01_36_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/01/36/image_23012025_01_36_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/36/image_23012025_01_36_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/36/image_23012025_01_36_34_6210.jpg', 2), ('/home/nano/Desktop/images/23012025/01/36/image_23012025_01_36_28_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/01/36/image_23012025_01_36_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa55e04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa55e04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa55e04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:37:02.997122
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/36/image_23012025_01_36_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/01/36/image_23012025_01_36_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/36/image_23012025_01_36_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/36/image_23012025_01_36_34_6210.jpg', 2), ('/home/nano/Desktop/images/23012025/01/36/image_23012025_01_36_28_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/01/36/image_23012025_01_36_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e8a14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e8a14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e8a14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:37:32.424424
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/37/image_23012025_01_37_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/01/37/image_23012025_01_37_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/37/image_23012025_01_37_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/01/37/image_23012025_01_37_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/01/37/image_23012025_01_37_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/01/37/image_23012025_01_37_17_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab53c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab53c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab53c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:38:02.911872
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/37/image_23012025_01_37_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/01/37/image_23012025_01_37_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/37/image_23012025_01_37_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/01/37/image_23012025_01_37_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/01/37/image_23012025_01_37_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/01/37/image_23012025_01_37_17_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83fe34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83fe34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83fe34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:38:32.490260
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/38/image_23012025_01_38_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/38/image_23012025_01_38_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/01/38/image_23012025_01_38_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/38/image_23012025_01_38_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/38/image_23012025_01_38_17_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/38/image_23012025_01_38_10_6203.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87e994a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87e994a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87e994a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:39:03.349554
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/38/image_23012025_01_38_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/38/image_23012025_01_38_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/01/38/image_23012025_01_38_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/38/image_23012025_01_38_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/38/image_23012025_01_38_17_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/38/image_23012025_01_38_10_6203.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb12144a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb12144a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb12144a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:39:32.602225
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/39/image_23012025_01_39_28_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/01/39/image_23012025_01_39_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/39/image_23012025_01_39_16_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/39/image_23012025_01_39_10_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/01/38/image_23012025_01_39_04_6218.jpg', 2), ('/home/nano/Desktop/images/23012025/01/38/image_23012025_01_38_58_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faea7c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faea7c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faea7c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:40:03.075496
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/39/image_23012025_01_39_28_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/01/39/image_23012025_01_39_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/39/image_23012025_01_39_16_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/39/image_23012025_01_39_10_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/01/38/image_23012025_01_39_04_6218.jpg', 2), ('/home/nano/Desktop/images/23012025/01/38/image_23012025_01_38_58_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ab0f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ab0f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ab0f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:40:32.672035
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/40/image_23012025_01_40_52_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/01/40/image_23012025_01_40_47_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/01/40/image_23012025_01_40_40_6211.jpg', 2), ('/home/nano/Desktop/images/23012025/01/40/image_23012025_01_40_34_6215.jpg', 2), ('/home/nano/Desktop/images/23012025/01/40/image_23012025_01_40_28_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/01/40/image_23012025_01_40_23_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b61e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b61e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b61e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:41:02.393616
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/40/image_23012025_01_40_52_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/01/40/image_23012025_01_40_47_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/01/40/image_23012025_01_40_40_6211.jpg', 2), ('/home/nano/Desktop/images/23012025/01/40/image_23012025_01_40_34_6215.jpg', 2), ('/home/nano/Desktop/images/23012025/01/40/image_23012025_01_40_28_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/01/40/image_23012025_01_40_23_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1fb54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1fb54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1fb54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:41:31.757426
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/41/image_23012025_01_41_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/41/image_23012025_01_41_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/41/image_23012025_01_41_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/41/image_23012025_01_41_22_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/01/41/image_23012025_01_41_10_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/01/40/image_23012025_01_40_58_6209.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f6aa4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f6aa4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f6aa4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:42:02.130466
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/41/image_23012025_01_41_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/41/image_23012025_01_41_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/41/image_23012025_01_41_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/41/image_23012025_01_41_22_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/01/41/image_23012025_01_41_10_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/01/40/image_23012025_01_40_58_6209.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb10d6438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb10d6438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb10d6438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:42:31.844619
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/42/image_23012025_01_42_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/01/42/image_23012025_01_42_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/42/image_23012025_01_42_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/01/42/image_23012025_01_42_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/42/image_23012025_01_42_17_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/42/image_23012025_01_42_10_6213.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1d564a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1d564a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1d564a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:43:02.457624
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/42/image_23012025_01_42_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/01/42/image_23012025_01_42_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/42/image_23012025_01_42_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/01/42/image_23012025_01_42_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/42/image_23012025_01_42_17_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/42/image_23012025_01_42_10_6213.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9831c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9831c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9831c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:43:31.930911
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/43/image_23012025_01_43_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/43/image_23012025_01_43_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/01/43/image_23012025_01_43_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/43/image_23012025_01_43_17_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/01/42/image_23012025_01_42_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/42/image_23012025_01_42_47_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86fa54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86fa54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86fa54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:44:02.741284
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/43/image_23012025_01_43_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/43/image_23012025_01_43_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/01/43/image_23012025_01_43_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/43/image_23012025_01_43_17_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/01/42/image_23012025_01_42_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/42/image_23012025_01_42_47_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa42ea438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa42ea438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa42ea438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:44:32.029369
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/44/image_23012025_01_44_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/01/44/image_23012025_01_44_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/44/image_23012025_01_44_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/44/image_23012025_01_44_28_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/01/44/image_23012025_01_44_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/44/image_23012025_01_44_17_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e1a04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e1a04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e1a04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:45:02.902640
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/44/image_23012025_01_44_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/01/44/image_23012025_01_44_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/44/image_23012025_01_44_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/44/image_23012025_01_44_28_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/01/44/image_23012025_01_44_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/44/image_23012025_01_44_17_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89a314a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89a314a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89a314a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:45:32.202149
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/45/image_23012025_01_45_52_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/01/45/image_23012025_01_45_22_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/01/45/image_23012025_01_45_17_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/01/44/image_23012025_01_45_04_6222.jpg', 2), ('/home/nano/Desktop/images/23012025/01/44/image_23012025_01_44_58_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/01/44/image_23012025_01_44_53_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9132a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9132a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9132a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:46:02.833521
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/45/image_23012025_01_45_52_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/01/45/image_23012025_01_45_22_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/01/45/image_23012025_01_45_17_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/01/44/image_23012025_01_45_04_6222.jpg', 2), ('/home/nano/Desktop/images/23012025/01/44/image_23012025_01_44_58_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/01/44/image_23012025_01_44_53_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b5ca4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b5ca4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b5ca4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:46:32.264055
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/46/image_23012025_01_46_52_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/01/46/image_23012025_01_46_40_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/01/46/image_23012025_01_46_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/01/46/image_23012025_01_46_28_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/01/46/image_23012025_01_46_22_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/01/46/image_23012025_01_46_17_6205.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b4a34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b4a34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b4a34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:47:03.000373
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/46/image_23012025_01_46_52_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/01/46/image_23012025_01_46_40_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/01/46/image_23012025_01_46_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/01/46/image_23012025_01_46_28_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/01/46/image_23012025_01_46_22_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/01/46/image_23012025_01_46_17_6205.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa01fe4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa01fe4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa01fe4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:47:32.423605
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/47/image_23012025_01_47_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/01/47/image_23012025_01_47_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/47/image_23012025_01_47_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/01/47/image_23012025_01_47_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/47/image_23012025_01_47_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/47/image_23012025_01_47_22_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7dd134a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dd134a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dd134a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:48:02.912286
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/47/image_23012025_01_47_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/01/47/image_23012025_01_47_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/47/image_23012025_01_47_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/01/47/image_23012025_01_47_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/47/image_23012025_01_47_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/47/image_23012025_01_47_22_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6ccc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6ccc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6ccc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:48:32.525232
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/48/image_23012025_01_48_52_5198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/48/image_23012025_01_48_47_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/01/48/image_23012025_01_48_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/01/48/image_23012025_01_48_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/01/48/image_23012025_01_48_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/01/48/image_23012025_01_48_10_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d3064a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d3064a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d3064a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:49:03.724436
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/48/image_23012025_01_48_52_5198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/48/image_23012025_01_48_47_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/01/48/image_23012025_01_48_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/01/48/image_23012025_01_48_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/01/48/image_23012025_01_48_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/01/48/image_23012025_01_48_10_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa9fd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa9fd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa9fd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:49:32.613413
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/49/image_23012025_01_49_52_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/01/49/image_23012025_01_49_47_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/01/49/image_23012025_01_49_40_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/01/49/image_23012025_01_49_28_6210.jpg', 2), ('/home/nano/Desktop/images/23012025/01/49/image_23012025_01_49_22_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/01/49/image_23012025_01_49_17_6205.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4e6e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4e6e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4e6e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:50:03.205555
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/49/image_23012025_01_49_52_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/01/49/image_23012025_01_49_47_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/01/49/image_23012025_01_49_40_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/01/49/image_23012025_01_49_28_6210.jpg', 2), ('/home/nano/Desktop/images/23012025/01/49/image_23012025_01_49_22_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/01/49/image_23012025_01_49_17_6205.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa93934a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa93934a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa93934a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:50:32.706676
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/50/image_23012025_01_50_52_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/01/50/image_23012025_01_50_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/50/image_23012025_01_50_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/50/image_23012025_01_50_34_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/01/50/image_23012025_01_50_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/50/image_23012025_01_50_22_5192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f954274a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f954274a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f954274a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:51:02.354602
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/50/image_23012025_01_50_52_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/01/50/image_23012025_01_50_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/50/image_23012025_01_50_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/50/image_23012025_01_50_34_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/01/50/image_23012025_01_50_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/50/image_23012025_01_50_22_5192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ba3d4e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ba3d4e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ba3d4e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:51:31.812708
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/51/image_23012025_01_51_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/01/51/image_23012025_01_51_47_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/01/51/image_23012025_01_51_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/01/51/image_23012025_01_51_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/01/51/image_23012025_01_51_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/01/51/image_23012025_01_51_22_5179.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ceab4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ceab4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ceab4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:52:02.436164
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/51/image_23012025_01_51_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/01/51/image_23012025_01_51_47_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/01/51/image_23012025_01_51_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/01/51/image_23012025_01_51_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/01/51/image_23012025_01_51_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/01/51/image_23012025_01_51_22_5179.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f918454a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f918454a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f918454a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:52:31.923446
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/52/image_23012025_01_52_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/01/52/image_23012025_01_52_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/01/52/image_23012025_01_52_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/01/52/image_23012025_01_52_34_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/01/52/image_23012025_01_52_28_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/01/52/image_23012025_01_52_23_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f879e04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f879e04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f879e04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:53:02.583746
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/53/image_23012025_01_53_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/01/52/image_23012025_01_52_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/01/52/image_23012025_01_52_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/01/52/image_23012025_01_52_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/01/52/image_23012025_01_52_34_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/01/52/image_23012025_01_52_28_5178.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84b694a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84b694a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84b694a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:53:32.010590
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/53/image_23012025_01_53_53_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/01/53/image_23012025_01_53_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/01/53/image_23012025_01_53_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/01/53/image_23012025_01_53_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/01/53/image_23012025_01_53_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/01/53/image_23012025_01_53_23_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92bb64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92bb64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92bb64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:54:02.700654
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/53/image_23012025_01_53_53_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/01/53/image_23012025_01_53_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/01/53/image_23012025_01_53_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/01/53/image_23012025_01_53_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/01/53/image_23012025_01_53_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/01/53/image_23012025_01_53_23_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa78f94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa78f94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa78f94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:54:32.132201
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/54/image_23012025_01_54_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/01/54/image_23012025_01_54_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/01/54/image_23012025_01_54_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/01/54/image_23012025_01_54_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/54/image_23012025_01_54_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/01/54/image_23012025_01_54_23_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa59f04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa59f04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa59f04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:55:02.986649
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/54/image_23012025_01_54_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/01/54/image_23012025_01_54_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/01/54/image_23012025_01_54_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/01/54/image_23012025_01_54_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/01/54/image_23012025_01_54_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/01/54/image_23012025_01_54_23_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f947d34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f947d34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f947d34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:55:32.193644
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/55/image_23012025_01_55_46_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/01/55/image_23012025_01_55_40_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/01/55/image_23012025_01_55_34_5175.jpg', 2), ('/home/nano/Desktop/images/23012025/01/55/image_23012025_01_55_29_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/01/55/image_23012025_01_55_23_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/01/55/image_23012025_01_55_16_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab23d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab23d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab23d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:56:02.753711
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/55/image_23012025_01_55_46_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/01/55/image_23012025_01_55_40_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/01/55/image_23012025_01_55_34_5175.jpg', 2), ('/home/nano/Desktop/images/23012025/01/55/image_23012025_01_55_29_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/01/55/image_23012025_01_55_23_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/01/55/image_23012025_01_55_16_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa906b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa906b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa906b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:56:32.304688
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/56/image_23012025_01_56_29_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/01/56/image_23012025_01_56_04_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/01/55/image_23012025_01_55_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/01/55/image_23012025_01_55_46_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/01/55/image_23012025_01_55_40_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/01/55/image_23012025_01_55_34_5175.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf40a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf40a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf40a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:57:02.952872
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/56/image_23012025_01_56_29_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/01/56/image_23012025_01_56_04_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/01/55/image_23012025_01_55_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/01/55/image_23012025_01_55_46_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/01/55/image_23012025_01_55_40_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/01/55/image_23012025_01_55_34_5175.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f788eb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f788eb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f788eb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:57:32.418970
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/57/image_23012025_01_57_40_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/01/57/image_23012025_01_57_29_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/01/56/image_23012025_01_56_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/01/56/image_23012025_01_56_29_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/01/56/image_23012025_01_56_04_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/01/55/image_23012025_01_55_52_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c1b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c1b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c1b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:58:02.857884
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/57/image_23012025_01_57_40_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/01/57/image_23012025_01_57_29_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/01/56/image_23012025_01_56_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/01/56/image_23012025_01_56_29_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/01/56/image_23012025_01_56_04_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/01/55/image_23012025_01_55_52_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf2194a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf2194a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf2194a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:59:03.162470
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/58/image_23012025_01_58_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/01/57/image_23012025_01_57_40_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/01/57/image_23012025_01_57_29_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/01/56/image_23012025_01_56_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/01/56/image_23012025_01_56_29_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/01/56/image_23012025_01_56_04_5176.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8daa7438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8daa7438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8daa7438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 01:59:32.095681
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/59/image_23012025_01_59_22_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/59/image_23012025_01_59_16_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/01/58/image_23012025_01_58_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/01/58/image_23012025_01_58_40_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/01/58/image_23012025_01_58_16_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/01/58/image_23012025_01_58_10_5193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8491a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8491a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8491a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:00:02.780998
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/01/59/image_23012025_01_59_22_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/59/image_23012025_01_59_16_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/01/58/image_23012025_01_58_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/01/58/image_23012025_01_58_40_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/01/58/image_23012025_01_58_16_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/01/58/image_23012025_01_58_10_5193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f823e64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f823e64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f823e64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:00:32.207259
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/00/image_23012025_02_00_22_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/00/image_23012025_02_00_16_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/01/59/image_23012025_01_59_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/01/59/image_23012025_01_59_22_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/59/image_23012025_01_59_16_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/01/58/image_23012025_01_58_46_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6ae34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6ae34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6ae34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:01:02.965835
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/00/image_23012025_02_00_22_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/00/image_23012025_02_00_16_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/01/59/image_23012025_01_59_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/01/59/image_23012025_01_59_22_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/01/59/image_23012025_01_59_16_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/01/58/image_23012025_01_58_46_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae02b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae02b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae02b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:01:32.278554
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/01/image_23012025_02_01_16_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/01/image_23012025_02_01_10_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/02/00/image_23012025_02_01_05_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/02/00/image_23012025_02_00_58_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/00/image_23012025_02_00_22_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/00/image_23012025_02_00_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa20d9438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa20d9438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa20d9438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:02:02.748351
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/01/image_23012025_02_01_16_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/01/image_23012025_02_01_10_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/02/00/image_23012025_02_01_05_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/02/00/image_23012025_02_00_58_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/00/image_23012025_02_00_22_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/00/image_23012025_02_00_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9009f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9009f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9009f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:02:32.364402
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/01/image_23012025_02_01_16_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/01/image_23012025_02_01_10_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/02/00/image_23012025_02_01_05_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/02/00/image_23012025_02_00_58_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/00/image_23012025_02_00_22_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/00/image_23012025_02_00_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76bed4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76bed4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76bed4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:03:03.100630
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/03/image_23012025_02_03_58_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/02/01/image_23012025_02_01_16_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/01/image_23012025_02_01_10_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/02/00/image_23012025_02_01_05_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/02/00/image_23012025_02_00_58_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/00/image_23012025_02_00_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e2fc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e2fc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e2fc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:03:32.482593
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/03/image_23012025_02_03_58_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/02/03/image_23012025_02_03_16_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/02/01/image_23012025_02_01_22_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/01/image_23012025_02_01_16_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/01/image_23012025_02_01_10_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/02/00/image_23012025_02_01_05_6205.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8def0438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8def0438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8def0438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:04:03.339360
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/03/image_23012025_02_03_58_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/02/03/image_23012025_02_03_16_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/02/01/image_23012025_02_01_22_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/01/image_23012025_02_01_16_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/01/image_23012025_02_01_10_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/02/00/image_23012025_02_01_05_6205.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b44e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b44e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b44e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:04:32.584119
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/03/image_23012025_02_03_58_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/02/03/image_23012025_02_03_16_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/02/01/image_23012025_02_01_22_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/01/image_23012025_02_01_16_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/01/image_23012025_02_01_10_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/02/00/image_23012025_02_01_05_6205.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb41754a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb41754a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb41754a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:05:03.245864
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/03/image_23012025_02_03_58_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/02/03/image_23012025_02_03_16_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/02/01/image_23012025_02_01_22_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/01/image_23012025_02_01_16_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/01/image_23012025_02_01_10_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/02/00/image_23012025_02_01_05_6205.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa41dc438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa41dc438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa41dc438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:05:32.659162
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/05/image_23012025_02_05_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/05/image_23012025_02_05_17_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/05/image_23012025_02_05_11_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/02/03/image_23012025_02_03_58_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/02/03/image_23012025_02_03_22_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/02/03/image_23012025_02_03_16_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f937484a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f937484a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f937484a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:06:02.219148
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/05/image_23012025_02_05_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/05/image_23012025_02_05_17_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/05/image_23012025_02_05_11_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/02/03/image_23012025_02_03_58_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/02/03/image_23012025_02_03_22_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/02/03/image_23012025_02_03_16_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a1b64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a1b64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a1b64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:06:31.812020
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/06/image_23012025_02_06_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/02/05/image_23012025_02_06_04_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/05/image_23012025_02_05_58_6229.jpg', 2), ('/home/nano/Desktop/images/23012025/02/05/image_23012025_02_05_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/05/image_23012025_02_05_17_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/05/image_23012025_02_05_11_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b89f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b89f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b89f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:07:02.635672
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/06/image_23012025_02_06_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/02/05/image_23012025_02_06_04_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/05/image_23012025_02_05_58_6229.jpg', 2), ('/home/nano/Desktop/images/23012025/02/05/image_23012025_02_05_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/05/image_23012025_02_05_17_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/05/image_23012025_02_05_11_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97f0c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97f0c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97f0c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:07:31.900048
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/07/image_23012025_02_07_52_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/02/07/image_23012025_02_07_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/07/image_23012025_02_07_28_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/07/image_23012025_02_07_17_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/07/image_23012025_02_07_10_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/06/image_23012025_02_06_52_5184.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad4c84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad4c84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad4c84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:08:02.433506
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/07/image_23012025_02_07_52_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/02/07/image_23012025_02_07_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/07/image_23012025_02_07_28_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/07/image_23012025_02_07_17_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/07/image_23012025_02_07_10_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/06/image_23012025_02_06_52_5184.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad85b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad85b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad85b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:08:32.032050
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/08/image_23012025_02_08_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/08/image_23012025_02_08_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/08/image_23012025_02_08_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/08/image_23012025_02_08_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/08/image_23012025_02_08_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/08/image_23012025_02_08_22_5182.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e7584a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e7584a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e7584a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:09:03.027189
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/08/image_23012025_02_08_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/08/image_23012025_02_08_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/08/image_23012025_02_08_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/08/image_23012025_02_08_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/08/image_23012025_02_08_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/08/image_23012025_02_08_22_5182.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93d2a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93d2a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93d2a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:09:32.107541
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/09/image_23012025_02_09_53_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/09/image_23012025_02_09_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/09/image_23012025_02_09_40_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/02/09/image_23012025_02_09_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/09/image_23012025_02_09_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/09/image_23012025_02_09_23_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d8ce4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d8ce4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d8ce4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:10:02.769668
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/09/image_23012025_02_09_53_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/09/image_23012025_02_09_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/09/image_23012025_02_09_40_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/02/09/image_23012025_02_09_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/09/image_23012025_02_09_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/09/image_23012025_02_09_23_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b737438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b737438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b737438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:10:32.196756
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/10/image_23012025_02_10_53_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/02/10/image_23012025_02_10_46_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/02/10/image_23012025_02_10_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/10/image_23012025_02_10_34_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/02/10/image_23012025_02_10_28_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/02/10/image_23012025_02_10_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7cc1c438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cc1c438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cc1c438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:11:03.065249
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/10/image_23012025_02_10_53_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/02/10/image_23012025_02_10_46_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/02/10/image_23012025_02_10_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/10/image_23012025_02_10_34_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/02/10/image_23012025_02_10_28_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/02/10/image_23012025_02_10_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa18154a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa18154a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa18154a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:11:32.289601
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/11/image_23012025_02_11_53_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/11/image_23012025_02_11_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/02/11/image_23012025_02_11_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/02/11/image_23012025_02_11_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/02/11/image_23012025_02_11_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/11/image_23012025_02_11_23_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3f444a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3f444a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3f444a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:12:02.907377
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/11/image_23012025_02_11_53_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/11/image_23012025_02_11_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/02/11/image_23012025_02_11_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/02/11/image_23012025_02_11_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/02/11/image_23012025_02_11_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/11/image_23012025_02_11_23_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2fd74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2fd74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2fd74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:12:32.373369
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/12/image_23012025_02_12_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/12/image_23012025_02_12_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/02/12/image_23012025_02_12_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/12/image_23012025_02_12_34_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/02/12/image_23012025_02_12_28_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/12/image_23012025_02_12_23_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a7f54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a7f54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a7f54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:13:03.054703
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/12/image_23012025_02_12_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/12/image_23012025_02_12_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/02/12/image_23012025_02_12_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/12/image_23012025_02_12_34_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/02/12/image_23012025_02_12_28_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/12/image_23012025_02_12_23_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa61004a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa61004a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa61004a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:13:32.489183
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/13/image_23012025_02_13_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/02/13/image_23012025_02_13_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/02/13/image_23012025_02_13_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/13/image_23012025_02_13_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/02/13/image_23012025_02_13_28_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/02/13/image_23012025_02_13_23_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fadbbe438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadbbe438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadbbe438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:14:03.527259
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/13/image_23012025_02_14_04_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/02/13/image_23012025_02_13_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/02/13/image_23012025_02_13_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/02/13/image_23012025_02_13_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/13/image_23012025_02_13_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/02/13/image_23012025_02_13_28_5190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9de134a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9de134a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9de134a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:14:32.570969
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/14/image_23012025_02_14_53_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/14/image_23012025_02_14_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/14/image_23012025_02_14_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/02/14/image_23012025_02_14_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/02/14/image_23012025_02_14_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/02/14/image_23012025_02_14_16_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa66804a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa66804a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa66804a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:15:03.387610
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/14/image_23012025_02_14_53_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/14/image_23012025_02_14_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/14/image_23012025_02_14_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/02/14/image_23012025_02_14_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/02/14/image_23012025_02_14_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/02/14/image_23012025_02_14_16_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa00a74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa00a74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa00a74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:15:32.684392
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/15/image_23012025_02_15_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/15/image_23012025_02_15_46_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/02/15/image_23012025_02_15_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/02/15/image_23012025_02_15_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/15/image_23012025_02_15_29_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/02/15/image_23012025_02_15_23_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac0734a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac0734a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac0734a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:16:02.323869
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/15/image_23012025_02_15_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/15/image_23012025_02_15_46_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/02/15/image_23012025_02_15_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/02/15/image_23012025_02_15_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/15/image_23012025_02_15_29_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/02/15/image_23012025_02_15_23_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f999ea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f999ea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f999ea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:16:31.791231
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/16/image_23012025_02_16_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/16/image_23012025_02_16_40_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/02/16/image_23012025_02_16_34_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/16/image_23012025_02_16_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/16/image_23012025_02_16_23_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/16/image_23012025_02_16_16_6203.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa75f8438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa75f8438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa75f8438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:17:02.540530
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/16/image_23012025_02_16_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/16/image_23012025_02_16_40_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/02/16/image_23012025_02_16_34_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/16/image_23012025_02_16_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/16/image_23012025_02_16_23_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/16/image_23012025_02_16_16_6203.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa42904a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa42904a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa42904a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:17:31.893228
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/17/image_23012025_02_17_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/17/image_23012025_02_17_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/17/image_23012025_02_17_40_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/02/17/image_23012025_02_17_34_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/02/17/image_23012025_02_17_29_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/17/image_23012025_02_17_22_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96a1f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96a1f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96a1f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:18:02.493768
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/17/image_23012025_02_17_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/17/image_23012025_02_17_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/17/image_23012025_02_17_40_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/02/17/image_23012025_02_17_34_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/02/17/image_23012025_02_17_29_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/17/image_23012025_02_17_22_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b72e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b72e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b72e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:18:31.983617
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/18/image_23012025_02_18_52_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/02/18/image_23012025_02_18_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/18/image_23012025_02_18_40_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/02/18/image_23012025_02_18_35_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/18/image_23012025_02_18_29_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/02/18/image_23012025_02_18_22_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9dcc5438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dcc5438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dcc5438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:19:03.079684
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/18/image_23012025_02_18_52_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/02/18/image_23012025_02_18_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/18/image_23012025_02_18_40_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/02/18/image_23012025_02_18_35_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/18/image_23012025_02_18_29_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/02/18/image_23012025_02_18_22_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ac9f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ac9f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ac9f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:19:32.091862
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/19/image_23012025_02_19_52_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/02/19/image_23012025_02_19_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/02/19/image_23012025_02_19_40_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/02/19/image_23012025_02_19_35_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/19/image_23012025_02_19_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/02/19/image_23012025_02_19_22_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8b014a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8b014a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8b014a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:20:02.732123
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/19/image_23012025_02_19_52_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/02/19/image_23012025_02_19_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/02/19/image_23012025_02_19_40_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/02/19/image_23012025_02_19_35_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/19/image_23012025_02_19_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/02/19/image_23012025_02_19_22_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f767a64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f767a64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f767a64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:20:32.171659
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/20/image_23012025_02_20_52_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/02/20/image_23012025_02_20_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/02/20/image_23012025_02_20_40_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/02/20/image_23012025_02_20_35_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/20/image_23012025_02_20_28_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/20/image_23012025_02_20_22_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa58be4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa58be4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa58be4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:21:02.862993
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/20/image_23012025_02_20_52_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/02/20/image_23012025_02_20_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/02/20/image_23012025_02_20_40_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/02/20/image_23012025_02_20_35_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/20/image_23012025_02_20_28_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/20/image_23012025_02_20_22_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ba554a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ba554a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ba554a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:21:32.328565
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/21/image_23012025_02_21_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/21/image_23012025_02_21_46_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/02/21/image_23012025_02_21_41_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/02/21/image_23012025_02_21_35_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/21/image_23012025_02_21_28_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/02/21/image_23012025_02_21_22_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa54e24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa54e24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa54e24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:22:02.979986
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/21/image_23012025_02_21_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/21/image_23012025_02_21_46_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/02/21/image_23012025_02_21_41_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/02/21/image_23012025_02_21_35_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/21/image_23012025_02_21_28_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/02/21/image_23012025_02_21_22_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f923e54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f923e54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f923e54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:22:32.411172
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/22/image_23012025_02_22_52_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/02/22/image_23012025_02_22_46_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/02/22/image_23012025_02_22_40_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/22/image_23012025_02_22_35_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/02/22/image_23012025_02_22_28_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/02/22/image_23012025_02_22_16_5238.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c8d94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c8d94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c8d94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:23:03.130581
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/22/image_23012025_02_22_52_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/02/22/image_23012025_02_22_46_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/02/22/image_23012025_02_22_40_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/22/image_23012025_02_22_35_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/02/22/image_23012025_02_22_28_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/02/22/image_23012025_02_22_16_5238.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f885fc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f885fc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f885fc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:23:32.560912
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/23/image_23012025_02_23_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/23/image_23012025_02_23_46_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/02/23/image_23012025_02_23_40_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/23/image_23012025_02_23_35_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/02/23/image_23012025_02_23_28_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/02/23/image_23012025_02_23_22_6207.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb48e84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb48e84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb48e84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:24:03.535864
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/24/image_23012025_02_24_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/23/image_23012025_02_23_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/23/image_23012025_02_23_46_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/02/23/image_23012025_02_23_40_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/23/image_23012025_02_23_35_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/02/23/image_23012025_02_23_28_6205.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f975f7438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f975f7438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f975f7438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:24:32.657050
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/24/image_23012025_02_24_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/02/24/image_23012025_02_24_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/24/image_23012025_02_24_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/24/image_23012025_02_24_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/02/24/image_23012025_02_24_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/24/image_23012025_02_24_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa27244a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa27244a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa27244a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:25:02.456787
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/24/image_23012025_02_24_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/02/24/image_23012025_02_24_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/24/image_23012025_02_24_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/24/image_23012025_02_24_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/02/24/image_23012025_02_24_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/24/image_23012025_02_24_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb031d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb031d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb031d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:25:31.751780
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/25/image_23012025_02_25_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/02/25/image_23012025_02_25_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/02/25/image_23012025_02_25_41_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/25/image_23012025_02_25_35_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/25/image_23012025_02_25_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/25/image_23012025_02_25_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f815d94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f815d94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f815d94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:26:02.336749
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/25/image_23012025_02_25_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/02/25/image_23012025_02_25_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/02/25/image_23012025_02_25_41_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/25/image_23012025_02_25_35_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/25/image_23012025_02_25_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/25/image_23012025_02_25_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f814554a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f814554a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f814554a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:26:31.843675
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/26/image_23012025_02_26_52_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/26/image_23012025_02_26_46_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/02/26/image_23012025_02_26_41_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/26/image_23012025_02_26_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/26/image_23012025_02_26_28_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/26/image_23012025_02_26_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7facaa84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facaa84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facaa84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:27:02.542631
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/26/image_23012025_02_26_52_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/26/image_23012025_02_26_46_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/02/26/image_23012025_02_26_41_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/26/image_23012025_02_26_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/26/image_23012025_02_26_28_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/26/image_23012025_02_26_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb12574a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb12574a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb12574a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:27:31.984027
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/27/image_23012025_02_27_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/02/27/image_23012025_02_27_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/02/27/image_23012025_02_27_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/27/image_23012025_02_27_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/27/image_23012025_02_27_22_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/27/image_23012025_02_27_16_5185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f973004a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f973004a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f973004a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:28:02.560493
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/27/image_23012025_02_27_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/02/27/image_23012025_02_27_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/02/27/image_23012025_02_27_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/27/image_23012025_02_27_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/27/image_23012025_02_27_22_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/27/image_23012025_02_27_16_5185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86b474a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86b474a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86b474a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:28:32.045789
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/28/image_23012025_02_28_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/28/image_23012025_02_28_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/28/image_23012025_02_28_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/02/28/image_23012025_02_28_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/28/image_23012025_02_28_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/28/image_23012025_02_28_16_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa70d4438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa70d4438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa70d4438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:29:03.201512
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/29/image_23012025_02_29_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/28/image_23012025_02_28_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/28/image_23012025_02_28_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/28/image_23012025_02_28_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/02/28/image_23012025_02_28_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/28/image_23012025_02_28_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a75c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a75c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a75c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:29:32.156877
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/29/image_23012025_02_29_52_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/02/29/image_23012025_02_29_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/29/image_23012025_02_29_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/29/image_23012025_02_29_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/02/29/image_23012025_02_29_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/02/29/image_23012025_02_29_22_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d0d24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d0d24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d0d24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:30:02.780470
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/29/image_23012025_02_29_52_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/02/29/image_23012025_02_29_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/29/image_23012025_02_29_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/29/image_23012025_02_29_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/02/29/image_23012025_02_29_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/02/29/image_23012025_02_29_22_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f998174a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f998174a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f998174a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:30:32.247873
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/30/image_23012025_02_30_52_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/02/30/image_23012025_02_30_47_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/30/image_23012025_02_30_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/30/image_23012025_02_30_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/30/image_23012025_02_30_28_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/02/30/image_23012025_02_30_22_5180.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d5154a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d5154a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d5154a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:31:02.990683
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/30/image_23012025_02_30_52_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/02/30/image_23012025_02_30_47_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/30/image_23012025_02_30_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/30/image_23012025_02_30_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/30/image_23012025_02_30_28_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/02/30/image_23012025_02_30_22_5180.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97dbd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97dbd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97dbd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:31:32.443904
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/31/image_23012025_02_31_52_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/31/image_23012025_02_31_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/02/31/image_23012025_02_31_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/31/image_23012025_02_31_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/02/31/image_23012025_02_31_22_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/31/image_23012025_02_31_17_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb61844a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb61844a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb61844a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:32:03.122254
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/31/image_23012025_02_31_52_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/31/image_23012025_02_31_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/02/31/image_23012025_02_31_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/31/image_23012025_02_31_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/02/31/image_23012025_02_31_22_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/31/image_23012025_02_31_17_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89289438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89289438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89289438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:32:32.545666
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/32/image_23012025_02_32_52_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/02/32/image_23012025_02_32_47_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/32/image_23012025_02_32_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/32/image_23012025_02_32_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/32/image_23012025_02_32_28_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/32/image_23012025_02_32_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8cf604a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cf604a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cf604a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:33:03.123347
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/32/image_23012025_02_32_52_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/02/32/image_23012025_02_32_47_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/32/image_23012025_02_32_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/32/image_23012025_02_32_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/32/image_23012025_02_32_28_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/32/image_23012025_02_32_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb24634a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb24634a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb24634a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:33:32.664547
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/33/image_23012025_02_33_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/33/image_23012025_02_33_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/33/image_23012025_02_33_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/33/image_23012025_02_33_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/33/image_23012025_02_33_28_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/02/33/image_23012025_02_33_23_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ae144a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ae144a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ae144a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:34:03.623200
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/33/image_23012025_02_33_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/33/image_23012025_02_33_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/33/image_23012025_02_33_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/33/image_23012025_02_33_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/33/image_23012025_02_33_28_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/02/33/image_23012025_02_33_23_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87ebf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87ebf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87ebf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:34:32.744201
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/34/image_23012025_02_34_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/34/image_23012025_02_34_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/34/image_23012025_02_34_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/34/image_23012025_02_34_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/34/image_23012025_02_34_28_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/02/34/image_23012025_02_34_23_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb18ea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb18ea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb18ea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:35:02.398455
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/34/image_23012025_02_34_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/34/image_23012025_02_34_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/34/image_23012025_02_34_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/34/image_23012025_02_34_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/34/image_23012025_02_34_28_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/02/34/image_23012025_02_34_23_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cda14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cda14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cda14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:35:31.847699
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/35/image_23012025_02_35_53_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/35/image_23012025_02_35_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/35/image_23012025_02_35_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/35/image_23012025_02_35_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/35/image_23012025_02_35_28_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/02/35/image_23012025_02_35_23_6213.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cefd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cefd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cefd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:36:02.552353
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/35/image_23012025_02_35_53_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/35/image_23012025_02_35_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/35/image_23012025_02_35_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/35/image_23012025_02_35_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/35/image_23012025_02_35_28_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/02/35/image_23012025_02_35_23_6213.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa298e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa298e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa298e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:36:31.936459
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/36/image_23012025_02_36_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/36/image_23012025_02_36_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/36/image_23012025_02_36_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/02/36/image_23012025_02_36_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/36/image_23012025_02_36_28_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/02/36/image_23012025_02_36_23_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae3864a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae3864a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae3864a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:37:02.692684
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/36/image_23012025_02_36_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/36/image_23012025_02_36_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/36/image_23012025_02_36_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/02/36/image_23012025_02_36_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/36/image_23012025_02_36_28_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/02/36/image_23012025_02_36_23_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf14d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf14d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf14d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:37:32.034321
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/37/image_23012025_02_37_52_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/02/37/image_23012025_02_37_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/37/image_23012025_02_37_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/37/image_23012025_02_37_34_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/02/37/image_23012025_02_37_29_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/37/image_23012025_02_37_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f982ee4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f982ee4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f982ee4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:38:02.680230
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/37/image_23012025_02_37_52_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/02/37/image_23012025_02_37_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/37/image_23012025_02_37_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/37/image_23012025_02_37_34_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/02/37/image_23012025_02_37_29_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/37/image_23012025_02_37_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8a794a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8a794a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8a794a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:38:32.135106
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/38/image_23012025_02_38_52_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/38/image_23012025_02_38_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/38/image_23012025_02_38_40_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/02/38/image_23012025_02_38_35_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/38/image_23012025_02_38_29_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/38/image_23012025_02_38_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93bd94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93bd94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93bd94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:39:03.312192
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/38/image_23012025_02_38_52_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/38/image_23012025_02_38_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/38/image_23012025_02_38_40_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/02/38/image_23012025_02_38_35_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/38/image_23012025_02_38_29_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/38/image_23012025_02_38_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ab984a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ab984a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ab984a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:39:32.229225
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/39/image_23012025_02_39_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/39/image_23012025_02_39_46_6211.jpg', 2), ('/home/nano/Desktop/images/23012025/02/39/image_23012025_02_39_35_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/02/39/image_23012025_02_39_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/39/image_23012025_02_39_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/39/image_23012025_02_39_16_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4d114a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4d114a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4d114a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:40:02.864622
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/39/image_23012025_02_39_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/39/image_23012025_02_39_46_6211.jpg', 2), ('/home/nano/Desktop/images/23012025/02/39/image_23012025_02_39_35_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/02/39/image_23012025_02_39_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/39/image_23012025_02_39_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/39/image_23012025_02_39_16_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bce04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bce04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bce04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:40:32.287793
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/40/image_23012025_02_40_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/40/image_23012025_02_40_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/40/image_23012025_02_40_40_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/40/image_23012025_02_40_35_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/02/40/image_23012025_02_40_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/40/image_23012025_02_40_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb47c44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb47c44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb47c44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:41:03.144699
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/40/image_23012025_02_40_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/40/image_23012025_02_40_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/40/image_23012025_02_40_40_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/40/image_23012025_02_40_35_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/02/40/image_23012025_02_40_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/40/image_23012025_02_40_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a53d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a53d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a53d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:41:32.382687
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/41/image_23012025_02_41_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/41/image_23012025_02_41_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/41/image_23012025_02_41_40_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/02/41/image_23012025_02_41_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/02/41/image_23012025_02_41_28_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/41/image_23012025_02_41_22_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f925e7438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f925e7438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f925e7438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:42:02.988307
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/41/image_23012025_02_41_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/41/image_23012025_02_41_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/41/image_23012025_02_41_40_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/02/41/image_23012025_02_41_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/02/41/image_23012025_02_41_28_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/02/41/image_23012025_02_41_22_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7face2c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7face2c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7face2c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:42:32.502939
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/42/image_23012025_02_42_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/42/image_23012025_02_42_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/02/42/image_23012025_02_42_40_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/02/42/image_23012025_02_42_35_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/02/42/image_23012025_02_42_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/42/image_23012025_02_42_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95ae54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95ae54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95ae54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:43:03.269378
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/42/image_23012025_02_42_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/42/image_23012025_02_42_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/02/42/image_23012025_02_42_40_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/02/42/image_23012025_02_42_35_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/02/42/image_23012025_02_42_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/42/image_23012025_02_42_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa80a438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa80a438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa80a438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:43:32.587328
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/43/image_23012025_02_43_52_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/02/43/image_23012025_02_43_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/02/43/image_23012025_02_43_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/43/image_23012025_02_43_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/43/image_23012025_02_43_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/43/image_23012025_02_43_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1b794a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1b794a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1b794a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:44:03.615971
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/43/image_23012025_02_43_52_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/02/43/image_23012025_02_43_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/02/43/image_23012025_02_43_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/43/image_23012025_02_43_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/43/image_23012025_02_43_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/43/image_23012025_02_43_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ee3d438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ee3d438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ee3d438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:44:32.692108
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/44/image_23012025_02_44_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/44/image_23012025_02_44_46_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/02/44/image_23012025_02_44_41_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/44/image_23012025_02_44_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/02/44/image_23012025_02_44_28_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/44/image_23012025_02_44_22_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82f7d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82f7d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82f7d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:45:02.378393
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/44/image_23012025_02_44_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/44/image_23012025_02_44_46_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/02/44/image_23012025_02_44_41_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/44/image_23012025_02_44_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/02/44/image_23012025_02_44_28_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/44/image_23012025_02_44_22_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f969f84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f969f84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f969f84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:45:31.798922
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/45/image_23012025_02_45_52_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/02/45/image_23012025_02_45_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/45/image_23012025_02_45_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/02/45/image_23012025_02_45_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/02/45/image_23012025_02_45_28_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/45/image_23012025_02_45_22_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f950c54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f950c54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f950c54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:46:02.447764
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/45/image_23012025_02_45_52_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/02/45/image_23012025_02_45_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/45/image_23012025_02_45_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/02/45/image_23012025_02_45_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/02/45/image_23012025_02_45_28_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/45/image_23012025_02_45_22_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa99db4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa99db4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa99db4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:46:31.921399
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/46/image_23012025_02_46_47_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/46/image_23012025_02_46_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/46/image_23012025_02_46_34_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/02/46/image_23012025_02_46_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/02/46/image_23012025_02_46_17_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/46/image_23012025_02_46_11_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fabc9e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabc9e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabc9e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:47:02.724750
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/46/image_23012025_02_46_47_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/46/image_23012025_02_46_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/02/46/image_23012025_02_46_34_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/02/46/image_23012025_02_46_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/02/46/image_23012025_02_46_17_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/46/image_23012025_02_46_11_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1d8d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1d8d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1d8d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:47:32.031540
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/47/image_23012025_02_47_52_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/02/47/image_23012025_02_47_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/47/image_23012025_02_47_41_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/47/image_23012025_02_47_28_6210.jpg', 2), ('/home/nano/Desktop/images/23012025/02/47/image_23012025_02_47_22_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/02/47/image_23012025_02_47_17_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c82e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c82e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c82e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:48:02.596322
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/47/image_23012025_02_47_52_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/02/47/image_23012025_02_47_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/47/image_23012025_02_47_41_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/47/image_23012025_02_47_28_6210.jpg', 2), ('/home/nano/Desktop/images/23012025/02/47/image_23012025_02_47_22_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/02/47/image_23012025_02_47_17_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b181438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b181438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b181438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:48:32.118352
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/48/image_23012025_02_48_52_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/02/48/image_23012025_02_48_47_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/48/image_23012025_02_48_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/48/image_23012025_02_48_34_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/02/48/image_23012025_02_48_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/48/image_23012025_02_48_22_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa286c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa286c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa286c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:49:03.219986
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/48/image_23012025_02_48_52_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/02/48/image_23012025_02_48_47_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/48/image_23012025_02_48_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/48/image_23012025_02_48_34_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/02/48/image_23012025_02_48_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/48/image_23012025_02_48_22_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96a424a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96a424a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96a424a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:49:32.211099
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/49/image_23012025_02_49_52_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/02/49/image_23012025_02_49_47_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/49/image_23012025_02_49_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/49/image_23012025_02_49_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/49/image_23012025_02_49_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/49/image_23012025_02_49_10_6206.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c9574a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c9574a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c9574a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:50:02.645537
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/49/image_23012025_02_49_52_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/02/49/image_23012025_02_49_47_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/49/image_23012025_02_49_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/49/image_23012025_02_49_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/49/image_23012025_02_49_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/49/image_23012025_02_49_10_6206.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9b774a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9b774a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9b774a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:50:32.334149
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/50/image_23012025_02_50_53_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/50/image_23012025_02_50_47_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/50/image_23012025_02_50_40_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/02/50/image_23012025_02_50_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/50/image_23012025_02_50_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/50/image_23012025_02_50_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87a3e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87a3e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87a3e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:51:02.950519
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/50/image_23012025_02_50_53_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/50/image_23012025_02_50_47_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/50/image_23012025_02_50_40_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/02/50/image_23012025_02_50_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/50/image_23012025_02_50_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/50/image_23012025_02_50_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa038c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa038c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa038c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:51:32.411308
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/51/image_23012025_02_51_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/51/image_23012025_02_51_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/51/image_23012025_02_51_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/51/image_23012025_02_51_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/51/image_23012025_02_51_28_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/02/51/image_23012025_02_51_23_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91cce4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91cce4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91cce4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:52:02.979766
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/51/image_23012025_02_51_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/02/51/image_23012025_02_51_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/51/image_23012025_02_51_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/51/image_23012025_02_51_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/51/image_23012025_02_51_28_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/02/51/image_23012025_02_51_23_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8abb3470>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8abb3470>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8abb3470>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:52:32.496343
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/52/image_23012025_02_52_53_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/02/52/image_23012025_02_52_46_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/02/52/image_23012025_02_52_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/02/52/image_23012025_02_52_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/02/52/image_23012025_02_52_28_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/02/52/image_23012025_02_52_23_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb49974a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb49974a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb49974a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:53:03.198906
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/52/image_23012025_02_52_53_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/02/52/image_23012025_02_52_46_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/02/52/image_23012025_02_52_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/02/52/image_23012025_02_52_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/02/52/image_23012025_02_52_28_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/02/52/image_23012025_02_52_23_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa20eb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa20eb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa20eb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:53:32.605010
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/53/image_23012025_02_53_52_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/02/53/image_23012025_02_53_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/53/image_23012025_02_53_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/53/image_23012025_02_53_34_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/02/53/image_23012025_02_53_29_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/53/image_23012025_02_53_22_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9aa4d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9aa4d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9aa4d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:54:03.505290
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/53/image_23012025_02_53_52_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/02/53/image_23012025_02_53_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/53/image_23012025_02_53_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/53/image_23012025_02_53_34_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/02/53/image_23012025_02_53_29_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/53/image_23012025_02_53_22_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb16c84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb16c84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb16c84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:54:32.704047
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/54/image_23012025_02_54_52_6257.jpg', 2), ('/home/nano/Desktop/images/23012025/02/54/image_23012025_02_54_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/54/image_23012025_02_54_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/54/image_23012025_02_54_34_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/02/54/image_23012025_02_54_29_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/54/image_23012025_02_54_22_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c1964e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c1964e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c1964e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:55:02.490342
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/55/image_23012025_02_55_34_5203.jpg', 2), ('/home/nano/Desktop/images/23012025/02/54/image_23012025_02_54_52_6257.jpg', 2), ('/home/nano/Desktop/images/23012025/02/54/image_23012025_02_54_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/02/54/image_23012025_02_54_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/54/image_23012025_02_54_34_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/02/54/image_23012025_02_54_29_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8eaef4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8eaef4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8eaef4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:55:31.815864
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/55/image_23012025_02_55_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/02/55/image_23012025_02_55_40_6212.jpg', 2), ('/home/nano/Desktop/images/23012025/02/55/image_23012025_02_55_34_5203.jpg', 2), ('/home/nano/Desktop/images/23012025/02/55/image_23012025_02_55_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/55/image_23012025_02_55_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/55/image_23012025_02_55_16_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92d0c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92d0c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92d0c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:56:02.385170
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/55/image_23012025_02_55_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/02/55/image_23012025_02_55_40_6212.jpg', 2), ('/home/nano/Desktop/images/23012025/02/55/image_23012025_02_55_34_5203.jpg', 2), ('/home/nano/Desktop/images/23012025/02/55/image_23012025_02_55_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/55/image_23012025_02_55_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/55/image_23012025_02_55_16_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94ea34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94ea34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94ea34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:56:31.900527
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/56/image_23012025_02_56_22_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/02/56/image_23012025_02_56_10_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/02/56/image_23012025_02_56_04_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/55/image_23012025_02_55_59_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/02/55/image_23012025_02_55_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/02/55/image_23012025_02_55_40_6212.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ae314a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ae314a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ae314a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:57:02.648901
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/56/image_23012025_02_56_22_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/02/56/image_23012025_02_56_10_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/02/56/image_23012025_02_56_04_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/02/55/image_23012025_02_55_59_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/02/55/image_23012025_02_55_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/02/55/image_23012025_02_55_40_6212.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93294438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93294438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93294438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:57:32.048381
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/57/image_23012025_02_57_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/57/image_23012025_02_57_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/57/image_23012025_02_57_29_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/57/image_23012025_02_57_22_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/56/image_23012025_02_56_59_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/02/56/image_23012025_02_56_22_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0a5a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0a5a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0a5a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:58:02.569456
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/57/image_23012025_02_57_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/57/image_23012025_02_57_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/02/57/image_23012025_02_57_29_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/57/image_23012025_02_57_22_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/02/56/image_23012025_02_56_59_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/02/56/image_23012025_02_56_22_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f968774a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f968774a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f968774a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:59:02.802565
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/58/image_23012025_02_58_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/02/58/image_23012025_02_58_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/02/58/image_23012025_02_58_29_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/02/58/image_23012025_02_58_16_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/02/58/image_23012025_02_58_04_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/02/57/image_23012025_02_57_59_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d8b94e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d8b94e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d8b94e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 02:59:31.800226
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/59/image_23012025_02_59_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/02/59/image_23012025_02_59_34_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/59/image_23012025_02_59_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/02/59/image_23012025_02_59_16_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/02/59/image_23012025_02_59_10_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/02/58/image_23012025_02_58_52_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f846f84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f846f84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f846f84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:00:02.242176
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/02/59/image_23012025_02_59_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/02/59/image_23012025_02_59_34_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/59/image_23012025_02_59_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/02/59/image_23012025_02_59_16_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/02/59/image_23012025_02_59_10_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/02/58/image_23012025_02_58_52_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a1264a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a1264a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a1264a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:00:31.900459
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/00/image_23012025_03_00_34_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/03/00/image_23012025_03_00_04_5195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/59/image_23012025_02_59_52_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/02/59/image_23012025_02_59_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/02/59/image_23012025_02_59_34_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/59/image_23012025_02_59_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f815614a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f815614a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f815614a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:01:02.525071
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/00/image_23012025_03_00_34_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/03/00/image_23012025_03_00_04_5195.jpg', 2), ('/home/nano/Desktop/images/23012025/02/59/image_23012025_02_59_52_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/02/59/image_23012025_02_59_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/02/59/image_23012025_02_59_34_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/02/59/image_23012025_02_59_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d5224a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d5224a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d5224a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:01:32.087150
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_34_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_29_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_16_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/00/image_23012025_03_00_34_5193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a89e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a89e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a89e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:02:02.695581
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_34_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_29_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_16_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/00/image_23012025_03_00_34_5193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ab7c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ab7c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ab7c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:02:32.192386
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_34_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_29_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_16_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/00/image_23012025_03_00_34_5193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa33b0438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa33b0438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa33b0438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:03:03.090715
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_34_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_29_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_16_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/00/image_23012025_03_00_34_5193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f805c74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f805c74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f805c74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:03:32.304394
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/03/image_23012025_03_03_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/03/image_23012025_03_03_10_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_59_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_34_5189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fbdd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fbdd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fbdd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:04:03.181161
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/03/image_23012025_03_03_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/03/image_23012025_03_03_10_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_59_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/01/image_23012025_03_01_34_5189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97f894a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97f894a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97f894a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:04:32.394199
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/04/image_23012025_03_04_46_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/03/04/image_23012025_03_04_40_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/04/image_23012025_03_04_10_5204.jpg', 2), ('/home/nano/Desktop/images/23012025/03/03/image_23012025_03_03_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/03/image_23012025_03_03_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/03/image_23012025_03_03_10_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa69234a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa69234a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa69234a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:05:03.082963
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/04/image_23012025_03_04_46_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/03/04/image_23012025_03_04_40_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/04/image_23012025_03_04_10_5204.jpg', 2), ('/home/nano/Desktop/images/23012025/03/03/image_23012025_03_03_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/03/image_23012025_03_03_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/03/image_23012025_03_03_10_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb44044a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb44044a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb44044a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:05:32.641896
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/05/image_23012025_03_05_52_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/03/05/image_23012025_03_05_46_6210.jpg', 2), ('/home/nano/Desktop/images/23012025/03/05/image_23012025_03_05_40_5200.jpg', 2), ('/home/nano/Desktop/images/23012025/03/05/image_23012025_03_05_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/05/image_23012025_03_05_10_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/03/05/image_23012025_03_05_05_6208.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f895d64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f895d64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f895d64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:06:03.138648
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/05/image_23012025_03_05_52_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/03/05/image_23012025_03_05_46_6210.jpg', 2), ('/home/nano/Desktop/images/23012025/03/05/image_23012025_03_05_40_5200.jpg', 2), ('/home/nano/Desktop/images/23012025/03/05/image_23012025_03_05_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/05/image_23012025_03_05_10_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/03/05/image_23012025_03_05_05_6208.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8632f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8632f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8632f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:06:32.705959
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/06/image_23012025_03_06_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/06/image_23012025_03_06_46_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/03/06/image_23012025_03_06_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/03/06/image_23012025_03_06_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/05/image_23012025_03_05_58_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/05/image_23012025_03_05_52_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa333f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa333f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa333f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:07:02.460404
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/06/image_23012025_03_06_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/06/image_23012025_03_06_46_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/03/06/image_23012025_03_06_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/03/06/image_23012025_03_06_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/05/image_23012025_03_05_58_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/05/image_23012025_03_05_52_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac3e74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac3e74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac3e74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:07:31.805794
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/07/image_23012025_03_07_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/07/image_23012025_03_07_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/03/07/image_23012025_03_07_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/07/image_23012025_03_07_16_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/07/image_23012025_03_07_10_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/03/06/image_23012025_03_06_58_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f821f74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f821f74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f821f74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:08:02.477005
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/07/image_23012025_03_07_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/07/image_23012025_03_07_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/03/07/image_23012025_03_07_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/07/image_23012025_03_07_16_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/07/image_23012025_03_07_10_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/03/06/image_23012025_03_06_58_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8729f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8729f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8729f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:08:31.901808
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/08/image_23012025_03_08_16_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/08/image_23012025_03_08_10_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/07/image_23012025_03_07_58_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/07/image_23012025_03_07_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/07/image_23012025_03_07_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/03/07/image_23012025_03_07_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c118438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c118438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c118438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:09:02.901415
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/08/image_23012025_03_08_16_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/08/image_23012025_03_08_10_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/07/image_23012025_03_07_58_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/07/image_23012025_03_07_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/07/image_23012025_03_07_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/03/07/image_23012025_03_07_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9607d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9607d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9607d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:09:32.009657
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/09/image_23012025_03_09_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/09/image_23012025_03_09_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/09/image_23012025_03_09_28_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/03/08/image_23012025_03_08_40_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/03/08/image_23012025_03_08_16_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/08/image_23012025_03_08_10_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76b2f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76b2f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76b2f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:10:02.436514
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/09/image_23012025_03_09_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/09/image_23012025_03_09_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/09/image_23012025_03_09_28_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/03/08/image_23012025_03_08_40_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/03/08/image_23012025_03_08_16_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/08/image_23012025_03_08_10_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb19214a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb19214a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb19214a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:10:32.170058
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/10/image_23012025_03_10_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/10/image_23012025_03_10_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/10/image_23012025_03_10_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/09/image_23012025_03_10_05_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/03/09/image_23012025_03_09_58_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/09/image_23012025_03_09_52_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa675e438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa675e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa675e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:11:02.900350
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/10/image_23012025_03_10_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/10/image_23012025_03_10_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/10/image_23012025_03_10_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/09/image_23012025_03_10_05_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/03/09/image_23012025_03_09_58_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/09/image_23012025_03_09_52_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99e724e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99e724e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99e724e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:11:32.273777
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/11/image_23012025_03_11_52_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/03/11/image_23012025_03_11_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/11/image_23012025_03_11_28_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/03/11/image_23012025_03_11_16_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/03/11/image_23012025_03_11_11_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/10/image_23012025_03_11_05_6207.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b7644a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b7644a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b7644a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:12:02.887731
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/11/image_23012025_03_11_52_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/03/11/image_23012025_03_11_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/11/image_23012025_03_11_28_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/03/11/image_23012025_03_11_16_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/03/11/image_23012025_03_11_11_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/10/image_23012025_03_11_05_6207.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa21a34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa21a34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa21a34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:12:32.328508
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/12/image_23012025_03_12_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/12/image_23012025_03_12_46_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/03/12/image_23012025_03_12_41_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/03/12/image_23012025_03_12_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/03/12/image_23012025_03_12_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/12/image_23012025_03_12_22_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87c2d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87c2d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87c2d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:13:03.076831
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/12/image_23012025_03_12_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/12/image_23012025_03_12_46_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/03/12/image_23012025_03_12_41_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/03/12/image_23012025_03_12_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/03/12/image_23012025_03_12_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/12/image_23012025_03_12_22_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f969438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f969438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f969438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:13:32.427367
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/13/image_23012025_03_13_52_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/03/13/image_23012025_03_13_46_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/03/13/image_23012025_03_13_41_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/13/image_23012025_03_13_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/03/13/image_23012025_03_13_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/13/image_23012025_03_13_22_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab37a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab37a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab37a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:14:03.250757
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/13/image_23012025_03_13_52_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/03/13/image_23012025_03_13_46_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/03/13/image_23012025_03_13_41_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/13/image_23012025_03_13_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/03/13/image_23012025_03_13_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/13/image_23012025_03_13_22_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fabad9438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabad9438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabad9438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:14:32.548552
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/14/image_23012025_03_14_52_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/03/14/image_23012025_03_14_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/03/14/image_23012025_03_14_41_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/14/image_23012025_03_14_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/03/14/image_23012025_03_14_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/14/image_23012025_03_14_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8746e438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8746e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8746e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:15:03.251191
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/14/image_23012025_03_14_52_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/03/14/image_23012025_03_14_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/03/14/image_23012025_03_14_41_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/14/image_23012025_03_14_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/03/14/image_23012025_03_14_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/14/image_23012025_03_14_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae9b9438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae9b9438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae9b9438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:15:32.642558
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/15/image_23012025_03_15_52_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/03/15/image_23012025_03_15_47_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/03/15/image_23012025_03_15_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/03/15/image_23012025_03_15_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/15/image_23012025_03_15_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/15/image_23012025_03_15_22_5183.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa89fa4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa89fa4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa89fa4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:16:03.106059
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/15/image_23012025_03_15_52_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/03/15/image_23012025_03_15_47_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/03/15/image_23012025_03_15_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/03/15/image_23012025_03_15_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/15/image_23012025_03_15_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/15/image_23012025_03_15_22_5183.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7de8c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7de8c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7de8c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:16:32.732892
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/16/image_23012025_03_16_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/16/image_23012025_03_16_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/16/image_23012025_03_16_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/16/image_23012025_03_16_17_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/16/image_23012025_03_16_10_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/15/image_23012025_03_16_04_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d3bd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d3bd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d3bd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:17:02.657296
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/16/image_23012025_03_16_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/16/image_23012025_03_16_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/16/image_23012025_03_16_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/16/image_23012025_03_16_17_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/16/image_23012025_03_16_10_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/15/image_23012025_03_16_04_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f931974a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f931974a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f931974a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:17:31.861135
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/17/image_23012025_03_17_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/16/image_23012025_03_17_04_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/16/image_23012025_03_16_58_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/03/16/image_23012025_03_16_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/16/image_23012025_03_16_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/16/image_23012025_03_16_40_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a68b438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a68b438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a68b438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:18:02.509555
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/17/image_23012025_03_17_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/16/image_23012025_03_17_04_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/16/image_23012025_03_16_58_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/03/16/image_23012025_03_16_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/16/image_23012025_03_16_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/16/image_23012025_03_16_40_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97a494a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97a494a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97a494a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:18:31.955378
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/18/image_23012025_03_18_53_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/03/18/image_23012025_03_18_47_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/03/18/image_23012025_03_18_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/18/image_23012025_03_18_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/18/image_23012025_03_18_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/03/18/image_23012025_03_18_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb61834a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb61834a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb61834a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:19:02.937973
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/18/image_23012025_03_18_53_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/03/18/image_23012025_03_18_47_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/03/18/image_23012025_03_18_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/18/image_23012025_03_18_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/18/image_23012025_03_18_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/03/18/image_23012025_03_18_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9ae24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9ae24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9ae24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:19:32.074408
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/19/image_23012025_03_19_52_5196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/19/image_23012025_03_19_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/03/19/image_23012025_03_19_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/03/19/image_23012025_03_19_28_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/03/19/image_23012025_03_19_22_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/03/18/image_23012025_03_18_58_5191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8aa26438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8aa26438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8aa26438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:20:02.735843
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/19/image_23012025_03_19_52_5196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/19/image_23012025_03_19_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/03/19/image_23012025_03_19_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/03/19/image_23012025_03_19_28_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/03/19/image_23012025_03_19_22_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/03/18/image_23012025_03_18_58_5191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fadc5a438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadc5a438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadc5a438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:20:32.130239
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/20/image_23012025_03_20_52_5194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/20/image_23012025_03_20_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/20/image_23012025_03_20_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/20/image_23012025_03_20_22_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/03/20/image_23012025_03_20_10_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/03/19/image_23012025_03_20_04_6241.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa78014a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa78014a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa78014a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:21:02.870581
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/20/image_23012025_03_20_52_5194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/20/image_23012025_03_20_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/20/image_23012025_03_20_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/20/image_23012025_03_20_22_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/03/20/image_23012025_03_20_10_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/03/19/image_23012025_03_20_04_6241.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac5a54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac5a54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac5a54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:21:32.285525
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/21/image_23012025_03_21_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/21/image_23012025_03_21_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/03/21/image_23012025_03_21_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/21/image_23012025_03_21_34_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/03/21/image_23012025_03_21_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/21/image_23012025_03_21_22_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86f544a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86f544a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86f544a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:22:02.851164
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/21/image_23012025_03_21_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/21/image_23012025_03_21_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/03/21/image_23012025_03_21_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/21/image_23012025_03_21_34_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/03/21/image_23012025_03_21_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/21/image_23012025_03_21_22_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa62d438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa62d438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa62d438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:22:32.390807
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/22/image_23012025_03_22_53_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/03/22/image_23012025_03_22_46_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/03/22/image_23012025_03_22_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/03/22/image_23012025_03_22_34_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/03/22/image_23012025_03_22_28_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/03/22/image_23012025_03_22_23_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb08c4438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb08c4438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb08c4438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:23:03.111036
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/22/image_23012025_03_22_53_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/03/22/image_23012025_03_22_46_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/03/22/image_23012025_03_22_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/03/22/image_23012025_03_22_34_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/03/22/image_23012025_03_22_28_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/03/22/image_23012025_03_22_23_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82b394a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82b394a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82b394a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:23:32.477904
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/23/image_23012025_03_23_53_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/03/23/image_23012025_03_23_46_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/03/23/image_23012025_03_23_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/23/image_23012025_03_23_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/23/image_23012025_03_23_28_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/03/23/image_23012025_03_23_23_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c5ba438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c5ba438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c5ba438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:24:03.285223
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/23/image_23012025_03_23_53_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/03/23/image_23012025_03_23_46_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/03/23/image_23012025_03_23_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/23/image_23012025_03_23_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/23/image_23012025_03_23_28_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/03/23/image_23012025_03_23_23_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf8084a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf8084a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf8084a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:24:32.566613
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/24/image_23012025_03_24_52_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/03/24/image_23012025_03_24_46_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/03/24/image_23012025_03_24_40_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/03/24/image_23012025_03_24_34_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/03/24/image_23012025_03_24_29_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/03/24/image_23012025_03_24_23_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae9624a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae9624a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae9624a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:25:03.165577
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/24/image_23012025_03_24_52_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/03/24/image_23012025_03_24_46_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/03/24/image_23012025_03_24_40_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/03/24/image_23012025_03_24_34_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/03/24/image_23012025_03_24_29_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/03/24/image_23012025_03_24_23_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f984fa4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f984fa4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f984fa4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:25:32.664464
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/25/image_23012025_03_25_52_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/03/25/image_23012025_03_25_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/25/image_23012025_03_25_40_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/03/25/image_23012025_03_25_34_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/03/25/image_23012025_03_25_29_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/25/image_23012025_03_25_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76fae4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76fae4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76fae4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:26:02.242083
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/26/image_23012025_03_26_10_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/03/25/image_23012025_03_25_52_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/03/25/image_23012025_03_25_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/25/image_23012025_03_25_40_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/03/25/image_23012025_03_25_34_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/03/25/image_23012025_03_25_29_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8cd3b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cd3b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cd3b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:26:31.765736
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/26/image_23012025_03_26_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/03/26/image_23012025_03_26_46_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/03/26/image_23012025_03_26_40_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/03/26/image_23012025_03_26_34_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/03/26/image_23012025_03_26_29_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/03/26/image_23012025_03_26_22_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97b584a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97b584a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97b584a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:27:02.464715
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/26/image_23012025_03_26_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/03/26/image_23012025_03_26_46_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/03/26/image_23012025_03_26_40_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/03/26/image_23012025_03_26_34_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/03/26/image_23012025_03_26_29_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/03/26/image_23012025_03_26_22_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81caa4e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81caa4e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81caa4e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:27:31.945015
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/27/image_23012025_03_27_05_6184.jpg', 2), ('/home/nano/Desktop/images/23012025/03/26/image_23012025_03_26_59_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/26/image_23012025_03_26_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/03/26/image_23012025_03_26_46_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/03/26/image_23012025_03_26_40_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/03/26/image_23012025_03_26_34_5181.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa426c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa426c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa426c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:28:02.571699
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/27/image_23012025_03_27_05_6184.jpg', 2), ('/home/nano/Desktop/images/23012025/03/26/image_23012025_03_26_59_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/26/image_23012025_03_26_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/03/26/image_23012025_03_26_46_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/03/26/image_23012025_03_26_40_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/03/26/image_23012025_03_26_34_5181.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1abf438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1abf438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1abf438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:28:32.018067
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/28/image_23012025_03_28_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/28/image_23012025_03_28_22_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/03/28/image_23012025_03_28_16_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/28/image_23012025_03_28_10_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/03/27/image_23012025_03_27_16_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/27/image_23012025_03_27_05_6184.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78ce34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78ce34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78ce34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:29:03.025938
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/28/image_23012025_03_28_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/28/image_23012025_03_28_22_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/03/28/image_23012025_03_28_16_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/28/image_23012025_03_28_10_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/03/27/image_23012025_03_27_16_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/27/image_23012025_03_27_05_6184.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a7b04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a7b04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a7b04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:29:32.113248
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/28/image_23012025_03_28_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/28/image_23012025_03_28_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/28/image_23012025_03_28_22_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/03/28/image_23012025_03_28_16_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/28/image_23012025_03_28_10_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/03/27/image_23012025_03_27_16_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c56d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c56d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c56d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:30:02.722073
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/28/image_23012025_03_28_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/28/image_23012025_03_28_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/28/image_23012025_03_28_22_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/03/28/image_23012025_03_28_16_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/28/image_23012025_03_28_10_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/03/27/image_23012025_03_27_16_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97de04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97de04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97de04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:30:32.217303
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/29/image_23012025_03_29_58_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/28/image_23012025_03_28_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/28/image_23012025_03_28_28_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b67e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b67e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b67e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:31:03.128821
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_10_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/29/image_23012025_03_29_58_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/28/image_23012025_03_28_52_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ef814a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ef814a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ef814a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:31:32.330460
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_40_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_10_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f0b84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f0b84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f0b84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:32:02.943075
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_40_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_10_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84335438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84335438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84335438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:32:32.408423
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_40_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_10_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f865534a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f865534a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f865534a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:33:03.203850
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_40_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_10_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ace1438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ace1438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ace1438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:33:32.507385
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_40_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_10_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c00c438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c00c438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c00c438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:34:03.494694
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_40_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_10_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ed9e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ed9e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ed9e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:34:32.602223
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_40_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_10_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb371e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb371e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb371e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:35:03.416303
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_40_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_10_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb56f34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb56f34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb56f34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:35:32.716201
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_52_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_40_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_10_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_40_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafe3e438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafe3e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafe3e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:36:02.259802
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_52_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_40_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_10_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/30/image_23012025_03_30_40_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c6594a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c6594a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c6594a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:36:31.771272
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/36/image_23012025_03_36_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/36/image_23012025_03_36_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/36/image_23012025_03_36_16_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/03/35/image_23012025_03_35_58_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_52_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_40_5189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa13e9438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa13e9438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa13e9438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:37:02.571875
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/36/image_23012025_03_36_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/36/image_23012025_03_36_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/36/image_23012025_03_36_16_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/03/35/image_23012025_03_35_58_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_52_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/03/31/image_23012025_03_31_40_5189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8f634a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8f634a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8f634a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:37:31.894996
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/37/image_23012025_03_37_28_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/03/37/image_23012025_03_37_11_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/36/image_23012025_03_37_04_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/36/image_23012025_03_36_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/36/image_23012025_03_36_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/36/image_23012025_03_36_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81a534a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81a534a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81a534a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:38:02.364495
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/37/image_23012025_03_37_28_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/03/37/image_23012025_03_37_11_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/36/image_23012025_03_37_04_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/36/image_23012025_03_36_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/36/image_23012025_03_36_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/36/image_23012025_03_36_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f0f74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f0f74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f0f74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:38:31.975899
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/38/image_23012025_03_38_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/38/image_23012025_03_38_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/38/image_23012025_03_38_11_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/03/37/image_23012025_03_38_04_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/03/37/image_23012025_03_37_46_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/03/37/image_23012025_03_37_28_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb57124a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb57124a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb57124a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:39:03.164380
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/38/image_23012025_03_38_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/38/image_23012025_03_38_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/38/image_23012025_03_38_11_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/03/37/image_23012025_03_38_04_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/03/37/image_23012025_03_37_46_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/03/37/image_23012025_03_37_28_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94e2b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94e2b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94e2b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:39:32.068330
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/39/image_23012025_03_39_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/39/image_23012025_03_39_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/38/image_23012025_03_38_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/38/image_23012025_03_38_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/38/image_23012025_03_38_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/38/image_23012025_03_38_11_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa36114a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa36114a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa36114a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:40:02.704412
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/39/image_23012025_03_39_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/39/image_23012025_03_39_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/38/image_23012025_03_38_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/38/image_23012025_03_38_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/38/image_23012025_03_38_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/38/image_23012025_03_38_11_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9200a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9200a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9200a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:40:32.153548
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/40/image_23012025_03_40_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/40/image_23012025_03_40_28_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/03/40/image_23012025_03_40_22_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/40/image_23012025_03_40_11_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/03/39/image_23012025_03_39_52_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/03/39/image_23012025_03_39_41_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa99254a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa99254a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa99254a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:41:02.921095
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/40/image_23012025_03_40_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/40/image_23012025_03_40_28_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/03/40/image_23012025_03_40_22_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/40/image_23012025_03_40_11_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/03/39/image_23012025_03_39_52_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/03/39/image_23012025_03_39_41_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faaf594a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaf594a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaf594a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:41:32.258442
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/41/image_23012025_03_41_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/40/image_23012025_03_41_04_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/03/40/image_23012025_03_40_58_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/40/image_23012025_03_40_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/40/image_23012025_03_40_28_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/03/40/image_23012025_03_40_22_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76a30438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76a30438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76a30438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:42:02.888635
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/41/image_23012025_03_41_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/40/image_23012025_03_41_04_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/03/40/image_23012025_03_40_58_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/40/image_23012025_03_40_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/40/image_23012025_03_40_28_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/03/40/image_23012025_03_40_22_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac7b54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac7b54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac7b54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:42:32.366889
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/42/image_23012025_03_42_52_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/03/42/image_23012025_03_42_47_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/42/image_23012025_03_42_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/42/image_23012025_03_42_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/42/image_23012025_03_42_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/42/image_23012025_03_42_22_5181.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d819438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d819438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d819438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:43:03.044756
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/42/image_23012025_03_42_52_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/03/42/image_23012025_03_42_47_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/42/image_23012025_03_42_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/42/image_23012025_03_42_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/42/image_23012025_03_42_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/42/image_23012025_03_42_22_5181.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fcd94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fcd94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fcd94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:43:32.456032
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/43/image_23012025_03_43_52_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/03/43/image_23012025_03_43_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/43/image_23012025_03_43_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/43/image_23012025_03_43_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/43/image_23012025_03_43_28_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/03/43/image_23012025_03_43_22_5183.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa40dc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa40dc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa40dc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:44:03.345596
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/43/image_23012025_03_43_52_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/03/43/image_23012025_03_43_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/43/image_23012025_03_43_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/43/image_23012025_03_43_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/43/image_23012025_03_43_28_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/03/43/image_23012025_03_43_22_5183.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa22414a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa22414a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa22414a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:44:32.534830
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/44/image_23012025_03_44_52_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/03/44/image_23012025_03_44_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/44/image_23012025_03_44_40_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/03/44/image_23012025_03_44_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/44/image_23012025_03_44_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/44/image_23012025_03_44_22_5185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f815774a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f815774a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f815774a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:45:03.159757
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/44/image_23012025_03_44_52_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/03/44/image_23012025_03_44_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/44/image_23012025_03_44_40_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/03/44/image_23012025_03_44_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/44/image_23012025_03_44_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/44/image_23012025_03_44_22_5185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac8114a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac8114a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac8114a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:45:32.627940
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/45/image_23012025_03_45_52_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/03/45/image_23012025_03_45_47_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/45/image_23012025_03_45_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/45/image_23012025_03_45_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/45/image_23012025_03_45_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/45/image_23012025_03_45_22_5182.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa70114a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa70114a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa70114a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:46:03.194097
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/45/image_23012025_03_45_52_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/03/45/image_23012025_03_45_47_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/45/image_23012025_03_45_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/45/image_23012025_03_45_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/45/image_23012025_03_45_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/45/image_23012025_03_45_22_5182.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3f784a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3f784a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3f784a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:46:32.717065
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/46/image_23012025_03_46_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/03/46/image_23012025_03_46_47_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/03/46/image_23012025_03_46_40_6215.jpg', 2), ('/home/nano/Desktop/images/23012025/03/46/image_23012025_03_46_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/46/image_23012025_03_46_28_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/03/46/image_23012025_03_46_23_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faac4d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faac4d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faac4d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:47:02.465925
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/46/image_23012025_03_46_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/03/46/image_23012025_03_46_47_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/03/46/image_23012025_03_46_40_6215.jpg', 2), ('/home/nano/Desktop/images/23012025/03/46/image_23012025_03_46_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/46/image_23012025_03_46_28_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/03/46/image_23012025_03_46_23_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f769e74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f769e74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f769e74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:47:31.809845
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/47/image_23012025_03_47_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/47/image_23012025_03_47_46_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/03/47/image_23012025_03_47_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/47/image_23012025_03_47_34_6219.jpg', 2), ('/home/nano/Desktop/images/23012025/03/47/image_23012025_03_47_28_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/03/47/image_23012025_03_47_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d2494a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d2494a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d2494a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:48:02.480235
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/47/image_23012025_03_47_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/47/image_23012025_03_47_46_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/03/47/image_23012025_03_47_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/47/image_23012025_03_47_34_6219.jpg', 2), ('/home/nano/Desktop/images/23012025/03/47/image_23012025_03_47_28_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/03/47/image_23012025_03_47_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8510a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8510a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8510a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:48:31.914154
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/48/image_23012025_03_48_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/48/image_23012025_03_48_46_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/03/48/image_23012025_03_48_40_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/03/48/image_23012025_03_48_34_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/03/48/image_23012025_03_48_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/03/48/image_23012025_03_48_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f5584a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f5584a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f5584a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:49:02.805999
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/48/image_23012025_03_48_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/48/image_23012025_03_48_46_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/03/48/image_23012025_03_48_40_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/03/48/image_23012025_03_48_34_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/03/48/image_23012025_03_48_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/03/48/image_23012025_03_48_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8967f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8967f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8967f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:49:32.077321
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/49/image_23012025_03_49_53_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/49/image_23012025_03_49_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/03/49/image_23012025_03_49_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/49/image_23012025_03_49_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/49/image_23012025_03_49_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/49/image_23012025_03_49_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8acad4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8acad4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8acad4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:50:02.711040
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/49/image_23012025_03_49_53_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/49/image_23012025_03_49_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/03/49/image_23012025_03_49_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/49/image_23012025_03_49_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/49/image_23012025_03_49_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/49/image_23012025_03_49_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91c294a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91c294a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91c294a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:50:32.214652
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/50/image_23012025_03_50_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/03/50/image_23012025_03_50_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/50/image_23012025_03_50_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/50/image_23012025_03_50_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/03/50/image_23012025_03_50_28_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/03/50/image_23012025_03_50_23_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93f65438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93f65438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93f65438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:51:02.969191
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/50/image_23012025_03_50_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/03/50/image_23012025_03_50_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/50/image_23012025_03_50_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/50/image_23012025_03_50_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/03/50/image_23012025_03_50_28_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/03/50/image_23012025_03_50_23_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e2cd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e2cd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e2cd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:51:32.333240
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/51/image_23012025_03_51_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/51/image_23012025_03_51_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/03/51/image_23012025_03_51_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/03/51/image_23012025_03_51_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/51/image_23012025_03_51_16_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/03/51/image_23012025_03_51_10_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b3cb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b3cb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b3cb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:52:03.000521
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/52/image_23012025_03_52_16_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/51/image_23012025_03_51_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/03/51/image_23012025_03_51_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/03/51/image_23012025_03_51_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/03/51/image_23012025_03_51_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/51/image_23012025_03_51_16_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80eb04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80eb04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80eb04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:52:32.404205
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/52/image_23012025_03_52_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/03/52/image_23012025_03_52_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/03/52/image_23012025_03_52_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/52/image_23012025_03_52_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/03/52/image_23012025_03_52_29_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/52/image_23012025_03_52_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cccd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cccd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cccd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:53:03.251203
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/52/image_23012025_03_52_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/03/52/image_23012025_03_52_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/03/52/image_23012025_03_52_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/52/image_23012025_03_52_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/03/52/image_23012025_03_52_29_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/52/image_23012025_03_52_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9df9e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9df9e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9df9e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:53:32.521996
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/53/image_23012025_03_53_52_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/03/53/image_23012025_03_53_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/03/53/image_23012025_03_53_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/53/image_23012025_03_53_34_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/03/53/image_23012025_03_53_29_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/53/image_23012025_03_53_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8916f438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8916f438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8916f438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:54:03.503026
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/53/image_23012025_03_53_52_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/03/53/image_23012025_03_53_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/03/53/image_23012025_03_53_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/53/image_23012025_03_53_34_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/03/53/image_23012025_03_53_29_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/53/image_23012025_03_53_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bcf84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bcf84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bcf84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:54:32.613081
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/54/image_23012025_03_54_52_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/03/54/image_23012025_03_54_46_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/03/54/image_23012025_03_54_40_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/03/54/image_23012025_03_54_35_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/03/54/image_23012025_03_54_29_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/03/54/image_23012025_03_54_22_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb22234e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb22234e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb22234e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:55:03.380417
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/54/image_23012025_03_54_52_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/03/54/image_23012025_03_54_46_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/03/54/image_23012025_03_54_40_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/03/54/image_23012025_03_54_35_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/03/54/image_23012025_03_54_29_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/03/54/image_23012025_03_54_22_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa20174a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa20174a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa20174a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:55:32.710907
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/55/image_23012025_03_55_52_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/03/55/image_23012025_03_55_46_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/03/55/image_23012025_03_55_40_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/03/55/image_23012025_03_55_35_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/55/image_23012025_03_55_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/55/image_23012025_03_55_22_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c0944a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c0944a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c0944a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:56:02.382818
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/55/image_23012025_03_55_52_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/03/55/image_23012025_03_55_46_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/03/55/image_23012025_03_55_40_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/03/55/image_23012025_03_55_35_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/03/55/image_23012025_03_55_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/55/image_23012025_03_55_22_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f829634a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f829634a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f829634a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:56:31.813936
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/56/image_23012025_03_56_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/56/image_23012025_03_56_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/03/56/image_23012025_03_56_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/03/56/image_23012025_03_56_35_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/56/image_23012025_03_56_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/56/image_23012025_03_56_22_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb24ed4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb24ed4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb24ed4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:57:02.509498
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/57/image_23012025_03_57_16_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/56/image_23012025_03_56_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/03/56/image_23012025_03_56_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/03/56/image_23012025_03_56_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/03/56/image_23012025_03_56_35_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/56/image_23012025_03_56_28_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96ec84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96ec84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96ec84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:57:31.888361
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/57/image_23012025_03_57_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/57/image_23012025_03_57_46_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/03/57/image_23012025_03_57_40_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/03/57/image_23012025_03_57_35_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/57/image_23012025_03_57_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/57/image_23012025_03_57_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e0894a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e0894a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e0894a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:58:02.326199
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/57/image_23012025_03_57_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/57/image_23012025_03_57_46_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/03/57/image_23012025_03_57_40_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/03/57/image_23012025_03_57_35_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/57/image_23012025_03_57_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/57/image_23012025_03_57_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f981e6438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f981e6438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f981e6438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:59:03.550683
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/57/image_23012025_03_57_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/57/image_23012025_03_57_46_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/03/57/image_23012025_03_57_40_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/03/57/image_23012025_03_57_35_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/03/57/image_23012025_03_57_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/03/57/image_23012025_03_57_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93f2c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93f2c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93f2c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 03:59:32.490266
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/59/image_23012025_03_59_52_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/03/59/image_23012025_03_59_47_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/59/image_23012025_03_59_41_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/03/59/image_23012025_03_59_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/59/image_23012025_03_59_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/03/59/image_23012025_03_59_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c3ec4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c3ec4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c3ec4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:00:03.053120
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/03/59/image_23012025_03_59_52_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/03/59/image_23012025_03_59_47_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/03/59/image_23012025_03_59_41_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/03/59/image_23012025_03_59_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/03/59/image_23012025_03_59_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/03/59/image_23012025_03_59_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa80e74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa80e74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa80e74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:00:32.571068
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/00/image_23012025_04_00_52_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/04/00/image_23012025_04_00_47_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/04/00/image_23012025_04_00_40_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/04/00/image_23012025_04_00_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/00/image_23012025_04_00_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/00/image_23012025_04_00_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb38344a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb38344a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb38344a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:01:03.430183
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/00/image_23012025_04_00_52_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/04/00/image_23012025_04_00_47_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/04/00/image_23012025_04_00_40_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/04/00/image_23012025_04_00_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/00/image_23012025_04_00_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/00/image_23012025_04_00_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c9f14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c9f14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c9f14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:01:32.686526
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/01/image_23012025_04_01_52_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/04/01/image_23012025_04_01_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/01/image_23012025_04_01_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/04/01/image_23012025_04_01_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/01/image_23012025_04_01_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/01/image_23012025_04_01_22_5180.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ab594a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ab594a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ab594a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:02:02.269494
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/01/image_23012025_04_01_52_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/04/01/image_23012025_04_01_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/01/image_23012025_04_01_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/04/01/image_23012025_04_01_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/01/image_23012025_04_01_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/01/image_23012025_04_01_22_5180.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3609438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3609438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3609438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:02:31.780476
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/02/image_23012025_04_02_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/04/02/image_23012025_04_02_46_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/02/image_23012025_04_02_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/02/image_23012025_04_02_34_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/04/02/image_23012025_04_02_28_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/04/02/image_23012025_04_02_23_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a074438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a074438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a074438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:03:02.617623
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/02/image_23012025_04_02_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/04/02/image_23012025_04_02_46_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/02/image_23012025_04_02_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/02/image_23012025_04_02_34_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/04/02/image_23012025_04_02_28_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/04/02/image_23012025_04_02_23_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80fe74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80fe74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80fe74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:03:31.931647
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/03/image_23012025_04_03_53_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/04/03/image_23012025_04_03_46_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/03/image_23012025_04_03_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/04/03/image_23012025_04_03_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/04/03/image_23012025_04_03_28_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/04/03/image_23012025_04_03_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b3334a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b3334a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b3334a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:04:02.864355
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/03/image_23012025_04_03_53_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/04/03/image_23012025_04_03_46_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/03/image_23012025_04_03_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/04/03/image_23012025_04_03_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/04/03/image_23012025_04_03_28_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/04/03/image_23012025_04_03_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9770b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9770b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9770b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:04:32.086556
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/04/image_23012025_04_04_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/04/image_23012025_04_04_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/04/image_23012025_04_04_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/04/image_23012025_04_04_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/04/image_23012025_04_04_28_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/04/04/image_23012025_04_04_23_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb41994a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb41994a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb41994a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:05:02.859199
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/04/image_23012025_04_04_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/04/image_23012025_04_04_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/04/image_23012025_04_04_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/04/image_23012025_04_04_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/04/image_23012025_04_04_28_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/04/04/image_23012025_04_04_23_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b8d64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b8d64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b8d64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:05:32.156407
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/05/image_23012025_04_05_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/04/05/image_23012025_04_05_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/05/image_23012025_04_05_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/05/image_23012025_04_05_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/05/image_23012025_04_05_28_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/04/05/image_23012025_04_05_23_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f798784a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f798784a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f798784a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:06:02.822949
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/05/image_23012025_04_05_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/04/05/image_23012025_04_05_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/05/image_23012025_04_05_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/05/image_23012025_04_05_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/05/image_23012025_04_05_28_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/04/05/image_23012025_04_05_23_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f956504a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f956504a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f956504a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:06:32.260655
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/06/image_23012025_04_06_52_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/06/image_23012025_04_06_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/06/image_23012025_04_06_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/06/image_23012025_04_06_34_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/04/06/image_23012025_04_06_29_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/06/image_23012025_04_06_23_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f909244a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f909244a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f909244a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:07:02.958813
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/06/image_23012025_04_06_52_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/06/image_23012025_04_06_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/06/image_23012025_04_06_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/06/image_23012025_04_06_34_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/04/06/image_23012025_04_06_29_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/06/image_23012025_04_06_23_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82cb2470>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82cb2470>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82cb2470>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:07:32.363748
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/07/image_23012025_04_07_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/07/image_23012025_04_07_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/07/image_23012025_04_07_40_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/07/image_23012025_04_07_34_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/04/07/image_23012025_04_07_29_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/07/image_23012025_04_07_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa82574a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa82574a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa82574a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:08:02.945396
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/07/image_23012025_04_07_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/07/image_23012025_04_07_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/07/image_23012025_04_07_40_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/07/image_23012025_04_07_34_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/04/07/image_23012025_04_07_29_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/07/image_23012025_04_07_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c5bd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c5bd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c5bd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:08:32.467369
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/08/image_23012025_04_08_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/08/image_23012025_04_08_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/08/image_23012025_04_08_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/08/image_23012025_04_08_34_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/04/08/image_23012025_04_08_29_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/08/image_23012025_04_08_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2c334a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2c334a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2c334a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:09:03.490475
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/08/image_23012025_04_08_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/08/image_23012025_04_08_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/08/image_23012025_04_08_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/08/image_23012025_04_08_34_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/04/08/image_23012025_04_08_29_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/08/image_23012025_04_08_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8cef5438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cef5438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cef5438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:09:32.541819
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/09/image_23012025_04_09_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/04/09/image_23012025_04_09_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/09/image_23012025_04_09_40_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/04/09/image_23012025_04_09_35_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/09/image_23012025_04_09_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/09/image_23012025_04_09_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7d32438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7d32438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7d32438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:10:03.128004
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/09/image_23012025_04_09_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/04/09/image_23012025_04_09_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/09/image_23012025_04_09_40_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/04/09/image_23012025_04_09_35_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/09/image_23012025_04_09_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/09/image_23012025_04_09_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93124438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93124438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93124438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:10:32.664195
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/10/image_23012025_04_10_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/04/10/image_23012025_04_10_46_6211.jpg', 2), ('/home/nano/Desktop/images/23012025/04/10/image_23012025_04_10_40_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/04/10/image_23012025_04_10_35_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/10/image_23012025_04_10_28_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/10/image_23012025_04_10_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e8074a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e8074a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e8074a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:11:03.594111
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/10/image_23012025_04_10_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/04/10/image_23012025_04_10_46_6211.jpg', 2), ('/home/nano/Desktop/images/23012025/04/10/image_23012025_04_10_40_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/04/10/image_23012025_04_10_35_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/10/image_23012025_04_10_28_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/10/image_23012025_04_10_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb63a94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb63a94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb63a94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:11:32.843538
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/11/image_23012025_04_11_52_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/11/image_23012025_04_11_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/11/image_23012025_04_11_40_5198.jpg', 2), ('/home/nano/Desktop/images/23012025/04/11/image_23012025_04_11_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/11/image_23012025_04_11_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/11/image_23012025_04_11_16_6247.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faaf6c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaf6c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaf6c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:12:02.413985
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/11/image_23012025_04_11_52_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/11/image_23012025_04_11_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/11/image_23012025_04_11_40_5198.jpg', 2), ('/home/nano/Desktop/images/23012025/04/11/image_23012025_04_11_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/11/image_23012025_04_11_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/11/image_23012025_04_11_16_6247.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99b6b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99b6b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99b6b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:12:31.910673
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/12/image_23012025_04_12_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/04/12/image_23012025_04_12_40_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/04/12/image_23012025_04_12_35_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/12/image_23012025_04_12_28_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/04/12/image_23012025_04_12_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/12/image_23012025_04_12_16_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a125438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a125438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a125438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:13:02.509806
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/12/image_23012025_04_12_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/04/12/image_23012025_04_12_40_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/04/12/image_23012025_04_12_35_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/12/image_23012025_04_12_28_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/04/12/image_23012025_04_12_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/12/image_23012025_04_12_16_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f3aa4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f3aa4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f3aa4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:13:32.013713
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/13/image_23012025_04_13_52_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/04/13/image_23012025_04_13_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/04/13/image_23012025_04_13_41_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/13/image_23012025_04_13_35_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/13/image_23012025_04_13_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/13/image_23012025_04_13_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb329b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb329b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb329b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:14:02.814232
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/13/image_23012025_04_13_52_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/04/13/image_23012025_04_13_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/04/13/image_23012025_04_13_41_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/13/image_23012025_04_13_35_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/13/image_23012025_04_13_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/13/image_23012025_04_13_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7facc7a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facc7a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facc7a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:14:32.087477
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/14/image_23012025_04_14_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/14/image_23012025_04_14_46_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/04/14/image_23012025_04_14_41_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/14/image_23012025_04_14_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/04/14/image_23012025_04_14_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/04/14/image_23012025_04_14_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83fef4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83fef4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83fef4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:15:02.700153
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/14/image_23012025_04_14_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/14/image_23012025_04_14_46_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/04/14/image_23012025_04_14_41_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/14/image_23012025_04_14_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/04/14/image_23012025_04_14_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/04/14/image_23012025_04_14_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7add4438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7add4438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7add4438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:15:32.172691
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/15/image_23012025_04_15_52_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/04/15/image_23012025_04_15_47_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/04/15/image_23012025_04_15_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/15/image_23012025_04_15_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/04/15/image_23012025_04_15_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/04/15/image_23012025_04_15_16_5185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa83c64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa83c64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa83c64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:16:02.682457
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/15/image_23012025_04_15_52_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/04/15/image_23012025_04_15_47_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/04/15/image_23012025_04_15_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/15/image_23012025_04_15_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/04/15/image_23012025_04_15_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/04/15/image_23012025_04_15_16_5185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c59f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c59f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c59f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:16:32.265789
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/16/image_23012025_04_16_52_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/04/16/image_23012025_04_16_46_5249.jpg', 2), ('/home/nano/Desktop/images/23012025/04/16/image_23012025_04_16_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/04/16/image_23012025_04_16_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/16/image_23012025_04_16_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/16/image_23012025_04_16_22_5182.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8afe4438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8afe4438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8afe4438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:17:02.967542
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/16/image_23012025_04_16_52_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/04/16/image_23012025_04_16_46_5249.jpg', 2), ('/home/nano/Desktop/images/23012025/04/16/image_23012025_04_16_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/04/16/image_23012025_04_16_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/16/image_23012025_04_16_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/16/image_23012025_04_16_22_5182.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8c994a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8c994a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8c994a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:17:32.434993
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/17/image_23012025_04_17_52_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/04/17/image_23012025_04_17_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/17/image_23012025_04_17_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/17/image_23012025_04_17_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/17/image_23012025_04_17_28_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/17/image_23012025_04_17_22_5183.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9fb3438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9fb3438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9fb3438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:18:02.961182
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/17/image_23012025_04_17_52_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/04/17/image_23012025_04_17_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/17/image_23012025_04_17_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/17/image_23012025_04_17_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/17/image_23012025_04_17_28_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/17/image_23012025_04_17_22_5183.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f872e1438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f872e1438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f872e1438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:18:32.522810
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/18/image_23012025_04_18_47_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/18/image_23012025_04_18_41_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/04/18/image_23012025_04_18_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/18/image_23012025_04_18_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/04/18/image_23012025_04_18_22_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/04/18/image_23012025_04_18_17_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f891b24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f891b24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f891b24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:19:03.603964
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/18/image_23012025_04_18_47_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/18/image_23012025_04_18_41_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/04/18/image_23012025_04_18_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/18/image_23012025_04_18_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/04/18/image_23012025_04_18_22_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/04/18/image_23012025_04_18_17_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f950024e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f950024e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f950024e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:19:32.618085
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/19/image_23012025_04_19_47_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/19/image_23012025_04_19_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/04/19/image_23012025_04_19_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/04/19/image_23012025_04_19_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/04/19/image_23012025_04_19_22_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/04/19/image_23012025_04_19_17_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8dc1a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dc1a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dc1a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:20:03.299465
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/19/image_23012025_04_19_47_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/19/image_23012025_04_19_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/04/19/image_23012025_04_19_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/04/19/image_23012025_04_19_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/04/19/image_23012025_04_19_22_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/04/19/image_23012025_04_19_17_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae8f44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae8f44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae8f44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:20:32.718681
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/20/image_23012025_04_20_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/20/image_23012025_04_20_28_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/04/20/image_23012025_04_20_22_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/20/image_23012025_04_20_10_6210.jpg', 2), ('/home/nano/Desktop/images/23012025/04/19/image_23012025_04_20_04_6217.jpg', 2), ('/home/nano/Desktop/images/23012025/04/19/image_23012025_04_19_58_6211.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac0fd438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac0fd438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac0fd438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:21:02.399058
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/20/image_23012025_04_20_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/20/image_23012025_04_20_28_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/04/20/image_23012025_04_20_22_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/20/image_23012025_04_20_10_6210.jpg', 2), ('/home/nano/Desktop/images/23012025/04/19/image_23012025_04_20_04_6217.jpg', 2), ('/home/nano/Desktop/images/23012025/04/19/image_23012025_04_19_58_6211.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f917814a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f917814a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f917814a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:21:31.799392
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/21/image_23012025_04_21_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/21/image_23012025_04_21_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/21/image_23012025_04_21_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/21/image_23012025_04_21_22_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/21/image_23012025_04_21_17_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/21/image_23012025_04_21_10_6211.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6fea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6fea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6fea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:22:02.342472
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/21/image_23012025_04_21_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/21/image_23012025_04_21_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/21/image_23012025_04_21_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/21/image_23012025_04_21_22_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/21/image_23012025_04_21_17_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/21/image_23012025_04_21_10_6211.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f800464a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f800464a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f800464a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:22:31.908345
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/22/image_23012025_04_22_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/22/image_23012025_04_22_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/22/image_23012025_04_22_17_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/22/image_23012025_04_22_10_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/04/21/image_23012025_04_22_04_6220.jpg', 2), ('/home/nano/Desktop/images/23012025/04/21/image_23012025_04_21_58_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f793ca4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f793ca4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f793ca4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:23:02.588479
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/22/image_23012025_04_22_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/22/image_23012025_04_22_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/22/image_23012025_04_22_17_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/22/image_23012025_04_22_10_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/04/21/image_23012025_04_22_04_6220.jpg', 2), ('/home/nano/Desktop/images/23012025/04/21/image_23012025_04_21_58_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f9a64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f9a64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f9a64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:23:32.052554
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/23/image_23012025_04_23_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/23/image_23012025_04_23_47_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/23/image_23012025_04_23_22_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/23/image_23012025_04_23_17_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/23/image_23012025_04_23_10_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/22/image_23012025_04_22_47_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93a77438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93a77438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93a77438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:24:03.035614
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/23/image_23012025_04_23_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/23/image_23012025_04_23_47_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/23/image_23012025_04_23_22_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/23/image_23012025_04_23_17_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/23/image_23012025_04_23_10_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/22/image_23012025_04_22_47_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa90364a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa90364a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa90364a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:24:32.157909
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/24/image_23012025_04_24_52_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/04/24/image_23012025_04_24_47_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/24/image_23012025_04_24_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/04/24/image_23012025_04_24_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/24/image_23012025_04_24_17_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/04/24/image_23012025_04_24_10_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7cc4a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cc4a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cc4a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:25:02.975507
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/24/image_23012025_04_24_52_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/04/24/image_23012025_04_24_47_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/24/image_23012025_04_24_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/04/24/image_23012025_04_24_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/24/image_23012025_04_24_17_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/04/24/image_23012025_04_24_10_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76c9e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76c9e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76c9e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:25:32.240350
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/25/image_23012025_04_25_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/25/image_23012025_04_25_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/04/25/image_23012025_04_25_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/25/image_23012025_04_25_22_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/04/25/image_23012025_04_25_17_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/25/image_23012025_04_25_10_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb03974e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb03974e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb03974e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:26:02.605777
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/25/image_23012025_04_25_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/25/image_23012025_04_25_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/04/25/image_23012025_04_25_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/25/image_23012025_04_25_22_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/04/25/image_23012025_04_25_17_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/25/image_23012025_04_25_10_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f860df4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f860df4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f860df4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:26:32.331430
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/26/image_23012025_04_26_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/04/26/image_23012025_04_26_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/04/26/image_23012025_04_26_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/04/26/image_23012025_04_26_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/26/image_23012025_04_26_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/26/image_23012025_04_26_22_5179.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2c554a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2c554a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2c554a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:27:03.040896
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/26/image_23012025_04_26_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/04/26/image_23012025_04_26_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/04/26/image_23012025_04_26_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/04/26/image_23012025_04_26_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/26/image_23012025_04_26_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/26/image_23012025_04_26_22_5179.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fc7b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fc7b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fc7b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:27:32.450420
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/27/image_23012025_04_27_53_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/04/27/image_23012025_04_27_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/04/27/image_23012025_04_27_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/04/27/image_23012025_04_27_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/04/27/image_23012025_04_27_28_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/04/27/image_23012025_04_27_23_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa50734a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa50734a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa50734a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:28:02.940768
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/27/image_23012025_04_27_53_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/04/27/image_23012025_04_27_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/04/27/image_23012025_04_27_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/04/27/image_23012025_04_27_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/04/27/image_23012025_04_27_28_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/04/27/image_23012025_04_27_23_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8d9d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8d9d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8d9d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:28:32.523298
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/28/image_23012025_04_28_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/28/image_23012025_04_28_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/04/28/image_23012025_04_28_40_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/28/image_23012025_04_28_34_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/04/28/image_23012025_04_28_29_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/04/28/image_23012025_04_28_23_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a21b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a21b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a21b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:29:03.417203
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/28/image_23012025_04_28_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/28/image_23012025_04_28_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/04/28/image_23012025_04_28_40_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/28/image_23012025_04_28_34_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/04/28/image_23012025_04_28_29_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/04/28/image_23012025_04_28_23_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84b704a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84b704a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84b704a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:29:32.637868
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/29/image_23012025_04_29_52_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/04/29/image_23012025_04_29_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/29/image_23012025_04_29_40_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/04/29/image_23012025_04_29_34_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/04/29/image_23012025_04_29_29_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/29/image_23012025_04_29_22_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3870438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3870438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3870438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:30:03.194204
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/29/image_23012025_04_29_52_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/04/29/image_23012025_04_29_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/29/image_23012025_04_29_40_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/04/29/image_23012025_04_29_34_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/04/29/image_23012025_04_29_29_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/29/image_23012025_04_29_22_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d3354a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d3354a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d3354a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:30:32.744203
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/30/image_23012025_04_30_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/30/image_23012025_04_30_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/30/image_23012025_04_30_40_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/30/image_23012025_04_30_34_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/04/30/image_23012025_04_30_29_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/04/30/image_23012025_04_30_22_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb65094a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb65094a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb65094a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:31:02.309145
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/30/image_23012025_04_30_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/30/image_23012025_04_30_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/30/image_23012025_04_30_40_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/30/image_23012025_04_30_34_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/04/30/image_23012025_04_30_29_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/04/30/image_23012025_04_30_22_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d32d4e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d32d4e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d32d4e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:31:31.835842
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/31/image_23012025_04_31_52_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/31/image_23012025_04_31_40_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/04/31/image_23012025_04_31_35_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/04/31/image_23012025_04_31_29_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/31/image_23012025_04_31_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/31/image_23012025_04_31_10_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9edd74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9edd74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9edd74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:32:02.460205
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/31/image_23012025_04_31_52_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/31/image_23012025_04_31_40_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/04/31/image_23012025_04_31_35_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/04/31/image_23012025_04_31_29_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/31/image_23012025_04_31_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/31/image_23012025_04_31_10_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f856044a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f856044a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f856044a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:32:32.021756
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/32/image_23012025_04_32_40_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/04/32/image_23012025_04_32_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/32/image_23012025_04_32_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/32/image_23012025_04_32_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/32/image_23012025_04_32_04_5201.jpg', 2), ('/home/nano/Desktop/images/23012025/04/31/image_23012025_04_31_59_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ba584e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ba584e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ba584e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:33:02.702040
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/32/image_23012025_04_32_40_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/04/32/image_23012025_04_32_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/32/image_23012025_04_32_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/32/image_23012025_04_32_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/32/image_23012025_04_32_04_5201.jpg', 2), ('/home/nano/Desktop/images/23012025/04/31/image_23012025_04_31_59_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb18db438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb18db438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb18db438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:33:32.175090
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/33/image_23012025_04_33_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/04/33/image_23012025_04_33_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/04/33/image_23012025_04_33_35_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/33/image_23012025_04_33_16_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/33/image_23012025_04_33_10_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/33/image_23012025_04_33_05_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5fa3438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5fa3438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5fa3438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:34:02.932609
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/33/image_23012025_04_33_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/04/33/image_23012025_04_33_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/04/33/image_23012025_04_33_35_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/33/image_23012025_04_33_16_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/33/image_23012025_04_33_10_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/33/image_23012025_04_33_05_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e8414a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e8414a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e8414a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:34:32.266238
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/34/image_23012025_04_34_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/04/34/image_23012025_04_34_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/34/image_23012025_04_34_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/33/image_23012025_04_33_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/04/33/image_23012025_04_33_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/04/33/image_23012025_04_33_40_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76a34438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76a34438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76a34438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:35:03.043908
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/34/image_23012025_04_34_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/04/34/image_23012025_04_34_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/34/image_23012025_04_34_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/33/image_23012025_04_33_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/04/33/image_23012025_04_33_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/04/33/image_23012025_04_33_40_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b177438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b177438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b177438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:35:32.371970
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/35/image_23012025_04_35_46_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/04/35/image_23012025_04_35_40_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/04/35/image_23012025_04_35_35_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/04/35/image_23012025_04_35_10_5200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/35/image_23012025_04_35_05_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/34/image_23012025_04_34_58_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9aede4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9aede4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9aede4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:36:03.019690
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/35/image_23012025_04_35_46_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/04/35/image_23012025_04_35_40_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/04/35/image_23012025_04_35_35_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/04/35/image_23012025_04_35_10_5200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/35/image_23012025_04_35_05_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/34/image_23012025_04_34_58_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f863694a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f863694a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f863694a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:36:32.467119
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/36/image_23012025_04_36_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/35/image_23012025_04_35_52_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/04/35/image_23012025_04_35_46_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/04/35/image_23012025_04_35_40_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/04/35/image_23012025_04_35_35_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/04/35/image_23012025_04_35_10_5200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faac334a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faac334a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faac334a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:37:03.243755
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/36/image_23012025_04_36_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/35/image_23012025_04_35_52_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/04/35/image_23012025_04_35_46_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/04/35/image_23012025_04_35_40_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/04/35/image_23012025_04_35_35_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/04/35/image_23012025_04_35_10_5200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9db984a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9db984a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9db984a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:37:32.630375
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/37/image_23012025_04_37_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/37/image_23012025_04_37_10_5195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/37/image_23012025_04_37_05_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/04/36/image_23012025_04_36_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/36/image_23012025_04_36_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/35/image_23012025_04_35_52_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf52b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf52b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf52b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:38:03.251726
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/38/image_23012025_04_38_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/37/image_23012025_04_37_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/37/image_23012025_04_37_10_5195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/37/image_23012025_04_37_05_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/04/36/image_23012025_04_36_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/36/image_23012025_04_36_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f792b7438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f792b7438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f792b7438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:38:32.726576
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/38/image_23012025_04_38_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/38/image_23012025_04_38_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/04/38/image_23012025_04_38_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/38/image_23012025_04_38_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/38/image_23012025_04_38_16_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/38/image_23012025_04_38_10_5194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f998e64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f998e64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f998e64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:39:02.784270
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/38/image_23012025_04_38_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/38/image_23012025_04_38_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/04/38/image_23012025_04_38_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/38/image_23012025_04_38_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/38/image_23012025_04_38_16_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/38/image_23012025_04_38_10_5194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa64a14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa64a14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa64a14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:39:31.840589
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/39/image_23012025_04_39_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/38/image_23012025_04_38_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/38/image_23012025_04_38_46_6210.jpg', 2), ('/home/nano/Desktop/images/23012025/04/38/image_23012025_04_38_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/04/38/image_23012025_04_38_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/38/image_23012025_04_38_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa29a5438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa29a5438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa29a5438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:40:02.437548
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/39/image_23012025_04_39_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/38/image_23012025_04_38_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/38/image_23012025_04_38_46_6210.jpg', 2), ('/home/nano/Desktop/images/23012025/04/38/image_23012025_04_38_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/04/38/image_23012025_04_38_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/38/image_23012025_04_38_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d33f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d33f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d33f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:40:31.916512
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/40/image_23012025_04_40_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/40/image_23012025_04_40_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/04/40/image_23012025_04_40_41_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/40/image_23012025_04_40_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/40/image_23012025_04_40_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/04/40/image_23012025_04_40_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f867e04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f867e04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f867e04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:41:02.513117
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/40/image_23012025_04_40_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/40/image_23012025_04_40_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/04/40/image_23012025_04_40_41_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/40/image_23012025_04_40_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/04/40/image_23012025_04_40_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/04/40/image_23012025_04_40_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa71754a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa71754a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa71754a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:41:32.037800
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/41/image_23012025_04_41_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/41/image_23012025_04_41_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/04/41/image_23012025_04_41_41_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/04/41/image_23012025_04_41_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/41/image_23012025_04_41_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/41/image_23012025_04_41_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e9b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e9b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e9b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:42:02.574718
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/41/image_23012025_04_41_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/41/image_23012025_04_41_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/04/41/image_23012025_04_41_41_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/04/41/image_23012025_04_41_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/04/41/image_23012025_04_41_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/41/image_23012025_04_41_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1b984a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1b984a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1b984a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:42:32.141686
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/42/image_23012025_04_42_52_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/04/42/image_23012025_04_42_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/42/image_23012025_04_42_41_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/42/image_23012025_04_42_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/42/image_23012025_04_42_22_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/42/image_23012025_04_42_16_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9eafc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9eafc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9eafc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:43:03.022251
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/42/image_23012025_04_42_52_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/04/42/image_23012025_04_42_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/42/image_23012025_04_42_41_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/42/image_23012025_04_42_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/42/image_23012025_04_42_22_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/42/image_23012025_04_42_16_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78ad14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78ad14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78ad14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:43:32.262687
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/43/image_23012025_04_43_52_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/04/43/image_23012025_04_43_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/43/image_23012025_04_43_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/43/image_23012025_04_43_22_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/04/43/image_23012025_04_43_17_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/42/image_23012025_04_43_04_6207.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f782024a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f782024a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f782024a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:44:02.967232
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/43/image_23012025_04_43_52_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/04/43/image_23012025_04_43_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/43/image_23012025_04_43_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/43/image_23012025_04_43_22_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/04/43/image_23012025_04_43_17_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/42/image_23012025_04_43_04_6207.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ce6b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ce6b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ce6b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:44:32.398790
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/44/image_23012025_04_44_17_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/44/image_23012025_04_44_10_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/43/image_23012025_04_44_04_6227.jpg', 2), ('/home/nano/Desktop/images/23012025/04/43/image_23012025_04_43_58_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/43/image_23012025_04_43_52_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/04/43/image_23012025_04_43_34_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1be5438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1be5438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1be5438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:45:02.981722
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/44/image_23012025_04_44_17_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/44/image_23012025_04_44_10_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/43/image_23012025_04_44_04_6227.jpg', 2), ('/home/nano/Desktop/images/23012025/04/43/image_23012025_04_43_58_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/43/image_23012025_04_43_52_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/04/43/image_23012025_04_43_34_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f860ab4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f860ab4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f860ab4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:45:32.474189
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/45/image_23012025_04_45_47_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/45/image_23012025_04_45_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/45/image_23012025_04_45_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/45/image_23012025_04_45_22_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/04/45/image_23012025_04_45_17_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/45/image_23012025_04_45_10_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8343e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8343e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8343e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:46:03.092700
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/45/image_23012025_04_45_47_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/45/image_23012025_04_45_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/45/image_23012025_04_45_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/45/image_23012025_04_45_22_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/04/45/image_23012025_04_45_17_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/45/image_23012025_04_45_10_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86dc1438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86dc1438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86dc1438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:46:32.561948
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/46/image_23012025_04_46_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/46/image_23012025_04_46_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/46/image_23012025_04_46_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/46/image_23012025_04_46_22_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/04/46/image_23012025_04_46_17_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/46/image_23012025_04_46_10_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4bd94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4bd94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4bd94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:47:03.401654
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/46/image_23012025_04_46_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/46/image_23012025_04_46_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/46/image_23012025_04_46_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/46/image_23012025_04_46_22_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/04/46/image_23012025_04_46_17_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/46/image_23012025_04_46_10_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa31d94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa31d94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa31d94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:47:32.661159
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/47/image_23012025_04_47_47_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/47/image_23012025_04_47_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/47/image_23012025_04_47_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/04/47/image_23012025_04_47_28_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/47/image_23012025_04_47_17_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/04/47/image_23012025_04_47_10_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d7a34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d7a34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d7a34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:48:02.223052
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/47/image_23012025_04_47_47_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/47/image_23012025_04_47_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/47/image_23012025_04_47_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/04/47/image_23012025_04_47_28_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/47/image_23012025_04_47_17_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/04/47/image_23012025_04_47_10_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8372e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8372e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8372e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:48:31.811166
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/48/image_23012025_04_48_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/04/48/image_23012025_04_48_23_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/48/image_23012025_04_48_17_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/48/image_23012025_04_48_10_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/04/47/image_23012025_04_48_04_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/47/image_23012025_04_47_58_5185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93c814a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93c814a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93c814a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:49:02.986261
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/48/image_23012025_04_48_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/04/48/image_23012025_04_48_23_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/48/image_23012025_04_48_17_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/48/image_23012025_04_48_10_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/04/47/image_23012025_04_48_04_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/47/image_23012025_04_47_58_5185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88d154a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88d154a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88d154a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:49:31.918635
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/49/image_23012025_04_49_53_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/04/49/image_23012025_04_49_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/49/image_23012025_04_49_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/49/image_23012025_04_49_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/04/49/image_23012025_04_49_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/04/49/image_23012025_04_49_23_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d89d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d89d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d89d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:50:02.577441
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/49/image_23012025_04_49_53_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/04/49/image_23012025_04_49_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/49/image_23012025_04_49_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/49/image_23012025_04_49_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/04/49/image_23012025_04_49_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/04/49/image_23012025_04_49_23_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e4b44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e4b44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e4b44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:50:32.006681
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/50/image_23012025_04_50_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/50/image_23012025_04_50_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/04/50/image_23012025_04_50_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/04/50/image_23012025_04_50_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/04/50/image_23012025_04_50_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/04/50/image_23012025_04_50_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2d6f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2d6f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2d6f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:51:02.704189
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/50/image_23012025_04_50_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/50/image_23012025_04_50_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/04/50/image_23012025_04_50_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/04/50/image_23012025_04_50_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/04/50/image_23012025_04_50_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/04/50/image_23012025_04_50_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98e134a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98e134a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98e134a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:51:32.116202
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/51/image_23012025_04_51_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/51/image_23012025_04_51_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/51/image_23012025_04_51_28_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/04/51/image_23012025_04_51_23_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/51/image_23012025_04_51_10_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/04/50/image_23012025_04_51_04_6203.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f7a84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f7a84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f7a84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:52:02.734969
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/51/image_23012025_04_51_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/51/image_23012025_04_51_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/51/image_23012025_04_51_28_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/04/51/image_23012025_04_51_23_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/51/image_23012025_04_51_10_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/04/50/image_23012025_04_51_04_6203.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e5824a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e5824a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e5824a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:52:32.191116
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/52/image_23012025_04_52_53_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/04/52/image_23012025_04_52_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/52/image_23012025_04_52_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/52/image_23012025_04_52_28_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/04/52/image_23012025_04_52_23_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/52/image_23012025_04_52_16_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d3334a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d3334a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d3334a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:53:03.169739
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/52/image_23012025_04_52_53_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/04/52/image_23012025_04_52_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/52/image_23012025_04_52_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/52/image_23012025_04_52_28_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/04/52/image_23012025_04_52_23_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/52/image_23012025_04_52_16_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6a354a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6a354a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6a354a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:53:32.289835
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/53/image_23012025_04_53_53_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/53/image_23012025_04_53_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/53/image_23012025_04_53_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/53/image_23012025_04_53_34_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/04/53/image_23012025_04_53_23_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/53/image_23012025_04_53_10_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb591e438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb591e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb591e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:54:03.111781
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/54/image_23012025_04_54_29_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/53/image_23012025_04_53_53_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/53/image_23012025_04_53_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/53/image_23012025_04_53_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/53/image_23012025_04_53_34_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/04/53/image_23012025_04_53_23_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f28c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f28c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f28c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:54:32.392658
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/54/image_23012025_04_54_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/54/image_23012025_04_54_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/54/image_23012025_04_54_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/54/image_23012025_04_54_29_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/54/image_23012025_04_54_16_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/54/image_23012025_04_54_10_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a6734a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a6734a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a6734a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:55:03.141006
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/54/image_23012025_04_54_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/54/image_23012025_04_54_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/54/image_23012025_04_54_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/54/image_23012025_04_54_29_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/54/image_23012025_04_54_16_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/54/image_23012025_04_54_10_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7fe34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7fe34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7fe34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:55:32.560409
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/55/image_23012025_04_55_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/55/image_23012025_04_55_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/55/image_23012025_04_55_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/55/image_23012025_04_55_34_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/04/55/image_23012025_04_55_16_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/55/image_23012025_04_55_10_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ccf34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ccf34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ccf34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:56:03.146997
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/55/image_23012025_04_55_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/55/image_23012025_04_55_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/55/image_23012025_04_55_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/55/image_23012025_04_55_34_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/04/55/image_23012025_04_55_16_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/55/image_23012025_04_55_10_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78c75438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78c75438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78c75438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:56:32.670183
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/56/image_23012025_04_56_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/56/image_23012025_04_56_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/56/image_23012025_04_56_40_6213.jpg', 2), ('/home/nano/Desktop/images/23012025/04/56/image_23012025_04_56_29_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/56/image_23012025_04_56_22_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/04/56/image_23012025_04_56_10_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f0224a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f0224a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f0224a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:57:02.495797
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/56/image_23012025_04_56_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/56/image_23012025_04_56_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/56/image_23012025_04_56_40_6213.jpg', 2), ('/home/nano/Desktop/images/23012025/04/56/image_23012025_04_56_29_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/56/image_23012025_04_56_22_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/04/56/image_23012025_04_56_10_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa23b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa23b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa23b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:57:31.807418
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/57/image_23012025_04_57_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/57/image_23012025_04_57_35_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/57/image_23012025_04_57_22_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/57/image_23012025_04_57_16_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/57/image_23012025_04_57_10_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/04/56/image_23012025_04_56_59_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa87724a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa87724a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa87724a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:58:02.196005
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/57/image_23012025_04_57_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/57/image_23012025_04_57_35_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/57/image_23012025_04_57_22_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/57/image_23012025_04_57_16_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/57/image_23012025_04_57_10_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/04/56/image_23012025_04_56_59_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f962814a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f962814a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f962814a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:59:03.371073
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/58/image_23012025_04_58_40_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/04/58/image_23012025_04_58_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/04/58/image_23012025_04_58_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/04/58/image_23012025_04_58_10_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/04/58/image_23012025_04_58_05_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/57/image_23012025_04_57_52_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae9374a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae9374a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae9374a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 04:59:32.687338
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/59/image_23012025_04_59_35_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/59/image_23012025_04_59_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/59/image_23012025_04_59_05_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/58/image_23012025_04_58_58_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/58/image_23012025_04_58_40_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/04/58/image_23012025_04_58_35_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa28684a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa28684a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa28684a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:00:02.346633
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/04/59/image_23012025_04_59_35_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/59/image_23012025_04_59_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/59/image_23012025_04_59_05_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/58/image_23012025_04_58_58_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/58/image_23012025_04_58_40_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/04/58/image_23012025_04_58_35_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0c1b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0c1b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0c1b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:00:31.855148
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/00/image_23012025_05_00_10_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/04/59/image_23012025_04_59_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/59/image_23012025_04_59_35_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/59/image_23012025_04_59_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/59/image_23012025_04_59_05_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/58/image_23012025_04_58_58_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac678438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac678438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac678438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:01:02.561274
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/00/image_23012025_05_00_10_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/04/59/image_23012025_04_59_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/04/59/image_23012025_04_59_35_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/59/image_23012025_04_59_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/04/59/image_23012025_04_59_05_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/04/58/image_23012025_04_58_58_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78af1438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78af1438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78af1438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:01:31.963391
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/01/image_23012025_05_01_52_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/05/01/image_23012025_05_01_46_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/05/01/image_23012025_05_01_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/05/01/image_23012025_05_01_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/00/image_23012025_05_00_35_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/00/image_23012025_05_00_10_5192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4f32438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4f32438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4f32438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:02:02.453792
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/01/image_23012025_05_01_52_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/05/01/image_23012025_05_01_46_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/05/01/image_23012025_05_01_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/05/01/image_23012025_05_01_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/00/image_23012025_05_00_35_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/00/image_23012025_05_00_10_5192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa990e438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa990e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa990e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:02:32.062109
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/02/image_23012025_05_02_46_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/05/02/image_23012025_05_02_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/02/image_23012025_05_02_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/02/image_23012025_05_02_16_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/05/02/image_23012025_05_02_11_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/01/image_23012025_05_02_05_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa5f14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa5f14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa5f14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:03:02.956246
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/02/image_23012025_05_02_46_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/05/02/image_23012025_05_02_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/02/image_23012025_05_02_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/02/image_23012025_05_02_16_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/05/02/image_23012025_05_02_11_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/01/image_23012025_05_02_05_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f948194a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f948194a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f948194a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:03:32.202350
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/03/image_23012025_05_03_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/03/image_23012025_05_03_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/03/image_23012025_05_03_16_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/05/03/image_23012025_05_03_11_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/05/02/image_23012025_05_03_04_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/05/02/image_23012025_05_02_52_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e920438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e920438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e920438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:04:02.884334
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/03/image_23012025_05_03_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/03/image_23012025_05_03_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/03/image_23012025_05_03_16_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/05/03/image_23012025_05_03_11_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/05/02/image_23012025_05_03_04_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/05/02/image_23012025_05_02_52_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f62c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f62c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f62c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:04:32.276629
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/04/image_23012025_05_04_46_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/05/03/image_23012025_05_03_41_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/03/image_23012025_05_03_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/03/image_23012025_05_03_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/03/image_23012025_05_03_16_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/05/03/image_23012025_05_03_11_6203.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81236438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81236438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81236438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:05:03.016859
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/04/image_23012025_05_04_46_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/05/03/image_23012025_05_03_41_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/03/image_23012025_05_03_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/03/image_23012025_05_03_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/03/image_23012025_05_03_16_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/05/03/image_23012025_05_03_11_6203.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f895b14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f895b14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f895b14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:05:32.379310
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/04/image_23012025_05_05_04_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/05/04/image_23012025_05_04_58_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/04/image_23012025_05_04_46_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/05/03/image_23012025_05_03_41_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/03/image_23012025_05_03_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/03/image_23012025_05_03_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5ab84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5ab84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5ab84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:06:02.956248
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/04/image_23012025_05_05_04_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/05/04/image_23012025_05_04_58_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/04/image_23012025_05_04_46_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/05/03/image_23012025_05_03_41_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/03/image_23012025_05_03_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/03/image_23012025_05_03_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f889304a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f889304a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f889304a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:06:32.472827
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/06/image_23012025_05_06_52_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/05/06/image_23012025_05_06_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/06/image_23012025_05_06_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/06/image_23012025_05_06_22_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/05/05/image_23012025_05_06_04_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/05/05/image_23012025_05_05_58_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ed974a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ed974a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ed974a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:07:03.205969
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/06/image_23012025_05_06_52_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/05/06/image_23012025_05_06_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/06/image_23012025_05_06_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/06/image_23012025_05_06_22_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/05/05/image_23012025_05_06_04_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/05/05/image_23012025_05_05_58_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b7e94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b7e94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b7e94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:07:32.601671
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/07/image_23012025_05_07_52_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/05/07/image_23012025_05_07_47_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/07/image_23012025_05_07_40_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/05/07/image_23012025_05_07_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/07/image_23012025_05_07_28_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/05/07/image_23012025_05_07_22_5178.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f817034a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f817034a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f817034a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:08:03.279461
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/07/image_23012025_05_07_52_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/05/07/image_23012025_05_07_47_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/07/image_23012025_05_07_40_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/05/07/image_23012025_05_07_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/07/image_23012025_05_07_28_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/05/07/image_23012025_05_07_22_5178.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2cc94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2cc94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2cc94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:08:32.710089
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/08/image_23012025_05_08_53_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/05/08/image_23012025_05_08_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/05/08/image_23012025_05_08_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/08/image_23012025_05_08_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/05/08/image_23012025_05_08_28_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/05/08/image_23012025_05_08_23_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7face2e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7face2e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7face2e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:09:02.800097
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/08/image_23012025_05_08_53_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/05/08/image_23012025_05_08_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/05/08/image_23012025_05_08_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/08/image_23012025_05_08_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/05/08/image_23012025_05_08_28_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/05/08/image_23012025_05_08_23_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79d7e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79d7e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79d7e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:09:31.887355
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/09/image_23012025_05_09_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/05/09/image_23012025_05_09_46_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/09/image_23012025_05_09_40_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/09/image_23012025_05_09_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/05/09/image_23012025_05_09_28_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/05/09/image_23012025_05_09_23_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9397d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9397d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9397d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:10:02.482376
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/09/image_23012025_05_09_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/05/09/image_23012025_05_09_46_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/09/image_23012025_05_09_40_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/09/image_23012025_05_09_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/05/09/image_23012025_05_09_28_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/05/09/image_23012025_05_09_23_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fc274a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fc274a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fc274a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:10:31.977653
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/10/image_23012025_05_10_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/10/image_23012025_05_10_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/10/image_23012025_05_10_40_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/05/10/image_23012025_05_10_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/10/image_23012025_05_10_28_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/05/10/image_23012025_05_10_23_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78e354a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78e354a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78e354a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:11:02.737616
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/10/image_23012025_05_10_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/10/image_23012025_05_10_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/10/image_23012025_05_10_40_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/05/10/image_23012025_05_10_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/10/image_23012025_05_10_28_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/05/10/image_23012025_05_10_23_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76ee34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76ee34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76ee34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:11:32.070057
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/11/image_23012025_05_11_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/11/image_23012025_05_11_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/11/image_23012025_05_11_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/05/11/image_23012025_05_11_34_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/05/11/image_23012025_05_11_29_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/11/image_23012025_05_11_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f852be4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f852be4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f852be4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:12:02.656004
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/11/image_23012025_05_11_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/11/image_23012025_05_11_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/11/image_23012025_05_11_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/05/11/image_23012025_05_11_34_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/05/11/image_23012025_05_11_29_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/11/image_23012025_05_11_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97d83438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97d83438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97d83438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:12:32.161587
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/12/image_23012025_05_12_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/12/image_23012025_05_12_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/12/image_23012025_05_12_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/05/12/image_23012025_05_12_34_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/05/12/image_23012025_05_12_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/12/image_23012025_05_12_22_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c9574a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c9574a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c9574a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:13:02.902035
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/12/image_23012025_05_12_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/12/image_23012025_05_12_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/12/image_23012025_05_12_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/05/12/image_23012025_05_12_34_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/05/12/image_23012025_05_12_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/12/image_23012025_05_12_22_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e8e04e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e8e04e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e8e04e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:13:32.293394
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/13/image_23012025_05_13_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/13/image_23012025_05_13_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/05/13/image_23012025_05_13_40_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/05/13/image_23012025_05_13_35_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/13/image_23012025_05_13_29_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/13/image_23012025_05_13_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e2744a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e2744a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e2744a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:14:03.208964
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/13/image_23012025_05_13_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/13/image_23012025_05_13_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/05/13/image_23012025_05_13_40_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/05/13/image_23012025_05_13_35_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/13/image_23012025_05_13_29_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/13/image_23012025_05_13_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ff29438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ff29438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ff29438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:14:32.438369
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/14/image_23012025_05_14_52_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/05/14/image_23012025_05_14_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/05/14/image_23012025_05_14_40_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/05/14/image_23012025_05_14_35_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/05/14/image_23012025_05_14_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/14/image_23012025_05_14_22_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7b3a438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7b3a438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7b3a438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:15:03.109269
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/14/image_23012025_05_14_52_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/05/14/image_23012025_05_14_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/05/14/image_23012025_05_14_40_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/05/14/image_23012025_05_14_35_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/05/14/image_23012025_05_14_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/14/image_23012025_05_14_22_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88e66438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88e66438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88e66438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:15:32.533474
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/15/image_23012025_05_15_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/15/image_23012025_05_15_46_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/05/15/image_23012025_05_15_41_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/15/image_23012025_05_15_35_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/05/15/image_23012025_05_15_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/15/image_23012025_05_15_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92e8a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92e8a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92e8a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:16:03.065271
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/15/image_23012025_05_15_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/15/image_23012025_05_15_46_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/05/15/image_23012025_05_15_41_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/15/image_23012025_05_15_35_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/05/15/image_23012025_05_15_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/15/image_23012025_05_15_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f818494a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f818494a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f818494a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:16:32.611442
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/16/image_23012025_05_16_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/16/image_23012025_05_16_46_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/05/16/image_23012025_05_16_41_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/16/image_23012025_05_16_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/16/image_23012025_05_16_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/16/image_23012025_05_16_22_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f924c24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f924c24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f924c24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:17:03.500314
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/16/image_23012025_05_16_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/16/image_23012025_05_16_46_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/05/16/image_23012025_05_16_41_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/16/image_23012025_05_16_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/16/image_23012025_05_16_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/16/image_23012025_05_16_22_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f610438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f610438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f610438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:17:32.706380
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/17/image_23012025_05_17_52_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/17/image_23012025_05_17_46_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/05/17/image_23012025_05_17_41_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/17/image_23012025_05_17_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/17/image_23012025_05_17_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/17/image_23012025_05_17_22_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d59f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d59f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d59f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:18:02.326536
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/17/image_23012025_05_17_52_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/17/image_23012025_05_17_46_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/05/17/image_23012025_05_17_41_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/17/image_23012025_05_17_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/17/image_23012025_05_17_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/17/image_23012025_05_17_22_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7830e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7830e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7830e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:18:31.811252
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/18/image_23012025_05_18_52_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/05/18/image_23012025_05_18_47_6210.jpg', 2), ('/home/nano/Desktop/images/23012025/05/18/image_23012025_05_18_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/18/image_23012025_05_18_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/18/image_23012025_05_18_28_6185.jpg', 2), ('/home/nano/Desktop/images/23012025/05/18/image_23012025_05_18_22_5178.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e5554a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e5554a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e5554a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:19:03.019549
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/18/image_23012025_05_18_52_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/05/18/image_23012025_05_18_47_6210.jpg', 2), ('/home/nano/Desktop/images/23012025/05/18/image_23012025_05_18_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/18/image_23012025_05_18_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/18/image_23012025_05_18_28_6185.jpg', 2), ('/home/nano/Desktop/images/23012025/05/18/image_23012025_05_18_22_5178.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fabb634a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabb634a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabb634a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:19:31.953293
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/19/image_23012025_05_19_52_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/05/19/image_23012025_05_19_47_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/19/image_23012025_05_19_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/19/image_23012025_05_19_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/19/image_23012025_05_19_28_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/05/19/image_23012025_05_19_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85ef34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85ef34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85ef34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:20:02.521673
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/19/image_23012025_05_19_52_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/05/19/image_23012025_05_19_47_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/19/image_23012025_05_19_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/19/image_23012025_05_19_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/19/image_23012025_05_19_28_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/05/19/image_23012025_05_19_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb07554a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb07554a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb07554a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:20:32.028492
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/20/image_23012025_05_20_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/20/image_23012025_05_20_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/20/image_23012025_05_20_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/05/20/image_23012025_05_20_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/20/image_23012025_05_20_22_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/05/20/image_23012025_05_20_17_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f799154a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f799154a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f799154a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:21:02.576021
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/20/image_23012025_05_20_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/20/image_23012025_05_20_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/20/image_23012025_05_20_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/05/20/image_23012025_05_20_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/20/image_23012025_05_20_22_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/05/20/image_23012025_05_20_17_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8271d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8271d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8271d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:21:32.127371
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/21/image_23012025_05_21_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/21/image_23012025_05_21_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/21/image_23012025_05_21_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/05/21/image_23012025_05_21_34_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/05/21/image_23012025_05_21_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/21/image_23012025_05_21_23_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8840438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8840438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8840438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:22:02.845309
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/21/image_23012025_05_21_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/21/image_23012025_05_21_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/21/image_23012025_05_21_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/05/21/image_23012025_05_21_34_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/05/21/image_23012025_05_21_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/21/image_23012025_05_21_23_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82adf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82adf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82adf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:22:32.267791
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/22/image_23012025_05_22_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/22/image_23012025_05_22_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/05/22/image_23012025_05_22_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/05/22/image_23012025_05_22_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/22/image_23012025_05_22_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/05/22/image_23012025_05_22_10_6206.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5c654a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5c654a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5c654a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:23:02.960762
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/22/image_23012025_05_22_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/22/image_23012025_05_22_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/05/22/image_23012025_05_22_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/05/22/image_23012025_05_22_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/22/image_23012025_05_22_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/05/22/image_23012025_05_22_10_6206.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0a1a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0a1a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0a1a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:23:32.360878
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/23/image_23012025_05_23_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/23/image_23012025_05_23_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/23/image_23012025_05_23_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/23/image_23012025_05_23_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/05/23/image_23012025_05_23_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/05/23/image_23012025_05_23_23_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b06f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b06f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b06f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:24:03.208622
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/23/image_23012025_05_23_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/23/image_23012025_05_23_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/23/image_23012025_05_23_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/23/image_23012025_05_23_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/05/23/image_23012025_05_23_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/05/23/image_23012025_05_23_23_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f854564a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f854564a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f854564a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:24:32.463419
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/24/image_23012025_05_24_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/24/image_23012025_05_24_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/24/image_23012025_05_24_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/24/image_23012025_05_24_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/05/24/image_23012025_05_24_28_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/05/24/image_23012025_05_24_23_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91196438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91196438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91196438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:25:03.190995
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/25/image_23012025_05_25_29_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/05/24/image_23012025_05_24_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/24/image_23012025_05_24_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/24/image_23012025_05_24_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/24/image_23012025_05_24_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/05/24/image_23012025_05_24_28_5176.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb36b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb36b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb36b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:25:32.539764
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/25/image_23012025_05_25_52_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/25/image_23012025_05_25_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/25/image_23012025_05_25_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/25/image_23012025_05_25_34_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/05/25/image_23012025_05_25_29_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/05/25/image_23012025_05_25_23_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95ec64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95ec64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95ec64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:26:03.164553
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/25/image_23012025_05_25_52_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/25/image_23012025_05_25_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/25/image_23012025_05_25_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/25/image_23012025_05_25_34_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/05/25/image_23012025_05_25_29_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/05/25/image_23012025_05_25_23_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f4f34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f4f34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f4f34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:26:32.651503
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/26/image_23012025_05_26_52_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/26/image_23012025_05_26_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/05/26/image_23012025_05_26_40_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/05/26/image_23012025_05_26_34_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/05/26/image_23012025_05_26_29_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/05/26/image_23012025_05_26_22_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f839154a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f839154a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f839154a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:27:03.342582
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/26/image_23012025_05_26_52_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/26/image_23012025_05_26_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/05/26/image_23012025_05_26_40_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/05/26/image_23012025_05_26_34_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/05/26/image_23012025_05_26_29_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/05/26/image_23012025_05_26_22_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f015438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f015438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f015438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:27:32.727880
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/27/image_23012025_05_27_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/05/27/image_23012025_05_27_46_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/05/27/image_23012025_05_27_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/05/27/image_23012025_05_27_34_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/05/27/image_23012025_05_27_29_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/27/image_23012025_05_27_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f993724a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f993724a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f993724a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:28:02.383191
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/27/image_23012025_05_27_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/05/27/image_23012025_05_27_46_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/05/27/image_23012025_05_27_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/05/27/image_23012025_05_27_34_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/05/27/image_23012025_05_27_29_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/27/image_23012025_05_27_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f953c34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f953c34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f953c34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:28:31.838896
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/28/image_23012025_05_28_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/28/image_23012025_05_28_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/28/image_23012025_05_28_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/05/28/image_23012025_05_28_34_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/05/28/image_23012025_05_28_29_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/28/image_23012025_05_28_22_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82a774a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82a774a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82a774a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:29:02.763575
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/28/image_23012025_05_28_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/28/image_23012025_05_28_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/28/image_23012025_05_28_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/05/28/image_23012025_05_28_34_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/05/28/image_23012025_05_28_29_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/28/image_23012025_05_28_22_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2a254a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2a254a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2a254a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:29:31.936997
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/29/image_23012025_05_29_40_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/29/image_23012025_05_29_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/29/image_23012025_05_29_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/29/image_23012025_05_29_22_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/29/image_23012025_05_29_16_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/29/image_23012025_05_29_10_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9debe4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9debe4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9debe4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:30:02.537692
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/29/image_23012025_05_29_40_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/29/image_23012025_05_29_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/29/image_23012025_05_29_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/29/image_23012025_05_29_22_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/29/image_23012025_05_29_16_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/29/image_23012025_05_29_10_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6dab4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6dab4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6dab4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:30:32.010859
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/30/image_23012025_05_30_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/30/image_23012025_05_30_46_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/05/30/image_23012025_05_30_40_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/05/30/image_23012025_05_30_35_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/30/image_23012025_05_30_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/05/30/image_23012025_05_30_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf2f24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf2f24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf2f24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:31:02.682473
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/30/image_23012025_05_30_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/30/image_23012025_05_30_46_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/05/30/image_23012025_05_30_40_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/05/30/image_23012025_05_30_35_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/30/image_23012025_05_30_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/05/30/image_23012025_05_30_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa474c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa474c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa474c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:31:32.100907
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/31/image_23012025_05_31_52_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/31/image_23012025_05_31_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/31/image_23012025_05_31_40_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/05/31/image_23012025_05_31_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/05/31/image_23012025_05_31_28_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/31/image_23012025_05_31_22_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99626438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99626438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99626438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:32:02.705575
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/31/image_23012025_05_31_52_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/31/image_23012025_05_31_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/31/image_23012025_05_31_40_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/05/31/image_23012025_05_31_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/05/31/image_23012025_05_31_28_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/31/image_23012025_05_31_22_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ac434a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ac434a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ac434a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:32:32.201765
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/32/image_23012025_05_32_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/05/32/image_23012025_05_32_46_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/32/image_23012025_05_32_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/05/32/image_23012025_05_32_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/32/image_23012025_05_32_28_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/05/32/image_23012025_05_32_22_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9afc34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9afc34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9afc34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:33:02.913672
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/32/image_23012025_05_32_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/05/32/image_23012025_05_32_46_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/32/image_23012025_05_32_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/05/32/image_23012025_05_32_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/32/image_23012025_05_32_28_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/05/32/image_23012025_05_32_22_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79b024a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79b024a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79b024a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:33:32.340976
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/33/image_23012025_05_33_52_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/05/33/image_23012025_05_33_46_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/33/image_23012025_05_33_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/05/33/image_23012025_05_33_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/33/image_23012025_05_33_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/33/image_23012025_05_33_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d4774e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d4774e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d4774e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:34:03.128202
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/33/image_23012025_05_33_52_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/05/33/image_23012025_05_33_46_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/33/image_23012025_05_33_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/05/33/image_23012025_05_33_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/33/image_23012025_05_33_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/33/image_23012025_05_33_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa64b24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa64b24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa64b24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:34:32.433713
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/34/image_23012025_05_34_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/34/image_23012025_05_34_46_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/34/image_23012025_05_34_41_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/34/image_23012025_05_34_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/34/image_23012025_05_34_28_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/05/34/image_23012025_05_34_22_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78693438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78693438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78693438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:35:03.120317
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/35/image_23012025_05_35_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/05/34/image_23012025_05_34_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/34/image_23012025_05_34_46_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/34/image_23012025_05_34_41_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/34/image_23012025_05_34_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/34/image_23012025_05_34_28_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f853554a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f853554a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f853554a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:35:32.565513
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/35/image_23012025_05_35_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/35/image_23012025_05_35_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/05/35/image_23012025_05_35_41_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/35/image_23012025_05_35_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/35/image_23012025_05_35_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/35/image_23012025_05_35_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f793b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f793b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f793b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:36:03.239993
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/35/image_23012025_05_35_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/35/image_23012025_05_35_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/05/35/image_23012025_05_35_41_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/35/image_23012025_05_35_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/35/image_23012025_05_35_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/35/image_23012025_05_35_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3e5e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3e5e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3e5e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:36:32.674157
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/36/image_23012025_05_36_52_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/05/36/image_23012025_05_36_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/36/image_23012025_05_36_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/05/36/image_23012025_05_36_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/05/36/image_23012025_05_36_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/05/36/image_23012025_05_36_22_5182.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94e1e438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94e1e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94e1e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:37:02.483108
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/36/image_23012025_05_36_52_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/05/36/image_23012025_05_36_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/36/image_23012025_05_36_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/05/36/image_23012025_05_36_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/05/36/image_23012025_05_36_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/05/36/image_23012025_05_36_22_5182.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf4cd4e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf4cd4e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf4cd4e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:37:31.754664
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/37/image_23012025_05_37_52_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/05/37/image_23012025_05_37_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/05/37/image_23012025_05_37_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/05/37/image_23012025_05_37_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/37/image_23012025_05_37_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/37/image_23012025_05_37_22_5184.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a4684a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a4684a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a4684a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:38:02.274676
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/37/image_23012025_05_37_52_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/05/37/image_23012025_05_37_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/05/37/image_23012025_05_37_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/05/37/image_23012025_05_37_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/37/image_23012025_05_37_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/37/image_23012025_05_37_22_5184.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88fb04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88fb04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88fb04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:38:31.856337
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/38/image_23012025_05_38_52_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/05/38/image_23012025_05_38_47_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/38/image_23012025_05_38_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/38/image_23012025_05_38_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/38/image_23012025_05_38_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/38/image_23012025_05_38_22_5184.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cd794a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cd794a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cd794a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:39:02.711447
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/38/image_23012025_05_38_52_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/05/38/image_23012025_05_38_47_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/38/image_23012025_05_38_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/38/image_23012025_05_38_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/38/image_23012025_05_38_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/38/image_23012025_05_38_22_5184.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5dd6438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5dd6438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5dd6438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:39:31.970582
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/39/image_23012025_05_39_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/39/image_23012025_05_39_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/39/image_23012025_05_39_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/39/image_23012025_05_39_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/39/image_23012025_05_39_28_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/05/39/image_23012025_05_39_23_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f806774a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f806774a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f806774a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:40:02.570155
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/39/image_23012025_05_39_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/39/image_23012025_05_39_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/39/image_23012025_05_39_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/39/image_23012025_05_39_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/39/image_23012025_05_39_28_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/05/39/image_23012025_05_39_23_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad2ba438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad2ba438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad2ba438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:40:32.119741
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/40/image_23012025_05_40_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/40/image_23012025_05_40_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/40/image_23012025_05_40_40_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/05/40/image_23012025_05_40_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/40/image_23012025_05_40_28_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/05/40/image_23012025_05_40_23_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78a194a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78a194a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78a194a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:41:02.722862
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/40/image_23012025_05_40_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/40/image_23012025_05_40_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/40/image_23012025_05_40_40_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/05/40/image_23012025_05_40_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/40/image_23012025_05_40_28_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/05/40/image_23012025_05_40_23_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f448438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f448438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f448438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:41:32.198421
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/41/image_23012025_05_41_53_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/05/41/image_23012025_05_41_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/05/41/image_23012025_05_41_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/41/image_23012025_05_41_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/41/image_23012025_05_41_28_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/41/image_23012025_05_41_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f910ba4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f910ba4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f910ba4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:42:02.912299
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/41/image_23012025_05_41_53_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/05/41/image_23012025_05_41_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/05/41/image_23012025_05_41_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/41/image_23012025_05_41_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/41/image_23012025_05_41_28_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/41/image_23012025_05_41_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9360a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9360a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9360a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:42:32.286073
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/42/image_23012025_05_42_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/42/image_23012025_05_42_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/42/image_23012025_05_42_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/42/image_23012025_05_42_34_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/05/42/image_23012025_05_42_29_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/42/image_23012025_05_42_23_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99c6b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99c6b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99c6b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:43:02.983722
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/42/image_23012025_05_42_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/42/image_23012025_05_42_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/42/image_23012025_05_42_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/42/image_23012025_05_42_34_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/05/42/image_23012025_05_42_29_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/42/image_23012025_05_42_23_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f842804a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f842804a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f842804a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:43:32.412530
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/43/image_23012025_05_43_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/43/image_23012025_05_43_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/43/image_23012025_05_43_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/43/image_23012025_05_43_34_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/05/43/image_23012025_05_43_29_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/43/image_23012025_05_43_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b9464a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b9464a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b9464a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:44:03.474308
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/43/image_23012025_05_43_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/43/image_23012025_05_43_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/43/image_23012025_05_43_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/43/image_23012025_05_43_34_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/05/43/image_23012025_05_43_29_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/43/image_23012025_05_43_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87ca94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87ca94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87ca94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:44:32.600881
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/44/image_23012025_05_44_52_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/05/44/image_23012025_05_44_46_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/44/image_23012025_05_44_40_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/05/44/image_23012025_05_44_35_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/44/image_23012025_05_44_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/44/image_23012025_05_44_22_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f959504a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f959504a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f959504a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:45:03.444121
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/44/image_23012025_05_44_52_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/05/44/image_23012025_05_44_46_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/44/image_23012025_05_44_40_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/05/44/image_23012025_05_44_35_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/44/image_23012025_05_44_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/44/image_23012025_05_44_22_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f821204a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f821204a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f821204a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:45:32.703152
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/45/image_23012025_05_45_52_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/45/image_23012025_05_45_46_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/05/45/image_23012025_05_45_41_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/45/image_23012025_05_45_35_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/05/45/image_23012025_05_45_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/45/image_23012025_05_45_22_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa54124a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa54124a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa54124a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:46:02.200632
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/45/image_23012025_05_45_52_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/45/image_23012025_05_45_46_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/05/45/image_23012025_05_45_41_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/45/image_23012025_05_45_35_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/05/45/image_23012025_05_45_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/45/image_23012025_05_45_22_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0cb24e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0cb24e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0cb24e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:46:31.806066
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/46/image_23012025_05_46_52_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/46/image_23012025_05_46_46_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/05/46/image_23012025_05_46_41_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/46/image_23012025_05_46_34_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/05/46/image_23012025_05_46_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/46/image_23012025_05_46_22_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5fcd438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5fcd438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5fcd438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:47:02.545927
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/46/image_23012025_05_46_52_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/46/image_23012025_05_46_46_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/05/46/image_23012025_05_46_41_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/46/image_23012025_05_46_34_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/05/46/image_23012025_05_46_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/46/image_23012025_05_46_22_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b8be4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b8be4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b8be4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:47:31.909592
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/47/image_23012025_05_47_52_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/05/47/image_23012025_05_47_47_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/47/image_23012025_05_47_41_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/47/image_23012025_05_47_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/47/image_23012025_05_47_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/47/image_23012025_05_47_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb414c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb414c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb414c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:48:02.444075
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/47/image_23012025_05_47_52_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/05/47/image_23012025_05_47_47_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/47/image_23012025_05_47_41_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/47/image_23012025_05_47_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/47/image_23012025_05_47_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/47/image_23012025_05_47_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bbb64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bbb64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bbb64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:48:31.988305
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/48/image_23012025_05_48_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/05/48/image_23012025_05_48_47_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/48/image_23012025_05_48_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/48/image_23012025_05_48_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/48/image_23012025_05_48_28_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/05/48/image_23012025_05_48_22_5182.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa83cb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa83cb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa83cb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:49:03.016154
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/48/image_23012025_05_48_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/05/48/image_23012025_05_48_47_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/48/image_23012025_05_48_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/48/image_23012025_05_48_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/48/image_23012025_05_48_28_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/05/48/image_23012025_05_48_22_5182.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f853a5438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f853a5438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f853a5438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:49:32.098395
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/49/image_23012025_05_49_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/05/49/image_23012025_05_49_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/49/image_23012025_05_49_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/49/image_23012025_05_49_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/49/image_23012025_05_49_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/05/49/image_23012025_05_49_22_5181.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7850d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7850d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7850d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:50:02.707792
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/49/image_23012025_05_49_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/05/49/image_23012025_05_49_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/49/image_23012025_05_49_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/49/image_23012025_05_49_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/05/49/image_23012025_05_49_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/05/49/image_23012025_05_49_22_5181.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87a814a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87a814a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87a814a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:50:32.212679
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/50/image_23012025_05_50_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/50/image_23012025_05_50_47_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/50/image_23012025_05_50_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/50/image_23012025_05_50_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/05/50/image_23012025_05_50_28_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/05/50/image_23012025_05_50_23_6206.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa07f54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa07f54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa07f54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:51:03.051910
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/50/image_23012025_05_51_04_6226.jpg', 2), ('/home/nano/Desktop/images/23012025/05/50/image_23012025_05_50_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/50/image_23012025_05_50_47_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/50/image_23012025_05_50_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/50/image_23012025_05_50_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/05/50/image_23012025_05_50_28_5184.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb32704a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb32704a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb32704a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:51:32.401467
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/51/image_23012025_05_51_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/51/image_23012025_05_51_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/51/image_23012025_05_51_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/51/image_23012025_05_51_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/05/51/image_23012025_05_51_28_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/05/51/image_23012025_05_51_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb56754a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb56754a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb56754a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:52:03.067896
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/51/image_23012025_05_51_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/51/image_23012025_05_51_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/51/image_23012025_05_51_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/51/image_23012025_05_51_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/05/51/image_23012025_05_51_28_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/05/51/image_23012025_05_51_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb639d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb639d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb639d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:52:32.501429
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/52/image_23012025_05_52_53_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/52/image_23012025_05_52_46_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/52/image_23012025_05_52_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/52/image_23012025_05_52_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/05/52/image_23012025_05_52_28_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/05/52/image_23012025_05_52_23_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb557e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb557e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb557e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:53:03.061817
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/52/image_23012025_05_52_53_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/52/image_23012025_05_52_46_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/52/image_23012025_05_52_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/52/image_23012025_05_52_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/05/52/image_23012025_05_52_28_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/05/52/image_23012025_05_52_23_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab6914a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab6914a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab6914a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:53:32.582016
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/53/image_23012025_05_53_52_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/05/53/image_23012025_05_53_46_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/53/image_23012025_05_53_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/05/53/image_23012025_05_53_34_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/05/53/image_23012025_05_53_29_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/53/image_23012025_05_53_23_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faeb0f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faeb0f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faeb0f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:54:03.493793
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/53/image_23012025_05_53_52_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/05/53/image_23012025_05_53_46_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/53/image_23012025_05_53_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/05/53/image_23012025_05_53_34_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/05/53/image_23012025_05_53_29_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/53/image_23012025_05_53_23_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76ea24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76ea24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76ea24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:54:32.695160
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/54/image_23012025_05_54_52_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/54/image_23012025_05_54_46_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/54/image_23012025_05_54_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/54/image_23012025_05_54_34_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/05/54/image_23012025_05_54_29_6185.jpg', 2), ('/home/nano/Desktop/images/23012025/05/54/image_23012025_05_54_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf69e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf69e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf69e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:55:02.538940
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/54/image_23012025_05_54_52_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/54/image_23012025_05_54_46_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/05/54/image_23012025_05_54_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/54/image_23012025_05_54_34_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/05/54/image_23012025_05_54_29_6185.jpg', 2), ('/home/nano/Desktop/images/23012025/05/54/image_23012025_05_54_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad71f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad71f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad71f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:55:31.803147
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/55/image_23012025_05_55_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/05/55/image_23012025_05_55_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/55/image_23012025_05_55_40_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/05/55/image_23012025_05_55_35_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/55/image_23012025_05_55_29_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/05/55/image_23012025_05_55_22_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81dcc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81dcc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81dcc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:56:02.386985
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/56/image_23012025_05_56_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/55/image_23012025_05_55_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/05/55/image_23012025_05_55_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/55/image_23012025_05_55_40_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/05/55/image_23012025_05_55_35_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/55/image_23012025_05_55_29_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f39e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f39e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f39e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:56:31.893075
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/56/image_23012025_05_56_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/56/image_23012025_05_56_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/56/image_23012025_05_56_40_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/05/56/image_23012025_05_56_35_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/56/image_23012025_05_56_28_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/56/image_23012025_05_56_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf9e74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf9e74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf9e74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:57:02.604711
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/56/image_23012025_05_56_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/56/image_23012025_05_56_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/56/image_23012025_05_56_40_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/05/56/image_23012025_05_56_35_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/56/image_23012025_05_56_28_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/56/image_23012025_05_56_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad9b54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad9b54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad9b54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:57:32.009903
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/57/image_23012025_05_57_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/57/image_23012025_05_57_46_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/05/57/image_23012025_05_57_41_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/57/image_23012025_05_57_35_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/57/image_23012025_05_57_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/57/image_23012025_05_57_22_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80314438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80314438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80314438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:59:03.588508
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/58/image_23012025_05_58_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/58/image_23012025_05_58_46_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/05/58/image_23012025_05_58_41_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/05/58/image_23012025_05_58_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/05/58/image_23012025_05_58_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/05/58/image_23012025_05_58_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa54a74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa54a74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa54a74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 05:59:32.624946
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/59/image_23012025_05_59_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/05/59/image_23012025_05_59_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/59/image_23012025_05_59_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/05/59/image_23012025_05_59_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/59/image_23012025_05_59_22_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/59/image_23012025_05_59_16_5179.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f964184a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f964184a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f964184a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:00:03.352527
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/05/59/image_23012025_05_59_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/05/59/image_23012025_05_59_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/05/59/image_23012025_05_59_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/05/59/image_23012025_05_59_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/05/59/image_23012025_05_59_22_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/05/59/image_23012025_05_59_16_5179.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9afe64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9afe64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9afe64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:00:32.729991
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/00/image_23012025_06_00_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/00/image_23012025_06_00_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/06/00/image_23012025_06_00_41_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/06/00/image_23012025_06_00_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/00/image_23012025_06_00_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/00/image_23012025_06_00_22_5183.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c4ed4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c4ed4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c4ed4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:01:02.365674
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/00/image_23012025_06_00_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/00/image_23012025_06_00_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/06/00/image_23012025_06_00_41_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/06/00/image_23012025_06_00_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/00/image_23012025_06_00_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/00/image_23012025_06_00_22_5183.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76a014a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76a014a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76a014a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:01:31.810939
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/01/image_23012025_06_01_52_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/06/01/image_23012025_06_01_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/06/01/image_23012025_06_01_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/01/image_23012025_06_01_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/01/image_23012025_06_01_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/06/01/image_23012025_06_01_22_5189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f24b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f24b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f24b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:02:02.372637
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/01/image_23012025_06_01_52_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/06/01/image_23012025_06_01_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/06/01/image_23012025_06_01_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/01/image_23012025_06_01_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/01/image_23012025_06_01_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/06/01/image_23012025_06_01_22_5189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84ef44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84ef44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84ef44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:02:31.911253
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/02/image_23012025_06_02_52_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/06/02/image_23012025_06_02_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/02/image_23012025_06_02_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/06/02/image_23012025_06_02_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/02/image_23012025_06_02_28_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/02/image_23012025_06_02_22_5183.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f812b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f812b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f812b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:03:02.720036
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/02/image_23012025_06_02_52_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/06/02/image_23012025_06_02_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/02/image_23012025_06_02_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/06/02/image_23012025_06_02_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/02/image_23012025_06_02_28_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/02/image_23012025_06_02_22_5183.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa12724a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa12724a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa12724a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:03:32.001426
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/03/image_23012025_06_03_53_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/03/image_23012025_06_03_47_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/03/image_23012025_06_03_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/03/image_23012025_06_03_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/03/image_23012025_06_03_28_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/03/image_23012025_06_03_23_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d1784a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d1784a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d1784a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:04:02.965240
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/03/image_23012025_06_03_53_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/03/image_23012025_06_03_47_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/03/image_23012025_06_03_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/03/image_23012025_06_03_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/03/image_23012025_06_03_28_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/03/image_23012025_06_03_23_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c05d438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c05d438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c05d438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:04:32.093132
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/04/image_23012025_06_04_53_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/04/image_23012025_06_04_46_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/04/image_23012025_06_04_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/06/04/image_23012025_06_04_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/06/04/image_23012025_06_04_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/04/image_23012025_06_04_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f954ac4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f954ac4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f954ac4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:05:02.855659
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/04/image_23012025_06_04_53_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/04/image_23012025_06_04_46_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/04/image_23012025_06_04_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/06/04/image_23012025_06_04_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/06/04/image_23012025_06_04_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/04/image_23012025_06_04_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88327438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88327438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88327438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:05:32.229004
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/05/image_23012025_06_05_53_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/05/image_23012025_06_05_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/05/image_23012025_06_05_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/05/image_23012025_06_05_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/05/image_23012025_06_05_28_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/06/05/image_23012025_06_05_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9690e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9690e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9690e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:06:02.827019
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/05/image_23012025_06_05_53_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/05/image_23012025_06_05_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/05/image_23012025_06_05_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/05/image_23012025_06_05_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/05/image_23012025_06_05_28_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/06/05/image_23012025_06_05_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac7a8438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac7a8438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac7a8438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:06:32.365125
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/06/image_23012025_06_06_53_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/06/06/image_23012025_06_06_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/06/image_23012025_06_06_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/06/image_23012025_06_06_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/06/image_23012025_06_06_28_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/06/image_23012025_06_06_23_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99b344a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99b344a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99b344a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:07:03.090738
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/06/image_23012025_06_06_53_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/06/06/image_23012025_06_06_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/06/image_23012025_06_06_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/06/image_23012025_06_06_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/06/image_23012025_06_06_28_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/06/image_23012025_06_06_23_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6d364a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6d364a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6d364a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:07:32.487634
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/07/image_23012025_06_07_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/07/image_23012025_06_07_46_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/06/07/image_23012025_06_07_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/06/07/image_23012025_06_07_34_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/07/image_23012025_06_07_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/06/07/image_23012025_06_07_23_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90b00438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90b00438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90b00438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:08:03.131439
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/07/image_23012025_06_07_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/07/image_23012025_06_07_46_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/06/07/image_23012025_06_07_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/06/07/image_23012025_06_07_34_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/07/image_23012025_06_07_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/06/07/image_23012025_06_07_23_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99e0c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99e0c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99e0c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:08:32.613756
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/08/image_23012025_06_08_52_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/08/image_23012025_06_08_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/08/image_23012025_06_08_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/08/image_23012025_06_08_34_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/06/08/image_23012025_06_08_29_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/08/image_23012025_06_08_22_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1ef14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1ef14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1ef14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:09:03.886099
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/08/image_23012025_06_08_52_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/08/image_23012025_06_08_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/08/image_23012025_06_08_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/08/image_23012025_06_08_34_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/06/08/image_23012025_06_08_29_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/08/image_23012025_06_08_22_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faecc64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faecc64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faecc64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:09:32.689705
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/09/image_23012025_06_09_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/09/image_23012025_06_09_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/09/image_23012025_06_09_40_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/06/09/image_23012025_06_09_35_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/09/image_23012025_06_09_29_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/09/image_23012025_06_09_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f796f64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f796f64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f796f64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:10:02.255419
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/09/image_23012025_06_09_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/09/image_23012025_06_09_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/09/image_23012025_06_09_40_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/06/09/image_23012025_06_09_35_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/09/image_23012025_06_09_29_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/09/image_23012025_06_09_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa494c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa494c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa494c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:10:31.776831
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/10/image_23012025_06_10_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/10/image_23012025_06_10_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/10/image_23012025_06_10_40_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/06/10/image_23012025_06_10_35_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/10/image_23012025_06_10_28_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/10/image_23012025_06_10_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7facb634a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facb634a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facb634a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:11:02.432659
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/10/image_23012025_06_10_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/10/image_23012025_06_10_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/10/image_23012025_06_10_40_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/06/10/image_23012025_06_10_35_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/10/image_23012025_06_10_28_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/10/image_23012025_06_10_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88ded4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88ded4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88ded4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:11:31.938834
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/11/image_23012025_06_11_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/11/image_23012025_06_11_46_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/06/11/image_23012025_06_11_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/11/image_23012025_06_11_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/11/image_23012025_06_11_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/11/image_23012025_06_11_22_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79c64438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79c64438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79c64438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:12:02.438827
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/11/image_23012025_06_11_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/11/image_23012025_06_11_46_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/06/11/image_23012025_06_11_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/11/image_23012025_06_11_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/11/image_23012025_06_11_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/11/image_23012025_06_11_22_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8456d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8456d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8456d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:12:32.024783
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/12/image_23012025_06_12_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/06/12/image_23012025_06_12_46_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/06/12/image_23012025_06_12_41_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/12/image_23012025_06_12_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/12/image_23012025_06_12_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/12/image_23012025_06_12_22_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fffb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fffb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fffb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:13:02.570092
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/12/image_23012025_06_12_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/06/12/image_23012025_06_12_46_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/06/12/image_23012025_06_12_41_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/12/image_23012025_06_12_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/12/image_23012025_06_12_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/12/image_23012025_06_12_22_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86ad8438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86ad8438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86ad8438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:13:32.179215
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/13/image_23012025_06_13_52_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/06/13/image_23012025_06_13_47_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/13/image_23012025_06_13_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/13/image_23012025_06_13_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/13/image_23012025_06_13_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/13/image_23012025_06_13_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa62ee4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa62ee4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa62ee4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:14:02.895513
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/13/image_23012025_06_13_52_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/06/13/image_23012025_06_13_47_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/13/image_23012025_06_13_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/13/image_23012025_06_13_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/13/image_23012025_06_13_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/13/image_23012025_06_13_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7811b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7811b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7811b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:14:32.313164
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/14/image_23012025_06_14_52_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/06/14/image_23012025_06_14_47_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/14/image_23012025_06_14_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/14/image_23012025_06_14_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/14/image_23012025_06_14_28_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/14/image_23012025_06_14_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa802d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa802d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa802d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:15:03.078460
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/14/image_23012025_06_14_52_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/06/14/image_23012025_06_14_47_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/14/image_23012025_06_14_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/14/image_23012025_06_14_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/14/image_23012025_06_14_28_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/14/image_23012025_06_14_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8449e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8449e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8449e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:15:32.379957
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/15/image_23012025_06_15_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/15/image_23012025_06_15_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/15/image_23012025_06_15_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/15/image_23012025_06_15_34_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/15/image_23012025_06_15_28_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/06/15/image_23012025_06_15_23_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78ba54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78ba54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78ba54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:16:03.055098
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/15/image_23012025_06_15_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/15/image_23012025_06_15_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/15/image_23012025_06_15_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/15/image_23012025_06_15_34_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/15/image_23012025_06_15_28_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/06/15/image_23012025_06_15_23_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8cf2c438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cf2c438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cf2c438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:16:32.486692
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/16/image_23012025_06_16_53_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/16/image_23012025_06_16_46_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/16/image_23012025_06_16_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/16/image_23012025_06_16_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/16/image_23012025_06_16_28_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/06/16/image_23012025_06_16_23_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83ef14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83ef14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83ef14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:17:03.233981
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/16/image_23012025_06_16_53_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/16/image_23012025_06_16_46_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/16/image_23012025_06_16_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/16/image_23012025_06_16_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/16/image_23012025_06_16_28_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/06/16/image_23012025_06_16_23_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ca484a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ca484a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ca484a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:17:32.570655
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/17/image_23012025_06_17_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/17/image_23012025_06_17_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/17/image_23012025_06_17_40_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/17/image_23012025_06_17_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/17/image_23012025_06_17_28_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/06/17/image_23012025_06_17_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89bfd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89bfd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89bfd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:18:03.038406
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/17/image_23012025_06_17_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/17/image_23012025_06_17_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/17/image_23012025_06_17_40_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/17/image_23012025_06_17_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/17/image_23012025_06_17_28_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/06/17/image_23012025_06_17_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b0e54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b0e54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b0e54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:18:32.693235
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/18/image_23012025_06_18_52_6185.jpg', 2), ('/home/nano/Desktop/images/23012025/06/18/image_23012025_06_18_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/18/image_23012025_06_18_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/18/image_23012025_06_18_34_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/06/18/image_23012025_06_18_29_6185.jpg', 2), ('/home/nano/Desktop/images/23012025/06/18/image_23012025_06_18_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a7f94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a7f94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a7f94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:19:02.731959
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/18/image_23012025_06_18_52_6185.jpg', 2), ('/home/nano/Desktop/images/23012025/06/18/image_23012025_06_18_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/18/image_23012025_06_18_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/18/image_23012025_06_18_34_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/06/18/image_23012025_06_18_29_6185.jpg', 2), ('/home/nano/Desktop/images/23012025/06/18/image_23012025_06_18_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f1e44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f1e44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f1e44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:19:31.794587
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/19/image_23012025_06_19_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/19/image_23012025_06_19_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/19/image_23012025_06_19_40_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/06/19/image_23012025_06_19_35_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/19/image_23012025_06_19_29_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/19/image_23012025_06_19_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b5c7438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b5c7438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b5c7438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:20:02.336019
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/19/image_23012025_06_19_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/19/image_23012025_06_19_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/19/image_23012025_06_19_40_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/06/19/image_23012025_06_19_35_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/19/image_23012025_06_19_29_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/19/image_23012025_06_19_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa03574a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa03574a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa03574a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:20:31.889612
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/20/image_23012025_06_20_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/20/image_23012025_06_20_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/20/image_23012025_06_20_40_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/06/20/image_23012025_06_20_35_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/20/image_23012025_06_20_28_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/20/image_23012025_06_20_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9496e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9496e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9496e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:21:02.324184
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/20/image_23012025_06_20_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/20/image_23012025_06_20_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/20/image_23012025_06_20_40_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/06/20/image_23012025_06_20_35_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/20/image_23012025_06_20_28_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/20/image_23012025_06_20_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f821254a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f821254a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f821254a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:21:32.067543
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/21/image_23012025_06_21_52_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/21/image_23012025_06_21_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/21/image_23012025_06_21_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/21/image_23012025_06_21_35_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/06/21/image_23012025_06_21_28_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/21/image_23012025_06_21_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae1924a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae1924a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae1924a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:22:02.662110
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/21/image_23012025_06_21_52_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/21/image_23012025_06_21_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/21/image_23012025_06_21_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/21/image_23012025_06_21_35_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/06/21/image_23012025_06_21_28_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/21/image_23012025_06_21_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91a0f438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91a0f438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91a0f438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:22:32.165236
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/22/image_23012025_06_22_52_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/22/image_23012025_06_22_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/06/22/image_23012025_06_22_41_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/22/image_23012025_06_22_34_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/22/image_23012025_06_22_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/22/image_23012025_06_22_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d2854a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d2854a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d2854a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:23:02.925974
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/22/image_23012025_06_22_52_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/22/image_23012025_06_22_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/06/22/image_23012025_06_22_41_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/22/image_23012025_06_22_34_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/22/image_23012025_06_22_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/22/image_23012025_06_22_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78f084a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78f084a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78f084a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:23:32.263704
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/23/image_23012025_06_23_46_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/06/23/image_23012025_06_23_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/23/image_23012025_06_23_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/06/23/image_23012025_06_23_28_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/06/23/image_23012025_06_23_22_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/06/23/image_23012025_06_23_16_5193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96b0c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96b0c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96b0c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:24:03.118204
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/23/image_23012025_06_23_46_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/06/23/image_23012025_06_23_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/23/image_23012025_06_23_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/06/23/image_23012025_06_23_28_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/06/23/image_23012025_06_23_22_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/06/23/image_23012025_06_23_16_5193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96bfb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96bfb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96bfb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:24:32.373491
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/24/image_23012025_06_24_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/06/24/image_23012025_06_24_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/24/image_23012025_06_24_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/24/image_23012025_06_24_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/24/image_23012025_06_24_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/24/image_23012025_06_24_16_5185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ede54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ede54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ede54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:25:03.043681
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/24/image_23012025_06_24_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/06/24/image_23012025_06_24_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/24/image_23012025_06_24_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/24/image_23012025_06_24_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/24/image_23012025_06_24_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/24/image_23012025_06_24_16_5185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7facf264a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facf264a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facf264a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:25:32.464649
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/25/image_23012025_06_25_52_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/06/25/image_23012025_06_25_47_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/25/image_23012025_06_25_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/25/image_23012025_06_25_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/25/image_23012025_06_25_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/25/image_23012025_06_25_22_5178.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f830564e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f830564e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f830564e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:26:03.035385
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/25/image_23012025_06_25_52_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/06/25/image_23012025_06_25_47_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/25/image_23012025_06_25_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/25/image_23012025_06_25_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/25/image_23012025_06_25_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/25/image_23012025_06_25_22_5178.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f8ea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f8ea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f8ea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:26:32.633433
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/26/image_23012025_06_26_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/26/image_23012025_06_26_47_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/06/26/image_23012025_06_26_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/26/image_23012025_06_26_34_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/26/image_23012025_06_26_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/26/image_23012025_06_26_22_5178.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f917c44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f917c44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f917c44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:27:03.516370
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/27/image_23012025_06_27_40_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/26/image_23012025_06_26_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/26/image_23012025_06_26_47_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/06/26/image_23012025_06_26_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/26/image_23012025_06_26_34_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/26/image_23012025_06_26_28_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f9e04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f9e04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f9e04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:27:32.758554
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/27/image_23012025_06_27_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/27/image_23012025_06_27_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/27/image_23012025_06_27_40_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/27/image_23012025_06_27_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/27/image_23012025_06_27_28_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/06/27/image_23012025_06_27_23_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa726c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa726c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa726c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:28:02.331157
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/27/image_23012025_06_27_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/27/image_23012025_06_27_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/27/image_23012025_06_27_40_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/27/image_23012025_06_27_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/27/image_23012025_06_27_28_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/06/27/image_23012025_06_27_23_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83fbb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83fbb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83fbb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:28:31.877212
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/28/image_23012025_06_28_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/28/image_23012025_06_28_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/28/image_23012025_06_28_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/28/image_23012025_06_28_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/28/image_23012025_06_28_28_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/06/28/image_23012025_06_28_23_6205.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82cde438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82cde438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82cde438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:29:03.230917
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/28/image_23012025_06_28_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/28/image_23012025_06_28_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/28/image_23012025_06_28_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/28/image_23012025_06_28_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/28/image_23012025_06_28_28_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/06/28/image_23012025_06_28_23_6205.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fd784a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fd784a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fd784a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:29:31.988025
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/29/image_23012025_06_29_53_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/29/image_23012025_06_29_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/29/image_23012025_06_29_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/29/image_23012025_06_29_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/29/image_23012025_06_29_28_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/06/29/image_23012025_06_29_23_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac05f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac05f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac05f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:30:02.922702
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/29/image_23012025_06_29_53_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/29/image_23012025_06_29_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/29/image_23012025_06_29_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/29/image_23012025_06_29_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/29/image_23012025_06_29_28_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/06/29/image_23012025_06_29_23_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8518f438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8518f438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8518f438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:30:32.051241
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/30/image_23012025_06_30_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/06/30/image_23012025_06_30_34_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/06/30/image_23012025_06_30_29_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/30/image_23012025_06_30_22_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/30/image_23012025_06_30_16_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/30/image_23012025_06_30_10_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f880304a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f880304a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f880304a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:31:03.030415
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/30/image_23012025_06_30_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/06/30/image_23012025_06_30_34_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/06/30/image_23012025_06_30_29_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/30/image_23012025_06_30_22_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/30/image_23012025_06_30_16_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/30/image_23012025_06_30_10_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78d514a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78d514a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78d514a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:31:32.189531
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/31/image_23012025_06_31_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/31/image_23012025_06_31_46_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/31/image_23012025_06_31_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/06/31/image_23012025_06_31_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/31/image_23012025_06_31_29_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/31/image_23012025_06_31_22_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5ddb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5ddb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5ddb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:32:03.139130
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/32/image_23012025_06_32_58_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/31/image_23012025_06_31_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/31/image_23012025_06_31_46_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/31/image_23012025_06_31_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/06/31/image_23012025_06_31_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/31/image_23012025_06_31_29_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab08d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab08d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab08d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:32:32.286487
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/32/image_23012025_06_32_58_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/32/image_23012025_06_32_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/32/image_23012025_06_32_40_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/06/32/image_23012025_06_32_35_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/32/image_23012025_06_32_29_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/32/image_23012025_06_32_22_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa60594a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa60594a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa60594a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:33:03.133597
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/32/image_23012025_06_32_58_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/32/image_23012025_06_32_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/32/image_23012025_06_32_40_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/06/32/image_23012025_06_32_35_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/32/image_23012025_06_32_29_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/32/image_23012025_06_32_22_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c9604a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c9604a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c9604a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:33:32.383855
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/33/image_23012025_06_33_52_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/33/image_23012025_06_33_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/33/image_23012025_06_33_40_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/06/33/image_23012025_06_33_35_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/33/image_23012025_06_33_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/33/image_23012025_06_33_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cfe44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cfe44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cfe44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:34:03.563988
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/33/image_23012025_06_33_52_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/33/image_23012025_06_33_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/33/image_23012025_06_33_40_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/06/33/image_23012025_06_33_35_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/33/image_23012025_06_33_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/33/image_23012025_06_33_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f817e94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f817e94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f817e94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:34:32.491652
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/34/image_23012025_06_34_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/06/34/image_23012025_06_34_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/06/34/image_23012025_06_34_35_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/06/34/image_23012025_06_34_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/06/34/image_23012025_06_34_22_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/06/34/image_23012025_06_34_16_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b0a64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b0a64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b0a64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:35:03.509332
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/34/image_23012025_06_34_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/06/34/image_23012025_06_34_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/06/34/image_23012025_06_34_35_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/06/34/image_23012025_06_34_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/06/34/image_23012025_06_34_22_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/06/34/image_23012025_06_34_16_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3b2f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3b2f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3b2f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:35:32.628850
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/35/image_23012025_06_35_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/06/35/image_23012025_06_35_46_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/06/35/image_23012025_06_35_40_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/06/35/image_23012025_06_35_35_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/35/image_23012025_06_35_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/06/35/image_23012025_06_35_22_6242.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81c9e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81c9e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81c9e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:36:03.511974
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/35/image_23012025_06_35_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/06/35/image_23012025_06_35_46_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/06/35/image_23012025_06_35_40_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/06/35/image_23012025_06_35_35_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/35/image_23012025_06_35_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/06/35/image_23012025_06_35_22_6242.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa10ac4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa10ac4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa10ac4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:36:32.715175
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/36/image_23012025_06_36_52_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/06/36/image_23012025_06_36_46_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/06/36/image_23012025_06_36_41_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/36/image_23012025_06_36_35_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/36/image_23012025_06_36_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/06/36/image_23012025_06_36_22_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faff604a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faff604a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faff604a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:37:02.688286
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/36/image_23012025_06_36_52_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/06/36/image_23012025_06_36_46_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/06/36/image_23012025_06_36_41_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/36/image_23012025_06_36_35_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/36/image_23012025_06_36_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/06/36/image_23012025_06_36_22_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f810f54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f810f54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f810f54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:37:31.828538
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/37/image_23012025_06_37_52_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/06/37/image_23012025_06_37_46_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/06/37/image_23012025_06_37_41_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/06/37/image_23012025_06_37_35_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/06/37/image_23012025_06_37_28_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/37/image_23012025_06_37_22_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8383a438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8383a438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8383a438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:38:02.517371
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/37/image_23012025_06_37_52_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/06/37/image_23012025_06_37_46_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/06/37/image_23012025_06_37_41_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/06/37/image_23012025_06_37_35_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/06/37/image_23012025_06_37_28_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/37/image_23012025_06_37_22_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f913184a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f913184a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f913184a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:38:31.914213
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/38/image_23012025_06_38_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/06/38/image_23012025_06_38_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/38/image_23012025_06_38_41_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/38/image_23012025_06_38_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/06/38/image_23012025_06_38_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/06/38/image_23012025_06_38_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f985bd438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f985bd438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f985bd438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:39:03.236369
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/38/image_23012025_06_38_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/06/38/image_23012025_06_38_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/38/image_23012025_06_38_41_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/38/image_23012025_06_38_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/06/38/image_23012025_06_38_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/06/38/image_23012025_06_38_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7facda9438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facda9438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facda9438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:39:32.042368
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/39/image_23012025_06_39_52_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/06/39/image_23012025_06_39_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/39/image_23012025_06_39_41_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/39/image_23012025_06_39_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/06/39/image_23012025_06_39_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/06/39/image_23012025_06_39_22_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb20eb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb20eb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb20eb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:40:03.058185
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/39/image_23012025_06_39_52_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/06/39/image_23012025_06_39_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/39/image_23012025_06_39_41_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/39/image_23012025_06_39_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/06/39/image_23012025_06_39_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/06/39/image_23012025_06_39_22_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9de2a438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9de2a438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9de2a438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:40:32.142420
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/40/image_23012025_06_40_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/06/40/image_23012025_06_40_46_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/40/image_23012025_06_40_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/06/40/image_23012025_06_40_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/40/image_23012025_06_40_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/06/40/image_23012025_06_40_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa62134a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa62134a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa62134a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:41:03.323398
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/40/image_23012025_06_40_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/06/40/image_23012025_06_40_46_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/40/image_23012025_06_40_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/06/40/image_23012025_06_40_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/40/image_23012025_06_40_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/06/40/image_23012025_06_40_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9136f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9136f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9136f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:41:32.326721
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/41/image_23012025_06_41_52_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/06/41/image_23012025_06_41_46_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/41/image_23012025_06_41_41_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/06/41/image_23012025_06_41_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/41/image_23012025_06_41_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/06/41/image_23012025_06_41_22_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8baf14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8baf14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8baf14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:42:03.171319
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/41/image_23012025_06_41_52_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/06/41/image_23012025_06_41_46_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/41/image_23012025_06_41_41_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/06/41/image_23012025_06_41_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/41/image_23012025_06_41_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/06/41/image_23012025_06_41_22_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99bf04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99bf04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99bf04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:42:32.442287
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/42/image_23012025_06_42_52_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/06/42/image_23012025_06_42_47_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/42/image_23012025_06_42_41_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/42/image_23012025_06_42_34_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/42/image_23012025_06_42_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/42/image_23012025_06_42_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2f0a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2f0a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2f0a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:43:03.179364
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/42/image_23012025_06_42_52_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/06/42/image_23012025_06_42_47_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/42/image_23012025_06_42_41_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/42/image_23012025_06_42_34_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/42/image_23012025_06_42_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/42/image_23012025_06_42_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb575e438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb575e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb575e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:43:32.543472
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/43/image_23012025_06_43_52_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/06/43/image_23012025_06_43_47_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/43/image_23012025_06_43_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/43/image_23012025_06_43_34_6238.jpg', 2), ('/home/nano/Desktop/images/23012025/06/43/image_23012025_06_43_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/43/image_23012025_06_43_22_5179.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0e624e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0e624e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0e624e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:44:03.801796
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/43/image_23012025_06_43_52_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/06/43/image_23012025_06_43_47_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/43/image_23012025_06_43_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/43/image_23012025_06_43_34_6238.jpg', 2), ('/home/nano/Desktop/images/23012025/06/43/image_23012025_06_43_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/43/image_23012025_06_43_22_5179.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb29a5438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb29a5438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb29a5438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:44:32.661643
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/44/image_23012025_06_44_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/44/image_23012025_06_44_47_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/44/image_23012025_06_44_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/44/image_23012025_06_44_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/44/image_23012025_06_44_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/44/image_23012025_06_44_22_5182.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a1464a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a1464a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a1464a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:45:02.795363
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/44/image_23012025_06_44_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/44/image_23012025_06_44_47_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/44/image_23012025_06_44_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/44/image_23012025_06_44_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/44/image_23012025_06_44_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/44/image_23012025_06_44_22_5182.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3cbe4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3cbe4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3cbe4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:45:31.776553
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/45/image_23012025_06_45_53_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/45/image_23012025_06_45_47_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/45/image_23012025_06_45_40_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/45/image_23012025_06_45_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/45/image_23012025_06_45_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/45/image_23012025_06_45_22_5181.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d0c14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d0c14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d0c14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:46:02.692577
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/45/image_23012025_06_45_53_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/45/image_23012025_06_45_47_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/45/image_23012025_06_45_40_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/45/image_23012025_06_45_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/45/image_23012025_06_45_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/45/image_23012025_06_45_22_5181.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f774314a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f774314a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f774314a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:46:31.840841
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/46/image_23012025_06_46_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/46/image_23012025_06_46_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/46/image_23012025_06_46_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/46/image_23012025_06_46_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/46/image_23012025_06_46_28_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/06/46/image_23012025_06_46_23_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d7bb438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d7bb438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d7bb438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:47:02.971752
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/46/image_23012025_06_46_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/46/image_23012025_06_46_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/46/image_23012025_06_46_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/46/image_23012025_06_46_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/46/image_23012025_06_46_28_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/06/46/image_23012025_06_46_23_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cdae4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cdae4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cdae4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:47:31.938618
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/47/image_23012025_06_47_53_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/06/47/image_23012025_06_47_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/47/image_23012025_06_47_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/47/image_23012025_06_47_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/47/image_23012025_06_47_28_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/06/47/image_23012025_06_47_23_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0bf24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0bf24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0bf24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:48:02.646236
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/47/image_23012025_06_47_53_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/06/47/image_23012025_06_47_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/47/image_23012025_06_47_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/47/image_23012025_06_47_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/47/image_23012025_06_47_28_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/06/47/image_23012025_06_47_23_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f962834a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f962834a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f962834a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:48:32.044393
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/48/image_23012025_06_48_52_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/48/image_23012025_06_48_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/06/48/image_23012025_06_48_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/06/48/image_23012025_06_48_34_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/48/image_23012025_06_48_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/06/48/image_23012025_06_48_22_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f8d04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f8d04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f8d04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:49:03.347088
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/48/image_23012025_06_48_52_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/48/image_23012025_06_48_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/06/48/image_23012025_06_48_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/06/48/image_23012025_06_48_34_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/48/image_23012025_06_48_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/06/48/image_23012025_06_48_22_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89d134a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89d134a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89d134a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:49:32.157852
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/49/image_23012025_06_49_52_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/49/image_23012025_06_49_46_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/49/image_23012025_06_49_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/06/49/image_23012025_06_49_34_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/06/49/image_23012025_06_49_29_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/49/image_23012025_06_49_22_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8033a438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8033a438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8033a438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:50:02.965754
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/49/image_23012025_06_49_52_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/49/image_23012025_06_49_46_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/49/image_23012025_06_49_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/06/49/image_23012025_06_49_34_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/06/49/image_23012025_06_49_29_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/49/image_23012025_06_49_22_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fabe484a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabe484a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabe484a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:50:32.249873
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/50/image_23012025_06_50_52_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/06/50/image_23012025_06_50_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/06/50/image_23012025_06_50_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/50/image_23012025_06_50_34_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/50/image_23012025_06_50_29_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/50/image_23012025_06_50_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b2854a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b2854a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b2854a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:51:03.306239
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/50/image_23012025_06_50_52_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/06/50/image_23012025_06_50_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/06/50/image_23012025_06_50_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/50/image_23012025_06_50_34_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/50/image_23012025_06_50_29_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/50/image_23012025_06_50_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98db84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98db84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98db84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:51:32.343658
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/51/image_23012025_06_51_52_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/51/image_23012025_06_51_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/51/image_23012025_06_51_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/51/image_23012025_06_51_34_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/51/image_23012025_06_51_29_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/06/51/image_23012025_06_51_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f894a94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f894a94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f894a94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:52:03.095383
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/51/image_23012025_06_51_52_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/51/image_23012025_06_51_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/51/image_23012025_06_51_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/51/image_23012025_06_51_34_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/51/image_23012025_06_51_29_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/06/51/image_23012025_06_51_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e4c24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e4c24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e4c24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:52:32.452336
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/52/image_23012025_06_52_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/52/image_23012025_06_52_46_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/52/image_23012025_06_52_40_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/06/52/image_23012025_06_52_35_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/52/image_23012025_06_52_28_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/52/image_23012025_06_52_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf6414a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf6414a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf6414a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:53:03.482222
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/53/image_23012025_06_53_22_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/52/image_23012025_06_52_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/52/image_23012025_06_52_46_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/52/image_23012025_06_52_40_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/06/52/image_23012025_06_52_35_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/52/image_23012025_06_52_28_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8aa5c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8aa5c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8aa5c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:53:32.583406
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/53/image_23012025_06_53_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/53/image_23012025_06_53_46_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/06/53/image_23012025_06_53_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/06/53/image_23012025_06_53_35_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/53/image_23012025_06_53_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/53/image_23012025_06_53_22_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f960064e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f960064e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f960064e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:54:03.620050
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/53/image_23012025_06_53_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/53/image_23012025_06_53_46_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/06/53/image_23012025_06_53_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/06/53/image_23012025_06_53_35_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/53/image_23012025_06_53_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/53/image_23012025_06_53_22_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faeb8c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faeb8c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faeb8c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:54:32.721099
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/54/image_23012025_06_54_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/54/image_23012025_06_54_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/54/image_23012025_06_54_41_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/06/54/image_23012025_06_54_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/06/54/image_23012025_06_54_28_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/06/54/image_23012025_06_54_22_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f952184a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f952184a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f952184a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:55:02.694973
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/54/image_23012025_06_54_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/54/image_23012025_06_54_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/54/image_23012025_06_54_41_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/06/54/image_23012025_06_54_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/06/54/image_23012025_06_54_28_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/06/54/image_23012025_06_54_22_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f998bd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f998bd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f998bd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:55:31.817616
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/55/image_23012025_06_55_46_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/06/55/image_23012025_06_55_41_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/55/image_23012025_06_55_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/55/image_23012025_06_55_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/55/image_23012025_06_55_22_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/06/55/image_23012025_06_55_16_5190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb01fc438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb01fc438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb01fc438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:56:02.684514
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/55/image_23012025_06_55_46_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/06/55/image_23012025_06_55_41_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/55/image_23012025_06_55_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/55/image_23012025_06_55_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/06/55/image_23012025_06_55_22_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/06/55/image_23012025_06_55_16_5190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac18d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac18d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac18d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:56:31.906405
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/56/image_23012025_06_56_52_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/06/56/image_23012025_06_56_46_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/56/image_23012025_06_56_41_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/56/image_23012025_06_56_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/06/56/image_23012025_06_56_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/06/56/image_23012025_06_56_22_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa820f438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa820f438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa820f438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:57:02.715700
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/56/image_23012025_06_56_52_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/06/56/image_23012025_06_56_46_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/56/image_23012025_06_56_41_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/06/56/image_23012025_06_56_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/06/56/image_23012025_06_56_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/06/56/image_23012025_06_56_22_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8cbd24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cbd24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cbd24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:57:32.002987
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/57/image_23012025_06_57_52_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/06/57/image_23012025_06_57_47_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/57/image_23012025_06_57_41_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/57/image_23012025_06_57_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/57/image_23012025_06_57_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/57/image_23012025_06_57_22_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb252a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb252a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb252a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:59:03.223577
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/58/image_23012025_06_58_52_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/06/57/image_23012025_06_57_52_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/06/57/image_23012025_06_57_47_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/06/57/image_23012025_06_57_41_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/06/57/image_23012025_06_57_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/06/57/image_23012025_06_57_28_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78fef438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78fef438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78fef438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 06:59:31.844452
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/59/image_23012025_06_59_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/59/image_23012025_06_59_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/59/image_23012025_06_59_40_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/59/image_23012025_06_59_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/59/image_23012025_06_59_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/59/image_23012025_06_59_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f931f24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f931f24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f931f24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:00:02.477405
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/06/59/image_23012025_06_59_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/06/59/image_23012025_06_59_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/06/59/image_23012025_06_59_40_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/06/59/image_23012025_06_59_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/06/59/image_23012025_06_59_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/06/59/image_23012025_06_59_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e2ac4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e2ac4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e2ac4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:00:31.933881
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/00/image_23012025_07_00_53_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/00/image_23012025_07_00_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/00/image_23012025_07_00_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/07/00/image_23012025_07_00_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/07/00/image_23012025_07_00_28_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/07/00/image_23012025_07_00_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb42554a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb42554a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb42554a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:01:02.806495
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/00/image_23012025_07_00_53_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/00/image_23012025_07_00_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/00/image_23012025_07_00_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/07/00/image_23012025_07_00_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/07/00/image_23012025_07_00_28_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/07/00/image_23012025_07_00_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83cf3438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83cf3438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83cf3438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:01:32.112199
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/01/image_23012025_07_01_53_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/01/image_23012025_07_01_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/01/image_23012025_07_01_40_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/07/01/image_23012025_07_01_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/07/01/image_23012025_07_01_28_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/07/01/image_23012025_07_01_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c6a84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c6a84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c6a84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:02:02.995316
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/01/image_23012025_07_01_53_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/01/image_23012025_07_01_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/01/image_23012025_07_01_40_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/07/01/image_23012025_07_01_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/07/01/image_23012025_07_01_28_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/07/01/image_23012025_07_01_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f785744a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f785744a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f785744a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:02:32.250226
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/02/image_23012025_07_02_53_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/02/image_23012025_07_02_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/02/image_23012025_07_02_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/07/02/image_23012025_07_02_34_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/07/02/image_23012025_07_02_23_6236.jpg', 2), ('/home/nano/Desktop/images/23012025/07/02/image_23012025_07_02_17_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa641438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa641438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa641438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:03:03.276687
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/02/image_23012025_07_02_53_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/02/image_23012025_07_02_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/02/image_23012025_07_02_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/07/02/image_23012025_07_02_34_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/07/02/image_23012025_07_02_23_6236.jpg', 2), ('/home/nano/Desktop/images/23012025/07/02/image_23012025_07_02_17_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb18804a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb18804a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb18804a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:03:32.377200
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/03/image_23012025_07_03_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/03/image_23012025_07_03_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/03/image_23012025_07_03_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/03/image_23012025_07_03_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/07/03/image_23012025_07_03_28_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/07/03/image_23012025_07_03_23_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ae4d438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ae4d438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ae4d438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:04:03.330507
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/03/image_23012025_07_03_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/03/image_23012025_07_03_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/03/image_23012025_07_03_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/03/image_23012025_07_03_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/07/03/image_23012025_07_03_28_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/07/03/image_23012025_07_03_23_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80d9d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80d9d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80d9d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:04:32.465254
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/04/image_23012025_07_04_52_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/04/image_23012025_07_04_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/07/04/image_23012025_07_04_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/07/04/image_23012025_07_04_34_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/07/04/image_23012025_07_04_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/04/image_23012025_07_04_22_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa349b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa349b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa349b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:05:03.500519
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/04/image_23012025_07_04_52_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/04/image_23012025_07_04_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/07/04/image_23012025_07_04_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/07/04/image_23012025_07_04_34_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/07/04/image_23012025_07_04_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/04/image_23012025_07_04_22_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fbe84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fbe84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fbe84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:05:32.555676
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/05/image_23012025_07_05_52_6260.jpg', 2), ('/home/nano/Desktop/images/23012025/07/05/image_23012025_07_05_46_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/07/05/image_23012025_07_05_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/07/05/image_23012025_07_05_34_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/07/05/image_23012025_07_05_29_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/05/image_23012025_07_05_22_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f988d74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f988d74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f988d74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:06:03.537982
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/05/image_23012025_07_05_52_6260.jpg', 2), ('/home/nano/Desktop/images/23012025/07/05/image_23012025_07_05_46_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/07/05/image_23012025_07_05_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/07/05/image_23012025_07_05_34_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/07/05/image_23012025_07_05_29_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/05/image_23012025_07_05_22_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4b7d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4b7d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4b7d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:06:32.642326
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/06/image_23012025_07_06_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/06/image_23012025_07_06_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/06/image_23012025_07_06_40_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/07/06/image_23012025_07_06_34_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/07/06/image_23012025_07_06_29_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/06/image_23012025_07_06_22_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafe204a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafe204a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafe204a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:07:03.811718
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/06/image_23012025_07_06_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/06/image_23012025_07_06_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/06/image_23012025_07_06_40_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/07/06/image_23012025_07_06_34_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/07/06/image_23012025_07_06_29_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/06/image_23012025_07_06_22_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faef71438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faef71438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faef71438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:07:32.839037
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/07/image_23012025_07_07_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/07/image_23012025_07_07_46_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/07/image_23012025_07_07_40_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/07/image_23012025_07_07_34_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/07/07/image_23012025_07_07_29_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/07/image_23012025_07_07_22_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faacbf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faacbf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faacbf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:08:02.697565
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/07/image_23012025_07_07_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/07/image_23012025_07_07_46_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/07/image_23012025_07_07_40_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/07/image_23012025_07_07_34_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/07/07/image_23012025_07_07_29_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/07/image_23012025_07_07_22_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb07f74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb07f74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb07f74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:08:31.897250
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/08/image_23012025_07_08_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/08/image_23012025_07_08_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/08/image_23012025_07_08_40_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/07/08/image_23012025_07_08_35_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/08/image_23012025_07_08_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/08/image_23012025_07_08_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa41db4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa41db4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa41db4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:09:03.221621
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/08/image_23012025_07_08_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/08/image_23012025_07_08_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/08/image_23012025_07_08_40_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/07/08/image_23012025_07_08_35_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/08/image_23012025_07_08_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/08/image_23012025_07_08_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93159438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93159438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93159438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:09:31.999333
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/09/image_23012025_07_09_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/07/09/image_23012025_07_09_46_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/07/09/image_23012025_07_09_41_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/09/image_23012025_07_09_35_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/09/image_23012025_07_09_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/09/image_23012025_07_09_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a3e44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a3e44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a3e44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:10:02.853876
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/09/image_23012025_07_09_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/07/09/image_23012025_07_09_46_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/07/09/image_23012025_07_09_41_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/09/image_23012025_07_09_35_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/09/image_23012025_07_09_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/09/image_23012025_07_09_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9afc34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9afc34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9afc34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:10:32.110556
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/10/image_23012025_07_10_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/10/image_23012025_07_10_46_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/07/10/image_23012025_07_10_41_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/10/image_23012025_07_10_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/07/10/image_23012025_07_10_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/10/image_23012025_07_10_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2afc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2afc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2afc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:11:03.197730
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/10/image_23012025_07_10_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/10/image_23012025_07_10_46_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/07/10/image_23012025_07_10_41_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/10/image_23012025_07_10_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/07/10/image_23012025_07_10_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/10/image_23012025_07_10_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f798654a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f798654a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f798654a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:11:32.179098
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/11/image_23012025_07_11_47_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/11/image_23012025_07_11_41_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/11/image_23012025_07_11_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/11/image_23012025_07_11_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/11/image_23012025_07_11_22_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/11/image_23012025_07_11_16_5185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c2d04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c2d04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c2d04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:12:03.070825
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/11/image_23012025_07_11_47_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/11/image_23012025_07_11_41_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/11/image_23012025_07_11_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/11/image_23012025_07_11_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/11/image_23012025_07_11_22_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/11/image_23012025_07_11_16_5185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93e084a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93e084a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93e084a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:12:32.270727
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/12/image_23012025_07_12_52_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/07/12/image_23012025_07_12_47_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/12/image_23012025_07_12_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/12/image_23012025_07_12_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/12/image_23012025_07_12_22_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/07/12/image_23012025_07_12_17_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99fde4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99fde4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99fde4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:13:03.404727
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/12/image_23012025_07_12_52_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/07/12/image_23012025_07_12_47_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/12/image_23012025_07_12_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/12/image_23012025_07_12_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/12/image_23012025_07_12_22_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/07/12/image_23012025_07_12_17_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a5ee4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a5ee4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a5ee4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:13:32.372833
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/13/image_23012025_07_13_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/13/image_23012025_07_13_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/13/image_23012025_07_13_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/13/image_23012025_07_13_22_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/07/13/image_23012025_07_13_17_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/13/image_23012025_07_13_10_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98f014a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98f014a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98f014a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:14:03.508138
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/13/image_23012025_07_13_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/13/image_23012025_07_13_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/13/image_23012025_07_13_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/13/image_23012025_07_13_22_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/07/13/image_23012025_07_13_17_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/13/image_23012025_07_13_10_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faaff14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaff14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaff14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:14:32.489408
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/14/image_23012025_07_14_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/14/image_23012025_07_14_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/14/image_23012025_07_14_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/14/image_23012025_07_14_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/14/image_23012025_07_14_22_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/14/image_23012025_07_14_10_6211.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82e164a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82e164a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82e164a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:15:03.544581
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/14/image_23012025_07_14_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/14/image_23012025_07_14_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/14/image_23012025_07_14_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/14/image_23012025_07_14_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/14/image_23012025_07_14_22_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/14/image_23012025_07_14_10_6211.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f923a54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f923a54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f923a54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:15:32.578270
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/15/image_23012025_07_15_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/15/image_23012025_07_15_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/15/image_23012025_07_15_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/15/image_23012025_07_15_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/15/image_23012025_07_15_17_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/14/image_23012025_07_15_04_6211.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92f8a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92f8a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92f8a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:16:03.316266
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/15/image_23012025_07_15_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/15/image_23012025_07_15_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/15/image_23012025_07_15_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/15/image_23012025_07_15_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/15/image_23012025_07_15_17_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/14/image_23012025_07_15_04_6211.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7730c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7730c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7730c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:16:32.694617
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/16/image_23012025_07_16_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/16/image_23012025_07_16_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/07/16/image_23012025_07_16_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/16/image_23012025_07_16_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/16/image_23012025_07_16_17_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/16/image_23012025_07_16_10_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb00914a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb00914a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb00914a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:17:02.600318
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/16/image_23012025_07_16_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/16/image_23012025_07_16_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/07/16/image_23012025_07_16_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/16/image_23012025_07_16_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/16/image_23012025_07_16_17_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/16/image_23012025_07_16_10_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76b774a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76b774a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76b774a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:17:31.792417
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/17/image_23012025_07_17_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/17/image_23012025_07_17_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/17/image_23012025_07_17_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/17/image_23012025_07_17_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/07/17/image_23012025_07_17_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/17/image_23012025_07_17_22_5185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90f5d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90f5d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90f5d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:18:02.529758
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/17/image_23012025_07_17_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/17/image_23012025_07_17_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/17/image_23012025_07_17_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/17/image_23012025_07_17_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/07/17/image_23012025_07_17_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/17/image_23012025_07_17_22_5185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f906d94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f906d94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f906d94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:18:31.902883
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/18/image_23012025_07_18_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/18/image_23012025_07_18_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/18/image_23012025_07_18_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/18/image_23012025_07_18_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/18/image_23012025_07_18_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/18/image_23012025_07_18_23_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84e304a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84e304a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84e304a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:19:03.113042
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/18/image_23012025_07_18_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/18/image_23012025_07_18_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/18/image_23012025_07_18_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/18/image_23012025_07_18_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/18/image_23012025_07_18_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/18/image_23012025_07_18_23_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97cd14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97cd14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97cd14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:19:32.006578
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/19/image_23012025_07_19_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/19/image_23012025_07_19_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/19/image_23012025_07_19_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/19/image_23012025_07_19_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/07/19/image_23012025_07_19_28_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/07/19/image_23012025_07_19_23_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ad7e4e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ad7e4e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ad7e4e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:20:02.757202
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/19/image_23012025_07_19_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/19/image_23012025_07_19_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/19/image_23012025_07_19_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/19/image_23012025_07_19_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/07/19/image_23012025_07_19_28_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/07/19/image_23012025_07_19_23_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9180a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9180a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9180a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:20:32.086333
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/20/image_23012025_07_20_52_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/20/image_23012025_07_20_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/20/image_23012025_07_20_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/20/image_23012025_07_20_34_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/07/20/image_23012025_07_20_29_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/20/image_23012025_07_20_23_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b1c04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b1c04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b1c04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:21:03.290667
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/20/image_23012025_07_20_52_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/20/image_23012025_07_20_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/20/image_23012025_07_20_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/20/image_23012025_07_20_34_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/07/20/image_23012025_07_20_29_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/20/image_23012025_07_20_23_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0d194a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0d194a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0d194a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:21:32.253054
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/21/image_23012025_07_21_52_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/07/21/image_23012025_07_21_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/21/image_23012025_07_21_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/07/21/image_23012025_07_21_34_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/21/image_23012025_07_21_29_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/21/image_23012025_07_21_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a7c14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a7c14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a7c14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:22:03.036827
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/21/image_23012025_07_21_52_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/07/21/image_23012025_07_21_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/21/image_23012025_07_21_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/07/21/image_23012025_07_21_34_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/21/image_23012025_07_21_29_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/21/image_23012025_07_21_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ed274a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ed274a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ed274a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:22:32.361680
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/22/image_23012025_07_22_52_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/22/image_23012025_07_22_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/22/image_23012025_07_22_40_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/07/22/image_23012025_07_22_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/22/image_23012025_07_22_29_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/07/22/image_23012025_07_22_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8950a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8950a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8950a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:23:03.405959
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/22/image_23012025_07_22_52_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/22/image_23012025_07_22_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/22/image_23012025_07_22_40_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/07/22/image_23012025_07_22_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/22/image_23012025_07_22_29_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/07/22/image_23012025_07_22_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f864af438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f864af438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f864af438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:23:32.471756
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/23/image_23012025_07_23_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/23/image_23012025_07_23_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/07/23/image_23012025_07_23_40_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/07/23/image_23012025_07_23_35_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/23/image_23012025_07_23_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/23/image_23012025_07_23_22_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9accc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9accc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9accc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:24:03.656389
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/24/image_23012025_07_24_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/23/image_23012025_07_23_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/23/image_23012025_07_23_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/07/23/image_23012025_07_23_40_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/07/23/image_23012025_07_23_35_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/23/image_23012025_07_23_28_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82d0d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82d0d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82d0d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:24:32.597993
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/24/image_23012025_07_24_52_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/24/image_23012025_07_24_46_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/07/24/image_23012025_07_24_41_6185.jpg', 2), ('/home/nano/Desktop/images/23012025/07/24/image_23012025_07_24_35_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/24/image_23012025_07_24_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/24/image_23012025_07_24_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f823e94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f823e94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f823e94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:25:03.527855
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/24/image_23012025_07_24_52_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/24/image_23012025_07_24_46_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/07/24/image_23012025_07_24_41_6185.jpg', 2), ('/home/nano/Desktop/images/23012025/07/24/image_23012025_07_24_35_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/24/image_23012025_07_24_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/24/image_23012025_07_24_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1be54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1be54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1be54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:25:32.740850
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/25/image_23012025_07_25_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/25/image_23012025_07_25_46_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/07/25/image_23012025_07_25_41_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/25/image_23012025_07_25_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/25/image_23012025_07_25_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/25/image_23012025_07_25_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83e984a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83e984a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83e984a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:26:02.632028
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/25/image_23012025_07_25_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/25/image_23012025_07_25_46_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/07/25/image_23012025_07_25_41_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/25/image_23012025_07_25_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/25/image_23012025_07_25_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/25/image_23012025_07_25_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2aa74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2aa74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2aa74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:26:31.861136
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/26/image_23012025_07_26_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/07/26/image_23012025_07_26_46_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/07/26/image_23012025_07_26_41_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/26/image_23012025_07_26_34_6245.jpg', 2), ('/home/nano/Desktop/images/23012025/07/26/image_23012025_07_26_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/26/image_23012025_07_26_22_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7939b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7939b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7939b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:27:02.832568
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/26/image_23012025_07_26_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/07/26/image_23012025_07_26_46_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/07/26/image_23012025_07_26_41_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/26/image_23012025_07_26_34_6245.jpg', 2), ('/home/nano/Desktop/images/23012025/07/26/image_23012025_07_26_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/26/image_23012025_07_26_22_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d1104a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d1104a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d1104a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:27:31.945153
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/27/image_23012025_07_27_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/07/27/image_23012025_07_27_46_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/07/27/image_23012025_07_27_41_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/07/27/image_23012025_07_27_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/27/image_23012025_07_27_28_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/27/image_23012025_07_27_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb37ad470>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb37ad470>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb37ad470>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:28:02.562606
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/27/image_23012025_07_27_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/07/27/image_23012025_07_27_46_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/07/27/image_23012025_07_27_41_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/07/27/image_23012025_07_27_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/27/image_23012025_07_27_28_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/27/image_23012025_07_27_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f886b34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f886b34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f886b34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:28:32.038885
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/28/image_23012025_07_28_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/28/image_23012025_07_28_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/07/28/image_23012025_07_28_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/28/image_23012025_07_28_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/28/image_23012025_07_28_28_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/07/28/image_23012025_07_28_22_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2ae94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2ae94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2ae94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:29:03.475623
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/29/image_23012025_07_29_58_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/07/28/image_23012025_07_28_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/28/image_23012025_07_28_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/07/28/image_23012025_07_28_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/28/image_23012025_07_28_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/28/image_23012025_07_28_28_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9184f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9184f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9184f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:29:32.233376
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/29/image_23012025_07_29_58_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/07/29/image_23012025_07_29_47_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/07/29/image_23012025_07_29_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/29/image_23012025_07_29_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/29/image_23012025_07_29_22_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/07/29/image_23012025_07_29_17_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f861224a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f861224a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f861224a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:30:02.959274
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/29/image_23012025_07_29_58_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/07/29/image_23012025_07_29_47_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/07/29/image_23012025_07_29_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/29/image_23012025_07_29_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/29/image_23012025_07_29_22_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/07/29/image_23012025_07_29_17_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f937db4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f937db4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f937db4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:30:32.336335
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/30/image_23012025_07_30_52_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/07/30/image_23012025_07_30_47_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/30/image_23012025_07_30_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/30/image_23012025_07_30_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/30/image_23012025_07_30_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/30/image_23012025_07_30_22_5178.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb139e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb139e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb139e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:31:03.396690
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/30/image_23012025_07_30_52_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/07/30/image_23012025_07_30_47_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/30/image_23012025_07_30_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/30/image_23012025_07_30_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/30/image_23012025_07_30_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/30/image_23012025_07_30_22_5178.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f6b3438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f6b3438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f6b3438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:31:32.434367
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/31/image_23012025_07_31_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/31/image_23012025_07_31_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/31/image_23012025_07_31_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/31/image_23012025_07_31_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/31/image_23012025_07_31_28_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/31/image_23012025_07_31_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c2144a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c2144a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c2144a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:32:03.336592
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/31/image_23012025_07_31_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/31/image_23012025_07_31_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/31/image_23012025_07_31_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/31/image_23012025_07_31_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/31/image_23012025_07_31_28_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/31/image_23012025_07_31_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7cc964a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cc964a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cc964a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:32:32.552468
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/32/image_23012025_07_32_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/07/32/image_23012025_07_32_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/32/image_23012025_07_32_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/32/image_23012025_07_32_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/32/image_23012025_07_32_28_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/07/32/image_23012025_07_32_23_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb323e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb323e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb323e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:33:03.405226
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/32/image_23012025_07_32_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/07/32/image_23012025_07_32_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/32/image_23012025_07_32_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/32/image_23012025_07_32_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/32/image_23012025_07_32_28_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/07/32/image_23012025_07_32_23_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b3d94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b3d94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b3d94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:33:32.638443
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/33/image_23012025_07_33_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/07/33/image_23012025_07_33_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/07/33/image_23012025_07_33_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/33/image_23012025_07_33_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/07/33/image_23012025_07_33_28_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/07/33/image_23012025_07_33_23_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5f174a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5f174a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5f174a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:34:03.799039
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/33/image_23012025_07_33_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/07/33/image_23012025_07_33_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/07/33/image_23012025_07_33_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/33/image_23012025_07_33_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/07/33/image_23012025_07_33_28_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/07/33/image_23012025_07_33_23_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f44c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f44c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f44c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:34:32.733015
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/34/image_23012025_07_34_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/34/image_23012025_07_34_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/34/image_23012025_07_34_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/34/image_23012025_07_34_34_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/07/34/image_23012025_07_34_29_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/34/image_23012025_07_34_23_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80118438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80118438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80118438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:35:02.602574
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/34/image_23012025_07_34_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/34/image_23012025_07_34_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/34/image_23012025_07_34_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/34/image_23012025_07_34_34_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/07/34/image_23012025_07_34_29_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/34/image_23012025_07_34_23_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b7de4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b7de4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b7de4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:35:31.834375
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/35/image_23012025_07_35_52_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/07/35/image_23012025_07_35_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/07/35/image_23012025_07_35_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/35/image_23012025_07_35_34_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/07/35/image_23012025_07_35_29_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/35/image_23012025_07_35_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb52ea438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb52ea438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb52ea438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:36:02.774991
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/35/image_23012025_07_35_52_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/07/35/image_23012025_07_35_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/07/35/image_23012025_07_35_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/35/image_23012025_07_35_34_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/07/35/image_23012025_07_35_29_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/35/image_23012025_07_35_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80afe4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80afe4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80afe4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:36:31.919798
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/36/image_23012025_07_36_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/36/image_23012025_07_36_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/36/image_23012025_07_36_40_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/07/36/image_23012025_07_36_35_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/07/36/image_23012025_07_36_29_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/36/image_23012025_07_36_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d5fd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d5fd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d5fd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:37:02.866877
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/36/image_23012025_07_36_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/36/image_23012025_07_36_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/36/image_23012025_07_36_40_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/07/36/image_23012025_07_36_35_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/07/36/image_23012025_07_36_29_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/36/image_23012025_07_36_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9939f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9939f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9939f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:37:32.017393
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/37/image_23012025_07_37_52_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/07/37/image_23012025_07_37_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/37/image_23012025_07_37_40_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/07/37/image_23012025_07_37_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/37/image_23012025_07_37_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/37/image_23012025_07_37_22_6205.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/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 -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.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 -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f49a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:38:02.769229
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/37/image_23012025_07_37_52_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/07/37/image_23012025_07_37_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/37/image_23012025_07_37_40_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/07/37/image_23012025_07_37_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/37/image_23012025_07_37_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/37/image_23012025_07_37_22_6205.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f845954a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f845954a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f845954a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:38:32.109906
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/38/image_23012025_07_38_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/07/38/image_23012025_07_38_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/38/image_23012025_07_38_35_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/07/38/image_23012025_07_38_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/38/image_23012025_07_38_22_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/07/38/image_23012025_07_38_16_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faba734a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faba734a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faba734a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:39:03.514661
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/38/image_23012025_07_38_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/07/38/image_23012025_07_38_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/38/image_23012025_07_38_35_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/07/38/image_23012025_07_38_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/38/image_23012025_07_38_22_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/07/38/image_23012025_07_38_16_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2a574a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2a574a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2a574a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:39:32.232952
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/39/image_23012025_07_39_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/39/image_23012025_07_39_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/39/image_23012025_07_39_40_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/07/39/image_23012025_07_39_35_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/39/image_23012025_07_39_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/07/39/image_23012025_07_39_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f867d44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f867d44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f867d44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:40:03.122828
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/39/image_23012025_07_39_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/39/image_23012025_07_39_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/39/image_23012025_07_39_40_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/07/39/image_23012025_07_39_35_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/39/image_23012025_07_39_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/07/39/image_23012025_07_39_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98018438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98018438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98018438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:40:32.360287
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/40/image_23012025_07_40_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/40/image_23012025_07_40_46_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/07/40/image_23012025_07_40_41_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/40/image_23012025_07_40_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/40/image_23012025_07_40_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/40/image_23012025_07_40_16_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f884f04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f884f04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f884f04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:41:03.273919
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/40/image_23012025_07_40_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/40/image_23012025_07_40_46_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/07/40/image_23012025_07_40_41_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/40/image_23012025_07_40_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/40/image_23012025_07_40_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/40/image_23012025_07_40_16_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafea64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafea64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafea64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:41:32.434320
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/41/image_23012025_07_41_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/41/image_23012025_07_41_46_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/07/41/image_23012025_07_41_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/41/image_23012025_07_41_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/41/image_23012025_07_41_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/41/image_23012025_07_41_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89acf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89acf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89acf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:42:03.085943
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/41/image_23012025_07_41_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/41/image_23012025_07_41_46_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/07/41/image_23012025_07_41_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/41/image_23012025_07_41_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/41/image_23012025_07_41_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/41/image_23012025_07_41_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa68264a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa68264a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa68264a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:42:32.526118
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/42/image_23012025_07_42_52_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/07/42/image_23012025_07_42_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/42/image_23012025_07_42_40_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/42/image_23012025_07_42_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/07/42/image_23012025_07_42_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/42/image_23012025_07_42_22_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8692e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8692e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8692e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:43:03.554118
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/42/image_23012025_07_42_52_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/07/42/image_23012025_07_42_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/42/image_23012025_07_42_40_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/42/image_23012025_07_42_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/07/42/image_23012025_07_42_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/42/image_23012025_07_42_22_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94c4f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94c4f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94c4f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:43:32.620184
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/43/image_23012025_07_43_52_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/07/43/image_23012025_07_43_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/07/43/image_23012025_07_43_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/43/image_23012025_07_43_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/43/image_23012025_07_43_28_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/07/43/image_23012025_07_43_22_5182.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94b574a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94b574a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94b574a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:44:03.757128
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/43/image_23012025_07_43_52_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/07/43/image_23012025_07_43_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/07/43/image_23012025_07_43_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/43/image_23012025_07_43_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/43/image_23012025_07_43_28_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/07/43/image_23012025_07_43_22_5182.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3d8b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3d8b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3d8b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:44:32.703986
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/44/image_23012025_07_44_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/44/image_23012025_07_44_47_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/44/image_23012025_07_44_40_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/44/image_23012025_07_44_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/44/image_23012025_07_44_28_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/44/image_23012025_07_44_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faaf864a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaf864a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaf864a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:45:02.634498
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/44/image_23012025_07_44_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/44/image_23012025_07_44_47_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/44/image_23012025_07_44_40_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/44/image_23012025_07_44_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/44/image_23012025_07_44_28_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/44/image_23012025_07_44_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f1454a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f1454a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f1454a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:45:31.794194
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/45/image_23012025_07_45_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/45/image_23012025_07_45_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/07/45/image_23012025_07_45_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/45/image_23012025_07_45_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/45/image_23012025_07_45_28_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/07/45/image_23012025_07_45_23_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa92834e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa92834e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa92834e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:46:02.555601
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/45/image_23012025_07_45_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/45/image_23012025_07_45_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/07/45/image_23012025_07_45_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/45/image_23012025_07_45_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/45/image_23012025_07_45_28_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/07/45/image_23012025_07_45_23_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83d154a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83d154a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83d154a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:46:31.891845
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/46/image_23012025_07_46_53_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/07/46/image_23012025_07_46_46_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/46/image_23012025_07_46_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/46/image_23012025_07_46_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/46/image_23012025_07_46_28_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/07/46/image_23012025_07_46_23_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95ae64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95ae64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95ae64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:47:02.854023
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/46/image_23012025_07_46_53_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/07/46/image_23012025_07_46_46_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/46/image_23012025_07_46_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/46/image_23012025_07_46_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/46/image_23012025_07_46_28_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/07/46/image_23012025_07_46_23_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83be84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83be84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83be84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:47:32.100266
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/47/image_23012025_07_47_53_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/47/image_23012025_07_47_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/47/image_23012025_07_47_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/47/image_23012025_07_47_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/47/image_23012025_07_47_28_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/07/47/image_23012025_07_47_23_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5f7c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5f7c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5f7c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:48:02.843730
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/47/image_23012025_07_47_53_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/47/image_23012025_07_47_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/47/image_23012025_07_47_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/47/image_23012025_07_47_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/07/47/image_23012025_07_47_28_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/07/47/image_23012025_07_47_23_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8317f438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8317f438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8317f438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:48:32.237828
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/48/image_23012025_07_48_46_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/48/image_23012025_07_48_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/48/image_23012025_07_48_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/07/48/image_23012025_07_48_28_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/07/48/image_23012025_07_48_16_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/07/48/image_23012025_07_48_10_6248.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f982ab4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f982ab4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f982ab4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:49:03.719448
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/48/image_23012025_07_48_46_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/48/image_23012025_07_48_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/48/image_23012025_07_48_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/07/48/image_23012025_07_48_28_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/07/48/image_23012025_07_48_16_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/07/48/image_23012025_07_48_10_6248.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb474b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb474b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb474b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:49:32.319032
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/49/image_23012025_07_49_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/49/image_23012025_07_49_46_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/49/image_23012025_07_49_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/07/49/image_23012025_07_49_34_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/07/49/image_23012025_07_49_29_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/49/image_23012025_07_49_22_6185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86148438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86148438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86148438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:50:03.159900
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/49/image_23012025_07_49_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/49/image_23012025_07_49_46_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/49/image_23012025_07_49_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/07/49/image_23012025_07_49_34_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/07/49/image_23012025_07_49_29_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/49/image_23012025_07_49_22_6185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96a004a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96a004a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96a004a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:50:32.406030
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/50/image_23012025_07_50_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/50/image_23012025_07_50_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/50/image_23012025_07_50_40_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/07/50/image_23012025_07_50_35_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/50/image_23012025_07_50_29_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/07/50/image_23012025_07_50_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f49a438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f49a438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f49a438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:51:03.374303
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/50/image_23012025_07_50_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/50/image_23012025_07_50_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/50/image_23012025_07_50_40_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/07/50/image_23012025_07_50_35_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/50/image_23012025_07_50_29_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/07/50/image_23012025_07_50_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77d0b438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77d0b438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77d0b438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:51:32.533287
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/51/image_23012025_07_51_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/51/image_23012025_07_51_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/51/image_23012025_07_51_40_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/07/51/image_23012025_07_51_35_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/07/51/image_23012025_07_51_28_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/51/image_23012025_07_51_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b2574a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b2574a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b2574a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:52:03.250343
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/51/image_23012025_07_51_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/07/51/image_23012025_07_51_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/51/image_23012025_07_51_40_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/07/51/image_23012025_07_51_35_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/07/51/image_23012025_07_51_28_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/51/image_23012025_07_51_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fa814a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fa814a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fa814a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:52:32.602842
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/52/image_23012025_07_52_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/52/image_23012025_07_52_46_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/07/52/image_23012025_07_52_41_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/52/image_23012025_07_52_35_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/52/image_23012025_07_52_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/52/image_23012025_07_52_22_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c39c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c39c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c39c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:53:03.541318
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/52/image_23012025_07_52_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/07/52/image_23012025_07_52_46_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/07/52/image_23012025_07_52_41_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/52/image_23012025_07_52_35_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/52/image_23012025_07_52_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/52/image_23012025_07_52_22_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d3ef4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d3ef4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d3ef4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:53:32.685286
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/53/image_23012025_07_53_52_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/53/image_23012025_07_53_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/07/53/image_23012025_07_53_41_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/53/image_23012025_07_53_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/07/53/image_23012025_07_53_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/53/image_23012025_07_53_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9038438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9038438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9038438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:54:02.991332
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/53/image_23012025_07_53_52_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/53/image_23012025_07_53_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/07/53/image_23012025_07_53_41_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/53/image_23012025_07_53_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/07/53/image_23012025_07_53_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/53/image_23012025_07_53_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa82684a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa82684a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa82684a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:54:31.794877
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/54/image_23012025_07_54_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/54/image_23012025_07_54_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/54/image_23012025_07_54_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/54/image_23012025_07_54_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/54/image_23012025_07_54_22_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/54/image_23012025_07_54_16_5178.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f7e2438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f7e2438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f7e2438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:55:02.706885
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/54/image_23012025_07_54_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/54/image_23012025_07_54_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/54/image_23012025_07_54_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/54/image_23012025_07_54_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/54/image_23012025_07_54_22_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/07/54/image_23012025_07_54_16_5178.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f996ec4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f996ec4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f996ec4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:55:31.983745
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/55/image_23012025_07_55_52_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/07/55/image_23012025_07_55_47_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/55/image_23012025_07_55_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/55/image_23012025_07_55_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/55/image_23012025_07_55_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/55/image_23012025_07_55_22_5185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae2e84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae2e84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae2e84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:56:02.399441
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/55/image_23012025_07_55_52_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/07/55/image_23012025_07_55_47_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/07/55/image_23012025_07_55_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/55/image_23012025_07_55_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/07/55/image_23012025_07_55_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/55/image_23012025_07_55_22_5185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2b3f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2b3f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2b3f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:56:32.056723
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/56/image_23012025_07_56_52_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/07/56/image_23012025_07_56_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/56/image_23012025_07_56_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/56/image_23012025_07_56_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/07/56/image_23012025_07_56_28_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/07/56/image_23012025_07_56_22_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f876324a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f876324a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f876324a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:57:02.952093
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/56/image_23012025_07_56_52_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/07/56/image_23012025_07_56_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/07/56/image_23012025_07_56_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/56/image_23012025_07_56_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/07/56/image_23012025_07_56_28_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/07/56/image_23012025_07_56_22_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ea184a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ea184a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ea184a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:57:32.176991
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/57/image_23012025_07_57_52_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/07/57/image_23012025_07_57_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/07/57/image_23012025_07_57_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/57/image_23012025_07_57_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/07/57/image_23012025_07_57_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/57/image_23012025_07_57_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2fd24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2fd24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2fd24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:58:02.794656
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/57/image_23012025_07_57_52_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/07/57/image_23012025_07_57_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/07/57/image_23012025_07_57_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/57/image_23012025_07_57_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/07/57/image_23012025_07_57_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/57/image_23012025_07_57_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fe384a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fe384a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fe384a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:59:03.456805
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/57/image_23012025_07_57_52_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/07/57/image_23012025_07_57_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/07/57/image_23012025_07_57_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/57/image_23012025_07_57_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/07/57/image_23012025_07_57_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/07/57/image_23012025_07_57_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa31974a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa31974a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa31974a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 07:59:32.192006
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/59/image_23012025_07_59_53_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/59/image_23012025_07_59_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/59/image_23012025_07_59_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/07/59/image_23012025_07_59_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/59/image_23012025_07_59_28_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/07/59/image_23012025_07_59_23_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8ff4438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8ff4438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8ff4438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:00:03.013148
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/07/59/image_23012025_07_59_53_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/59/image_23012025_07_59_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/59/image_23012025_07_59_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/07/59/image_23012025_07_59_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/07/59/image_23012025_07_59_28_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/07/59/image_23012025_07_59_23_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ab9a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ab9a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ab9a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:00:32.274453
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/00/image_23012025_08_00_53_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/08/00/image_23012025_08_00_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/08/00/image_23012025_08_00_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/00/image_23012025_08_00_34_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/08/00/image_23012025_08_00_28_5198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/00/image_23012025_08_00_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f938494a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f938494a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f938494a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:01:03.430625
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/00/image_23012025_08_00_53_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/08/00/image_23012025_08_00_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/08/00/image_23012025_08_00_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/00/image_23012025_08_00_34_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/08/00/image_23012025_08_00_28_5198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/00/image_23012025_08_00_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa96994a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa96994a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa96994a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:01:32.370953
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/01/image_23012025_08_01_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/01/image_23012025_08_01_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/01/image_23012025_08_01_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/08/01/image_23012025_08_01_34_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/08/01/image_23012025_08_01_23_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/08/01/image_23012025_08_01_16_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a5ce4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a5ce4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a5ce4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:02:03.181162
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/01/image_23012025_08_01_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/01/image_23012025_08_01_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/01/image_23012025_08_01_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/08/01/image_23012025_08_01_34_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/08/01/image_23012025_08_01_23_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/08/01/image_23012025_08_01_16_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f999e24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f999e24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f999e24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:02:32.480063
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/02/image_23012025_08_02_46_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/08/02/image_23012025_08_02_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/02/image_23012025_08_02_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/02/image_23012025_08_02_23_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/02/image_23012025_08_02_16_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/02/image_23012025_08_02_10_6203.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c2bf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c2bf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c2bf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:03:03.464426
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/02/image_23012025_08_02_46_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/08/02/image_23012025_08_02_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/02/image_23012025_08_02_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/02/image_23012025_08_02_23_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/02/image_23012025_08_02_16_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/02/image_23012025_08_02_10_6203.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d5054a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d5054a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d5054a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:03:32.687627
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/03/image_23012025_08_03_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/03/image_23012025_08_03_23_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/08/03/image_23012025_08_03_10_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/08/02/image_23012025_08_02_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/02/image_23012025_08_02_46_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/08/02/image_23012025_08_02_34_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb026e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb026e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb026e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:04:02.767991
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/03/image_23012025_08_03_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/03/image_23012025_08_03_23_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/08/03/image_23012025_08_03_10_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/08/02/image_23012025_08_02_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/02/image_23012025_08_02_46_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/08/02/image_23012025_08_02_34_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6a964a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6a964a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6a964a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:04:31.782551
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/04/image_23012025_08_04_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/04/image_23012025_08_04_23_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/04/image_23012025_08_04_10_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/08/03/image_23012025_08_03_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/03/image_23012025_08_03_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/03/image_23012025_08_03_23_6203.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94ec6438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94ec6438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94ec6438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:05:02.592084
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/04/image_23012025_08_04_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/04/image_23012025_08_04_23_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/04/image_23012025_08_04_10_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/08/03/image_23012025_08_03_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/03/image_23012025_08_03_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/03/image_23012025_08_03_23_6203.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9cb5438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9cb5438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9cb5438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:05:31.886837
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/05/image_23012025_08_05_16_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/05/image_23012025_08_05_10_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/08/04/image_23012025_08_05_04_6222.jpg', 2), ('/home/nano/Desktop/images/23012025/08/04/image_23012025_08_04_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/08/04/image_23012025_08_04_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/04/image_23012025_08_04_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a81f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a81f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a81f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:06:02.640518
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/05/image_23012025_08_05_16_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/05/image_23012025_08_05_10_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/08/04/image_23012025_08_05_04_6222.jpg', 2), ('/home/nano/Desktop/images/23012025/08/04/image_23012025_08_04_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/08/04/image_23012025_08_04_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/04/image_23012025_08_04_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f985724a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f985724a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f985724a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:06:31.986841
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/06/image_23012025_08_06_28_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/05/image_23012025_08_05_23_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/08/05/image_23012025_08_05_16_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/05/image_23012025_08_05_10_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/08/04/image_23012025_08_05_04_6222.jpg', 2), ('/home/nano/Desktop/images/23012025/08/04/image_23012025_08_04_46_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f878154a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f878154a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f878154a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:07:03.020491
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/06/image_23012025_08_06_28_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/05/image_23012025_08_05_23_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/08/05/image_23012025_08_05_16_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/05/image_23012025_08_05_10_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/08/04/image_23012025_08_05_04_6222.jpg', 2), ('/home/nano/Desktop/images/23012025/08/04/image_23012025_08_04_46_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb545b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb545b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb545b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:07:32.082476
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/06/image_23012025_08_07_04_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/08/06/image_23012025_08_06_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/06/image_23012025_08_06_28_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/05/image_23012025_08_05_23_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/08/05/image_23012025_08_05_16_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/05/image_23012025_08_05_10_6208.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7732d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7732d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7732d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:08:02.936593
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/06/image_23012025_08_07_04_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/08/06/image_23012025_08_06_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/06/image_23012025_08_06_28_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/05/image_23012025_08_05_23_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/08/05/image_23012025_08_05_16_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/05/image_23012025_08_05_10_6208.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9370f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9370f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9370f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:08:32.176205
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/07/image_23012025_08_07_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/08/06/image_23012025_08_07_04_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/08/06/image_23012025_08_06_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/06/image_23012025_08_06_28_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/05/image_23012025_08_05_23_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/08/05/image_23012025_08_05_16_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb50674a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb50674a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb50674a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:09:03.476702
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/07/image_23012025_08_07_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/08/06/image_23012025_08_07_04_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/08/06/image_23012025_08_06_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/06/image_23012025_08_06_28_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/05/image_23012025_08_05_23_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/08/05/image_23012025_08_05_16_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99b534a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99b534a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99b534a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:09:32.326623
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/09/image_23012025_08_09_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/08/08/image_23012025_08_09_04_6219.jpg', 2), ('/home/nano/Desktop/images/23012025/08/08/image_23012025_08_08_16_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/07/image_23012025_08_07_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/08/06/image_23012025_08_07_04_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/08/06/image_23012025_08_06_40_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4e294e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4e294e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4e294e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:10:03.186305
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/09/image_23012025_08_09_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/08/08/image_23012025_08_09_04_6219.jpg', 2), ('/home/nano/Desktop/images/23012025/08/08/image_23012025_08_08_16_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/07/image_23012025_08_07_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/08/06/image_23012025_08_07_04_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/08/06/image_23012025_08_06_40_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f922e64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f922e64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f922e64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:10:32.405427
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/10/image_23012025_08_10_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/09/image_23012025_08_09_53_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/09/image_23012025_08_09_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/08/08/image_23012025_08_09_04_6219.jpg', 2), ('/home/nano/Desktop/images/23012025/08/08/image_23012025_08_08_16_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/07/image_23012025_08_07_46_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7987e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7987e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7987e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:11:03.249034
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/10/image_23012025_08_10_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/09/image_23012025_08_09_53_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/09/image_23012025_08_09_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/08/08/image_23012025_08_09_04_6219.jpg', 2), ('/home/nano/Desktop/images/23012025/08/08/image_23012025_08_08_16_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/07/image_23012025_08_07_46_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76d5a438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76d5a438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76d5a438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:11:32.493305
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/11/image_23012025_08_11_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/11/image_23012025_08_11_28_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/11/image_23012025_08_11_17_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/10/image_23012025_08_10_53_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/10/image_23012025_08_10_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/09/image_23012025_08_09_53_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87d754a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87d754a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87d754a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:12:03.270771
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/11/image_23012025_08_11_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/11/image_23012025_08_11_28_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/11/image_23012025_08_11_17_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/10/image_23012025_08_10_53_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/10/image_23012025_08_10_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/09/image_23012025_08_09_53_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb52914a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb52914a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb52914a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:12:32.590240
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/12/image_23012025_08_12_53_6232.jpg', 2), ('/home/nano/Desktop/images/23012025/08/12/image_23012025_08_12_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/08/12/image_23012025_08_12_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/08/12/image_23012025_08_12_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/08/12/image_23012025_08_12_28_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/08/12/image_23012025_08_12_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf4c94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf4c94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf4c94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:13:03.774877
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/12/image_23012025_08_12_53_6232.jpg', 2), ('/home/nano/Desktop/images/23012025/08/12/image_23012025_08_12_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/08/12/image_23012025_08_12_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/08/12/image_23012025_08_12_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/08/12/image_23012025_08_12_28_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/08/12/image_23012025_08_12_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88b7d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88b7d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88b7d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:13:32.805470
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/13/image_23012025_08_13_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/13/image_23012025_08_13_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/13/image_23012025_08_13_40_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/08/13/image_23012025_08_13_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/08/13/image_23012025_08_13_28_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/08/13/image_23012025_08_13_23_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94ae64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94ae64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94ae64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:14:03.010992
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/13/image_23012025_08_13_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/13/image_23012025_08_13_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/13/image_23012025_08_13_40_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/08/13/image_23012025_08_13_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/08/13/image_23012025_08_13_28_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/08/13/image_23012025_08_13_23_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa48484a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa48484a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa48484a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:14:31.897222
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/14/image_23012025_08_14_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/14/image_23012025_08_14_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/14/image_23012025_08_14_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/14/image_23012025_08_14_28_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/08/14/image_23012025_08_14_23_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/08/14/image_23012025_08_14_16_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4f764a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4f764a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4f764a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:15:02.806171
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/14/image_23012025_08_14_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/14/image_23012025_08_14_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/14/image_23012025_08_14_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/14/image_23012025_08_14_28_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/08/14/image_23012025_08_14_23_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/08/14/image_23012025_08_14_16_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac0004a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac0004a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac0004a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:15:31.996886
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/15/image_23012025_08_15_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/15/image_23012025_08_15_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/15/image_23012025_08_15_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/15/image_23012025_08_15_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/08/15/image_23012025_08_15_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/15/image_23012025_08_15_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f922b24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f922b24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f922b24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:16:02.804137
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/15/image_23012025_08_15_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/15/image_23012025_08_15_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/15/image_23012025_08_15_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/15/image_23012025_08_15_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/08/15/image_23012025_08_15_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/15/image_23012025_08_15_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d19b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d19b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d19b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:16:32.161594
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/16/image_23012025_08_16_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/16/image_23012025_08_16_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/16/image_23012025_08_16_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/16/image_23012025_08_16_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/16/image_23012025_08_16_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/08/16/image_23012025_08_16_23_6220.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8edd24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8edd24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8edd24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:17:03.183774
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/16/image_23012025_08_16_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/16/image_23012025_08_16_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/16/image_23012025_08_16_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/16/image_23012025_08_16_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/16/image_23012025_08_16_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/08/16/image_23012025_08_16_23_6220.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f950a4438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f950a4438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f950a4438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:17:32.252823
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/17/image_23012025_08_17_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/17/image_23012025_08_17_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/08/17/image_23012025_08_17_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/17/image_23012025_08_17_23_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/17/image_23012025_08_17_16_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/17/image_23012025_08_17_10_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa64dd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa64dd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa64dd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:18:03.081917
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/17/image_23012025_08_17_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/17/image_23012025_08_17_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/08/17/image_23012025_08_17_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/17/image_23012025_08_17_23_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/17/image_23012025_08_17_16_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/17/image_23012025_08_17_10_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c91d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c91d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c91d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:18:32.313886
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/18/image_23012025_08_18_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/18/image_23012025_08_18_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/18/image_23012025_08_18_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/18/image_23012025_08_18_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/18/image_23012025_08_18_28_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/08/18/image_23012025_08_18_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98be24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98be24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98be24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:19:03.868620
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/18/image_23012025_08_18_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/18/image_23012025_08_18_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/18/image_23012025_08_18_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/18/image_23012025_08_18_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/18/image_23012025_08_18_28_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/08/18/image_23012025_08_18_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a0594a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a0594a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a0594a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:19:32.439288
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/19/image_23012025_08_19_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/19/image_23012025_08_19_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/19/image_23012025_08_19_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/19/image_23012025_08_19_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/08/19/image_23012025_08_19_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/19/image_23012025_08_19_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f793344a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f793344a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f793344a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:20:03.153694
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/19/image_23012025_08_19_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/19/image_23012025_08_19_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/19/image_23012025_08_19_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/19/image_23012025_08_19_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/08/19/image_23012025_08_19_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/19/image_23012025_08_19_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab16e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab16e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab16e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:20:32.506291
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/20/image_23012025_08_20_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/20/image_23012025_08_20_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/20/image_23012025_08_20_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/08/20/image_23012025_08_20_28_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/08/20/image_23012025_08_20_23_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/20/image_23012025_08_20_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f23f438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f23f438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f23f438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:21:03.447059
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/20/image_23012025_08_20_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/20/image_23012025_08_20_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/20/image_23012025_08_20_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/08/20/image_23012025_08_20_28_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/08/20/image_23012025_08_20_23_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/20/image_23012025_08_20_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d0914a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d0914a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d0914a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:21:32.613151
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/21/image_23012025_08_21_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/21/image_23012025_08_21_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/21/image_23012025_08_21_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/21/image_23012025_08_21_34_5197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/21/image_23012025_08_21_23_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/08/21/image_23012025_08_21_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fb4c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fb4c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fb4c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:22:03.440356
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/21/image_23012025_08_21_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/21/image_23012025_08_21_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/21/image_23012025_08_21_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/21/image_23012025_08_21_34_5197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/21/image_23012025_08_21_23_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/08/21/image_23012025_08_21_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa33f44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa33f44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa33f44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:22:32.769584
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/22/image_23012025_08_22_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/22/image_23012025_08_22_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/22/image_23012025_08_22_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/22/image_23012025_08_22_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/22/image_23012025_08_22_16_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/22/image_23012025_08_22_10_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91dd74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91dd74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91dd74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:23:02.715417
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/22/image_23012025_08_22_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/22/image_23012025_08_22_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/22/image_23012025_08_22_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/22/image_23012025_08_22_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/22/image_23012025_08_22_16_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/22/image_23012025_08_22_10_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94b39438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94b39438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94b39438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:23:31.845284
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/23/image_23012025_08_23_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/23/image_23012025_08_23_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/23/image_23012025_08_23_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/23/image_23012025_08_23_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/23/image_23012025_08_23_22_6232.jpg', 2), ('/home/nano/Desktop/images/23012025/08/23/image_23012025_08_23_16_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa46444a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa46444a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa46444a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:24:03.072995
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/23/image_23012025_08_23_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/23/image_23012025_08_23_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/23/image_23012025_08_23_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/23/image_23012025_08_23_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/23/image_23012025_08_23_22_6232.jpg', 2), ('/home/nano/Desktop/images/23012025/08/23/image_23012025_08_23_16_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2dc04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2dc04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2dc04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:24:31.954636
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/24/image_23012025_08_24_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/24/image_23012025_08_24_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/24/image_23012025_08_24_40_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/08/24/image_23012025_08_24_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/24/image_23012025_08_24_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/24/image_23012025_08_24_16_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb39524a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb39524a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb39524a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:25:02.936089
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/24/image_23012025_08_24_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/24/image_23012025_08_24_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/24/image_23012025_08_24_40_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/08/24/image_23012025_08_24_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/24/image_23012025_08_24_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/24/image_23012025_08_24_16_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f37a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f37a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f37a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:25:32.048399
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/25/image_23012025_08_25_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/25/image_23012025_08_25_46_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/08/25/image_23012025_08_25_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/08/25/image_23012025_08_25_34_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/08/25/image_23012025_08_25_29_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/08/25/image_23012025_08_25_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb53314a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb53314a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb53314a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:26:03.026417
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/25/image_23012025_08_25_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/25/image_23012025_08_25_46_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/08/25/image_23012025_08_25_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/08/25/image_23012025_08_25_34_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/08/25/image_23012025_08_25_29_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/08/25/image_23012025_08_25_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa88ba4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa88ba4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa88ba4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:26:32.172561
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/26/image_23012025_08_26_52_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/08/26/image_23012025_08_26_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/08/26/image_23012025_08_26_40_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/08/26/image_23012025_08_26_35_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/26/image_23012025_08_26_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/26/image_23012025_08_26_22_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb11a34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb11a34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb11a34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:27:03.271450
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/26/image_23012025_08_26_52_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/08/26/image_23012025_08_26_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/08/26/image_23012025_08_26_40_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/08/26/image_23012025_08_26_35_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/26/image_23012025_08_26_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/26/image_23012025_08_26_22_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2e7a438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2e7a438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2e7a438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:27:32.261756
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/27/image_23012025_08_27_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/27/image_23012025_08_27_46_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/08/27/image_23012025_08_27_41_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/08/27/image_23012025_08_27_35_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/08/27/image_23012025_08_27_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/27/image_23012025_08_27_22_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa26274a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa26274a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa26274a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:28:02.910790
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/27/image_23012025_08_27_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/27/image_23012025_08_27_46_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/08/27/image_23012025_08_27_41_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/08/27/image_23012025_08_27_35_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/08/27/image_23012025_08_27_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/27/image_23012025_08_27_22_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad0814a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad0814a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad0814a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:28:32.340113
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/28/image_23012025_08_28_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/28/image_23012025_08_28_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/28/image_23012025_08_28_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/28/image_23012025_08_28_28_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/08/28/image_23012025_08_28_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/28/image_23012025_08_28_16_5190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb19894a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb19894a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb19894a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:29:03.608842
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/28/image_23012025_08_28_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/28/image_23012025_08_28_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/28/image_23012025_08_28_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/28/image_23012025_08_28_28_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/08/28/image_23012025_08_28_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/28/image_23012025_08_28_16_5190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f961194a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f961194a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f961194a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:29:32.439368
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/29/image_23012025_08_29_52_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/08/29/image_23012025_08_29_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/08/29/image_23012025_08_29_41_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/29/image_23012025_08_29_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/29/image_23012025_08_29_28_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/08/29/image_23012025_08_29_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa552a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa552a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa552a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:30:03.409552
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/29/image_23012025_08_29_52_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/08/29/image_23012025_08_29_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/08/29/image_23012025_08_29_41_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/29/image_23012025_08_29_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/29/image_23012025_08_29_28_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/08/29/image_23012025_08_29_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f893344a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f893344a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f893344a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:30:32.530851
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/30/image_23012025_08_30_52_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/08/30/image_23012025_08_30_47_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/30/image_23012025_08_30_41_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/30/image_23012025_08_30_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/30/image_23012025_08_30_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/30/image_23012025_08_30_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f777714a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f777714a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f777714a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:31:03.538664
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/30/image_23012025_08_30_52_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/08/30/image_23012025_08_30_47_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/30/image_23012025_08_30_41_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/30/image_23012025_08_30_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/30/image_23012025_08_30_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/30/image_23012025_08_30_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84d4d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84d4d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84d4d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:31:32.631133
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/31/image_23012025_08_31_52_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/08/31/image_23012025_08_31_47_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/31/image_23012025_08_31_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/31/image_23012025_08_31_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/31/image_23012025_08_31_28_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/08/31/image_23012025_08_31_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8b1a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8b1a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8b1a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:32:03.580877
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/31/image_23012025_08_31_52_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/08/31/image_23012025_08_31_47_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/31/image_23012025_08_31_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/31/image_23012025_08_31_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/31/image_23012025_08_31_28_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/08/31/image_23012025_08_31_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb565d438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb565d438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb565d438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:32:32.718144
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/32/image_23012025_08_32_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/32/image_23012025_08_32_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/32/image_23012025_08_32_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/08/32/image_23012025_08_32_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/32/image_23012025_08_32_28_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/08/32/image_23012025_08_32_22_5179.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a2f74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a2f74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a2f74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:33:02.933878
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/32/image_23012025_08_32_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/32/image_23012025_08_32_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/32/image_23012025_08_32_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/08/32/image_23012025_08_32_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/32/image_23012025_08_32_28_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/08/32/image_23012025_08_32_22_5179.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f786254a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f786254a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f786254a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:33:31.820981
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/33/image_23012025_08_33_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/33/image_23012025_08_33_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/08/33/image_23012025_08_33_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/33/image_23012025_08_33_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/08/33/image_23012025_08_33_28_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/08/33/image_23012025_08_33_23_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9af9a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9af9a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9af9a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:34:02.993644
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/33/image_23012025_08_33_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/33/image_23012025_08_33_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/08/33/image_23012025_08_33_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/33/image_23012025_08_33_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/08/33/image_23012025_08_33_28_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/08/33/image_23012025_08_33_23_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa43f34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa43f34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa43f34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:34:32.006692
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/34/image_23012025_08_34_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/34/image_23012025_08_34_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/34/image_23012025_08_34_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/34/image_23012025_08_34_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/08/34/image_23012025_08_34_28_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/08/34/image_23012025_08_34_23_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9790e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9790e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9790e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:35:03.009110
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/34/image_23012025_08_34_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/34/image_23012025_08_34_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/34/image_23012025_08_34_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/34/image_23012025_08_34_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/08/34/image_23012025_08_34_28_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/08/34/image_23012025_08_34_23_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa85134e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa85134e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa85134e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:35:32.120571
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/35/image_23012025_08_35_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/35/image_23012025_08_35_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/35/image_23012025_08_35_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/35/image_23012025_08_35_34_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/08/35/image_23012025_08_35_29_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/08/35/image_23012025_08_35_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c63e438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c63e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c63e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:36:02.816427
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/35/image_23012025_08_35_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/35/image_23012025_08_35_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/35/image_23012025_08_35_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/35/image_23012025_08_35_34_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/08/35/image_23012025_08_35_29_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/08/35/image_23012025_08_35_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bb0f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bb0f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bb0f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:36:32.208871
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/36/image_23012025_08_36_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/36/image_23012025_08_36_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/08/36/image_23012025_08_36_40_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/08/36/image_23012025_08_36_35_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/36/image_23012025_08_36_29_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/08/36/image_23012025_08_36_22_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f902144a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f902144a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f902144a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:37:03.353431
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/36/image_23012025_08_36_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/36/image_23012025_08_36_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/08/36/image_23012025_08_36_40_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/08/36/image_23012025_08_36_35_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/36/image_23012025_08_36_29_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/08/36/image_23012025_08_36_22_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76b264a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76b264a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76b264a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:37:32.350696
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/37/image_23012025_08_37_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/37/image_23012025_08_37_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/08/37/image_23012025_08_37_40_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/08/37/image_23012025_08_37_35_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/08/37/image_23012025_08_37_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/37/image_23012025_08_37_22_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb15ae438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb15ae438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb15ae438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:38:03.042448
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/37/image_23012025_08_37_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/37/image_23012025_08_37_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/08/37/image_23012025_08_37_40_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/08/37/image_23012025_08_37_35_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/08/37/image_23012025_08_37_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/37/image_23012025_08_37_22_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80dc34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80dc34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80dc34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:38:32.443847
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/38/image_23012025_08_38_52_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/08/38/image_23012025_08_38_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/08/38/image_23012025_08_38_41_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/08/38/image_23012025_08_38_35_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/38/image_23012025_08_38_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/38/image_23012025_08_38_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab5224a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab5224a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab5224a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:39:03.918928
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/38/image_23012025_08_38_52_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/08/38/image_23012025_08_38_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/08/38/image_23012025_08_38_41_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/08/38/image_23012025_08_38_35_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/38/image_23012025_08_38_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/38/image_23012025_08_38_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f921054a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f921054a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f921054a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:39:32.573983
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/39/image_23012025_08_39_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/39/image_23012025_08_39_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/08/39/image_23012025_08_39_41_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/39/image_23012025_08_39_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/39/image_23012025_08_39_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/39/image_23012025_08_39_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa49b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa49b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa49b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:40:03.409317
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/39/image_23012025_08_39_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/39/image_23012025_08_39_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/08/39/image_23012025_08_39_41_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/39/image_23012025_08_39_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/39/image_23012025_08_39_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/39/image_23012025_08_39_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fd384a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fd384a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fd384a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:40:32.653744
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/40/image_23012025_08_40_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/40/image_23012025_08_40_46_5240.jpg', 2), ('/home/nano/Desktop/images/23012025/08/40/image_23012025_08_40_41_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/40/image_23012025_08_40_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/40/image_23012025_08_40_28_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/40/image_23012025_08_40_22_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d1ac438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d1ac438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d1ac438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:41:02.590247
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/40/image_23012025_08_40_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/40/image_23012025_08_40_46_5240.jpg', 2), ('/home/nano/Desktop/images/23012025/08/40/image_23012025_08_40_41_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/40/image_23012025_08_40_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/40/image_23012025_08_40_28_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/40/image_23012025_08_40_22_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90f1e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90f1e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90f1e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:41:31.825554
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/41/image_23012025_08_41_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/41/image_23012025_08_41_46_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/08/41/image_23012025_08_41_41_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/08/41/image_23012025_08_41_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/41/image_23012025_08_41_28_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/41/image_23012025_08_41_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e1644a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e1644a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e1644a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:42:02.653488
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/41/image_23012025_08_41_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/41/image_23012025_08_41_46_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/08/41/image_23012025_08_41_41_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/08/41/image_23012025_08_41_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/41/image_23012025_08_41_28_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/08/41/image_23012025_08_41_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a569438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a569438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a569438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:42:31.908385
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/42/image_23012025_08_42_46_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/08/42/image_23012025_08_42_41_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/08/42/image_23012025_08_42_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/08/42/image_23012025_08_42_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/42/image_23012025_08_42_22_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/08/42/image_23012025_08_42_16_5194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f965354a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f965354a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f965354a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:43:02.719032
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/42/image_23012025_08_42_46_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/08/42/image_23012025_08_42_41_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/08/42/image_23012025_08_42_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/08/42/image_23012025_08_42_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/42/image_23012025_08_42_22_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/08/42/image_23012025_08_42_16_5194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77890438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77890438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77890438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:43:32.005989
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/43/image_23012025_08_43_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/43/image_23012025_08_43_46_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/08/43/image_23012025_08_43_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/43/image_23012025_08_43_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/08/43/image_23012025_08_43_28_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/08/43/image_23012025_08_43_22_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f987464a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f987464a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f987464a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:44:03.054901
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/43/image_23012025_08_43_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/43/image_23012025_08_43_46_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/08/43/image_23012025_08_43_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/43/image_23012025_08_43_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/08/43/image_23012025_08_43_28_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/08/43/image_23012025_08_43_22_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa55094a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa55094a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa55094a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:44:32.095149
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/44/image_23012025_08_44_52_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/08/44/image_23012025_08_44_47_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/44/image_23012025_08_44_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/44/image_23012025_08_44_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/08/44/image_23012025_08_44_22_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/08/44/image_23012025_08_44_17_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c5d94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c5d94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c5d94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:45:03.130285
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/44/image_23012025_08_44_52_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/08/44/image_23012025_08_44_47_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/44/image_23012025_08_44_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/44/image_23012025_08_44_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/08/44/image_23012025_08_44_22_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/08/44/image_23012025_08_44_17_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a4924a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a4924a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a4924a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:45:32.200439
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/45/image_23012025_08_45_52_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/08/45/image_23012025_08_45_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/45/image_23012025_08_45_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/45/image_23012025_08_45_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/45/image_23012025_08_45_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/08/45/image_23012025_08_45_22_5179.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d3b34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d3b34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d3b34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:46:02.863902
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/45/image_23012025_08_45_52_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/08/45/image_23012025_08_45_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/45/image_23012025_08_45_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/45/image_23012025_08_45_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/45/image_23012025_08_45_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/08/45/image_23012025_08_45_22_5179.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4a2e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4a2e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4a2e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:46:32.275244
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/46/image_23012025_08_46_52_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/08/46/image_23012025_08_46_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/46/image_23012025_08_46_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/46/image_23012025_08_46_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/46/image_23012025_08_46_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/46/image_23012025_08_46_22_5191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76c3d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76c3d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76c3d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:47:03.162661
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/46/image_23012025_08_46_52_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/08/46/image_23012025_08_46_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/46/image_23012025_08_46_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/46/image_23012025_08_46_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/46/image_23012025_08_46_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/46/image_23012025_08_46_22_5191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f868284a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f868284a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f868284a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:47:32.383550
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/47/image_23012025_08_47_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/47/image_23012025_08_47_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/47/image_23012025_08_47_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/47/image_23012025_08_47_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/47/image_23012025_08_47_28_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/08/47/image_23012025_08_47_23_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c58d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c58d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c58d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:48:03.153951
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/47/image_23012025_08_47_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/47/image_23012025_08_47_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/47/image_23012025_08_47_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/47/image_23012025_08_47_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/47/image_23012025_08_47_28_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/08/47/image_23012025_08_47_23_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b8514a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b8514a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b8514a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:48:32.475743
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/48/image_23012025_08_48_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/48/image_23012025_08_48_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/48/image_23012025_08_48_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/48/image_23012025_08_48_34_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/08/48/image_23012025_08_48_28_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/08/48/image_23012025_08_48_23_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c7fc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c7fc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c7fc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:49:03.908797
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/48/image_23012025_08_48_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/48/image_23012025_08_48_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/48/image_23012025_08_48_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/48/image_23012025_08_48_34_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/08/48/image_23012025_08_48_28_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/08/48/image_23012025_08_48_23_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9de44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9de44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9de44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:49:32.627790
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/49/image_23012025_08_49_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/49/image_23012025_08_49_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/49/image_23012025_08_49_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/08/49/image_23012025_08_49_34_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/08/49/image_23012025_08_49_29_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/49/image_23012025_08_49_23_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f993c24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f993c24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f993c24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:50:03.570576
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/49/image_23012025_08_49_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/49/image_23012025_08_49_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/49/image_23012025_08_49_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/08/49/image_23012025_08_49_34_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/08/49/image_23012025_08_49_29_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/49/image_23012025_08_49_23_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ba8f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ba8f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ba8f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:50:32.691629
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/50/image_23012025_08_50_52_6218.jpg', 2), ('/home/nano/Desktop/images/23012025/08/50/image_23012025_08_50_34_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/08/50/image_23012025_08_50_29_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/08/50/image_23012025_08_50_22_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/08/50/image_23012025_08_50_16_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/08/50/image_23012025_08_50_10_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf70e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf70e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf70e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:51:02.493951
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/50/image_23012025_08_50_52_6218.jpg', 2), ('/home/nano/Desktop/images/23012025/08/50/image_23012025_08_50_34_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/08/50/image_23012025_08_50_29_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/08/50/image_23012025_08_50_22_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/08/50/image_23012025_08_50_16_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/08/50/image_23012025_08_50_10_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e69d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e69d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e69d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:51:31.820086
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/51/image_23012025_08_51_52_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/08/51/image_23012025_08_51_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/51/image_23012025_08_51_40_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/08/51/image_23012025_08_51_34_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/08/51/image_23012025_08_51_29_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/08/51/image_23012025_08_51_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafb734a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafb734a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafb734a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:52:02.818580
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/51/image_23012025_08_51_52_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/08/51/image_23012025_08_51_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/51/image_23012025_08_51_40_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/08/51/image_23012025_08_51_34_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/08/51/image_23012025_08_51_29_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/08/51/image_23012025_08_51_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae2384a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae2384a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae2384a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:52:31.900680
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/52/image_23012025_08_52_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/52/image_23012025_08_52_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/52/image_23012025_08_52_34_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/08/52/image_23012025_08_52_29_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/08/52/image_23012025_08_52_22_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/08/52/image_23012025_08_52_16_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d9904a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d9904a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d9904a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:53:02.925737
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/52/image_23012025_08_52_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/52/image_23012025_08_52_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/52/image_23012025_08_52_34_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/08/52/image_23012025_08_52_29_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/08/52/image_23012025_08_52_22_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/08/52/image_23012025_08_52_16_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88c5c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88c5c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88c5c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:53:31.990425
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/53/image_23012025_08_53_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/53/image_23012025_08_53_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/53/image_23012025_08_53_40_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/08/53/image_23012025_08_53_35_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/08/53/image_23012025_08_53_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/53/image_23012025_08_53_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f967974a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f967974a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f967974a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:54:03.095557
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/53/image_23012025_08_53_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/53/image_23012025_08_53_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/53/image_23012025_08_53_40_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/08/53/image_23012025_08_53_35_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/08/53/image_23012025_08_53_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/08/53/image_23012025_08_53_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3ccc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3ccc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3ccc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:54:32.135848
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/54/image_23012025_08_54_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/54/image_23012025_08_54_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/54/image_23012025_08_54_40_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/08/54/image_23012025_08_54_35_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/08/54/image_23012025_08_54_28_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/08/54/image_23012025_08_54_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84769438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84769438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84769438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:55:02.980343
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/54/image_23012025_08_54_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/54/image_23012025_08_54_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/54/image_23012025_08_54_40_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/08/54/image_23012025_08_54_35_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/08/54/image_23012025_08_54_28_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/08/54/image_23012025_08_54_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faccfc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faccfc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faccfc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:55:32.248157
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/55/image_23012025_08_55_52_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/08/55/image_23012025_08_55_46_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/08/55/image_23012025_08_55_41_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/55/image_23012025_08_55_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/55/image_23012025_08_55_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/55/image_23012025_08_55_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb48004a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb48004a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb48004a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:56:02.886406
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/55/image_23012025_08_55_52_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/08/55/image_23012025_08_55_46_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/08/55/image_23012025_08_55_41_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/55/image_23012025_08_55_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/55/image_23012025_08_55_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/55/image_23012025_08_55_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faccff4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faccff4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faccff4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:56:32.345221
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/56/image_23012025_08_56_52_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/08/56/image_23012025_08_56_47_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/56/image_23012025_08_56_41_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/08/56/image_23012025_08_56_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/56/image_23012025_08_56_28_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/08/56/image_23012025_08_56_22_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b2cf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b2cf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b2cf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:57:03.444488
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/56/image_23012025_08_56_52_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/08/56/image_23012025_08_56_47_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/08/56/image_23012025_08_56_41_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/08/56/image_23012025_08_56_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/56/image_23012025_08_56_28_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/08/56/image_23012025_08_56_22_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a5f54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a5f54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a5f54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:57:32.458942
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/57/image_23012025_08_57_52_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/08/57/image_23012025_08_57_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/08/57/image_23012025_08_57_40_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/08/57/image_23012025_08_57_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/57/image_23012025_08_57_28_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/08/57/image_23012025_08_57_22_5183.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa21d54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa21d54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa21d54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:58:03.278977
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/57/image_23012025_08_57_52_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/08/57/image_23012025_08_57_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/08/57/image_23012025_08_57_40_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/08/57/image_23012025_08_57_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/08/57/image_23012025_08_57_28_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/08/57/image_23012025_08_57_22_5183.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8abdd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8abdd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8abdd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:59:03.033332
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/58/image_23012025_08_58_52_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/08/58/image_23012025_08_58_47_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/58/image_23012025_08_58_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/08/58/image_23012025_08_58_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/08/58/image_23012025_08_58_28_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/08/58/image_23012025_08_58_22_5183.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3724438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3724438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3724438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 08:59:31.797947
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/59/image_23012025_08_59_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/59/image_23012025_08_59_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/59/image_23012025_08_59_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/59/image_23012025_08_59_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/59/image_23012025_08_59_22_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/08/59/image_23012025_08_59_17_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa09774a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa09774a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa09774a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:00:02.668496
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/08/59/image_23012025_08_59_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/59/image_23012025_08_59_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/59/image_23012025_08_59_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/08/59/image_23012025_08_59_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/08/59/image_23012025_08_59_22_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/08/59/image_23012025_08_59_17_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2ab44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2ab44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2ab44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:00:31.906877
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/00/image_23012025_09_00_53_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/09/00/image_23012025_09_00_47_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/09/00/image_23012025_09_00_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/00/image_23012025_09_00_34_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/09/00/image_23012025_09_00_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/09/00/image_23012025_09_00_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f962e64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f962e64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f962e64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:01:02.806640
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/00/image_23012025_09_00_53_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/09/00/image_23012025_09_00_47_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/09/00/image_23012025_09_00_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/00/image_23012025_09_00_34_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/09/00/image_23012025_09_00_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/09/00/image_23012025_09_00_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9f594a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9f594a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9f594a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:01:32.035771
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/01/image_23012025_09_01_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/09/01/image_23012025_09_01_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/01/image_23012025_09_01_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/09/01/image_23012025_09_01_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/09/01/image_23012025_09_01_28_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/09/01/image_23012025_09_01_23_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81c404a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81c404a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81c404a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:02:02.589994
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/01/image_23012025_09_01_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/09/01/image_23012025_09_01_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/01/image_23012025_09_01_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/09/01/image_23012025_09_01_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/09/01/image_23012025_09_01_28_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/09/01/image_23012025_09_01_23_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cf684a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cf684a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cf684a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:02:32.110950
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/02/image_23012025_09_02_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/02/image_23012025_09_02_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/02/image_23012025_09_02_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/09/02/image_23012025_09_02_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/09/02/image_23012025_09_02_28_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/09/02/image_23012025_09_02_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8eae4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8eae4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8eae4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:03:02.816429
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/02/image_23012025_09_02_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/02/image_23012025_09_02_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/02/image_23012025_09_02_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/09/02/image_23012025_09_02_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/09/02/image_23012025_09_02_28_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/09/02/image_23012025_09_02_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0f79438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0f79438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0f79438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:03:32.329178
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/03/image_23012025_09_03_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/03/image_23012025_09_03_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/09/03/image_23012025_09_03_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/09/03/image_23012025_09_03_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/03/image_23012025_09_03_28_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/09/03/image_23012025_09_03_23_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4d874a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4d874a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4d874a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:04:03.556708
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/03/image_23012025_09_03_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/03/image_23012025_09_03_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/09/03/image_23012025_09_03_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/09/03/image_23012025_09_03_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/03/image_23012025_09_03_28_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/09/03/image_23012025_09_03_23_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa056f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa056f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa056f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:04:32.450494
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/04/image_23012025_09_04_53_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/09/04/image_23012025_09_04_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/09/04/image_23012025_09_04_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/09/04/image_23012025_09_04_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/04/image_23012025_09_04_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/04/image_23012025_09_04_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faaa16438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaa16438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaa16438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:05:03.602040
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/04/image_23012025_09_04_53_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/09/04/image_23012025_09_04_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/09/04/image_23012025_09_04_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/09/04/image_23012025_09_04_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/04/image_23012025_09_04_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/04/image_23012025_09_04_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79dbc438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79dbc438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79dbc438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:05:32.551562
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/05/image_23012025_09_05_53_6243.jpg', 2), ('/home/nano/Desktop/images/23012025/09/05/image_23012025_09_05_46_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/09/05/image_23012025_09_05_40_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/09/05/image_23012025_09_05_34_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/09/05/image_23012025_09_05_29_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/05/image_23012025_09_05_23_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8953f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8953f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8953f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:06:03.385494
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/05/image_23012025_09_05_53_6243.jpg', 2), ('/home/nano/Desktop/images/23012025/09/05/image_23012025_09_05_46_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/09/05/image_23012025_09_05_40_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/09/05/image_23012025_09_05_34_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/09/05/image_23012025_09_05_29_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/05/image_23012025_09_05_23_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9156d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9156d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9156d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:06:32.649184
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/06/image_23012025_09_06_53_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/06/image_23012025_09_06_46_6216.jpg', 2), ('/home/nano/Desktop/images/23012025/09/06/image_23012025_09_06_40_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/06/image_23012025_09_06_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/09/06/image_23012025_09_06_28_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/09/06/image_23012025_09_06_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb10f24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb10f24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb10f24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:07:03.416950
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/06/image_23012025_09_06_53_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/06/image_23012025_09_06_46_6216.jpg', 2), ('/home/nano/Desktop/images/23012025/09/06/image_23012025_09_06_40_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/06/image_23012025_09_06_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/09/06/image_23012025_09_06_28_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/09/06/image_23012025_09_06_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad9e34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad9e34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad9e34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:07:32.752731
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/07/image_23012025_09_07_52_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/07/image_23012025_09_07_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/07/image_23012025_09_07_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/09/07/image_23012025_09_07_34_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/09/07/image_23012025_09_07_29_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/07/image_23012025_09_07_23_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b3824a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b3824a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b3824a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:08:02.464374
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/07/image_23012025_09_07_52_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/07/image_23012025_09_07_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/07/image_23012025_09_07_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/09/07/image_23012025_09_07_34_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/09/07/image_23012025_09_07_29_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/07/image_23012025_09_07_23_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f0bd438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f0bd438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f0bd438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:08:31.868146
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/08/image_23012025_09_08_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/09/08/image_23012025_09_08_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/09/08/image_23012025_09_08_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/08/image_23012025_09_08_16_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/08/image_23012025_09_08_10_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/09/08/image_23012025_09_08_04_5193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb00cc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb00cc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb00cc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:09:02.935182
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/08/image_23012025_09_08_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/09/08/image_23012025_09_08_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/09/08/image_23012025_09_08_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/08/image_23012025_09_08_16_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/08/image_23012025_09_08_10_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/09/08/image_23012025_09_08_04_5193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e8074a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e8074a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e8074a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:09:31.991552
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/09/image_23012025_09_09_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/09/image_23012025_09_09_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/09/image_23012025_09_09_40_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/09/09/image_23012025_09_09_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/09/image_23012025_09_09_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/09/image_23012025_09_09_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86ba04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86ba04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86ba04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:10:02.757156
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/09/image_23012025_09_09_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/09/image_23012025_09_09_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/09/image_23012025_09_09_40_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/09/09/image_23012025_09_09_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/09/image_23012025_09_09_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/09/image_23012025_09_09_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa50194a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa50194a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa50194a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:10:32.101266
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/10/image_23012025_09_10_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/10/image_23012025_09_10_40_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/09/10/image_23012025_09_10_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/10/image_23012025_09_10_29_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/10/image_23012025_09_10_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/10/image_23012025_09_10_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa235e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa235e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa235e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:11:03.155566
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/10/image_23012025_09_10_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/10/image_23012025_09_10_40_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/09/10/image_23012025_09_10_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/10/image_23012025_09_10_29_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/10/image_23012025_09_10_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/10/image_23012025_09_10_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f945944a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f945944a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f945944a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:11:32.262823
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/11/image_23012025_09_11_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/11/image_23012025_09_11_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/09/11/image_23012025_09_11_34_5195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/11/image_23012025_09_11_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/11/image_23012025_09_11_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/11/image_23012025_09_11_16_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafcf2438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafcf2438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafcf2438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:12:03.198129
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/11/image_23012025_09_11_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/11/image_23012025_09_11_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/09/11/image_23012025_09_11_34_5195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/11/image_23012025_09_11_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/11/image_23012025_09_11_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/11/image_23012025_09_11_16_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91d584a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91d584a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91d584a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:12:32.380643
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/12/image_23012025_09_12_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/09/12/image_23012025_09_12_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/12/image_23012025_09_12_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/12/image_23012025_09_12_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/12/image_23012025_09_12_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/12/image_23012025_09_12_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93d8d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93d8d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93d8d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:13:03.229290
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/12/image_23012025_09_12_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/09/12/image_23012025_09_12_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/12/image_23012025_09_12_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/12/image_23012025_09_12_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/12/image_23012025_09_12_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/12/image_23012025_09_12_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2db34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2db34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2db34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:13:32.468160
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/13/image_23012025_09_13_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/13/image_23012025_09_13_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/09/13/image_23012025_09_13_40_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/13/image_23012025_09_13_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/13/image_23012025_09_13_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/13/image_23012025_09_13_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f878994a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f878994a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f878994a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:14:03.430432
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/13/image_23012025_09_13_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/13/image_23012025_09_13_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/09/13/image_23012025_09_13_40_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/13/image_23012025_09_13_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/13/image_23012025_09_13_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/13/image_23012025_09_13_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb06f3438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb06f3438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb06f3438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:14:32.569976
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/14/image_23012025_09_14_52_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/09/14/image_23012025_09_14_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/09/14/image_23012025_09_14_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/14/image_23012025_09_14_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/14/image_23012025_09_14_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/14/image_23012025_09_14_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87be44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87be44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87be44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:15:03.563022
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/14/image_23012025_09_14_52_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/09/14/image_23012025_09_14_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/09/14/image_23012025_09_14_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/14/image_23012025_09_14_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/14/image_23012025_09_14_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/14/image_23012025_09_14_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c4f7438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c4f7438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c4f7438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:15:32.680470
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/15/image_23012025_09_15_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/15/image_23012025_09_15_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/09/15/image_23012025_09_15_40_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/09/15/image_23012025_09_15_35_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/09/15/image_23012025_09_15_28_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/09/15/image_23012025_09_15_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a7524a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a7524a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a7524a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:16:02.457300
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/15/image_23012025_09_15_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/15/image_23012025_09_15_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/09/15/image_23012025_09_15_40_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/09/15/image_23012025_09_15_35_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/09/15/image_23012025_09_15_28_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/09/15/image_23012025_09_15_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa55884a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa55884a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa55884a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:16:31.807110
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/16/image_23012025_09_16_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/09/16/image_23012025_09_16_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/16/image_23012025_09_16_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/16/image_23012025_09_16_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/16/image_23012025_09_16_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/16/image_23012025_09_16_16_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82799438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82799438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82799438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:17:02.848985
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/16/image_23012025_09_16_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/09/16/image_23012025_09_16_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/16/image_23012025_09_16_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/16/image_23012025_09_16_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/16/image_23012025_09_16_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/16/image_23012025_09_16_16_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafac1438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafac1438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafac1438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:17:31.932770
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/17/image_23012025_09_17_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/17/image_23012025_09_17_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/17/image_23012025_09_17_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/17/image_23012025_09_17_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/17/image_23012025_09_17_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/17/image_23012025_09_17_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7c6a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7c6a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7c6a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:18:02.537038
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/17/image_23012025_09_17_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/17/image_23012025_09_17_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/17/image_23012025_09_17_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/17/image_23012025_09_17_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/17/image_23012025_09_17_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/17/image_23012025_09_17_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f812514a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f812514a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f812514a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:18:32.006743
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/18/image_23012025_09_18_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/18/image_23012025_09_18_46_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/09/18/image_23012025_09_18_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/18/image_23012025_09_18_35_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/18/image_23012025_09_18_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/18/image_23012025_09_18_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f820274a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f820274a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f820274a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:19:03.399103
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/18/image_23012025_09_18_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/18/image_23012025_09_18_46_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/09/18/image_23012025_09_18_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/18/image_23012025_09_18_35_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/18/image_23012025_09_18_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/18/image_23012025_09_18_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb11734a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb11734a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb11734a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:19:32.094541
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/19/image_23012025_09_19_46_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/09/19/image_23012025_09_19_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/19/image_23012025_09_19_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/19/image_23012025_09_19_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/19/image_23012025_09_19_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/19/image_23012025_09_19_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa20484a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa20484a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa20484a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:20:02.695861
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/19/image_23012025_09_19_46_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/09/19/image_23012025_09_19_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/19/image_23012025_09_19_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/19/image_23012025_09_19_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/19/image_23012025_09_19_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/19/image_23012025_09_19_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faba6d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faba6d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faba6d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:20:32.179601
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/20/image_23012025_09_20_52_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/09/20/image_23012025_09_20_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/09/20/image_23012025_09_20_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/20/image_23012025_09_20_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/20/image_23012025_09_20_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/20/image_23012025_09_20_22_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1d194a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1d194a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1d194a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:21:03.169736
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/20/image_23012025_09_20_52_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/09/20/image_23012025_09_20_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/09/20/image_23012025_09_20_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/20/image_23012025_09_20_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/20/image_23012025_09_20_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/20/image_23012025_09_20_22_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f790db4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f790db4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f790db4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:21:32.285326
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/21/image_23012025_09_21_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/21/image_23012025_09_21_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/21/image_23012025_09_21_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/21/image_23012025_09_21_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/21/image_23012025_09_21_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/21/image_23012025_09_21_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d47d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d47d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d47d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:22:03.146700
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/21/image_23012025_09_21_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/21/image_23012025_09_21_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/21/image_23012025_09_21_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/21/image_23012025_09_21_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/21/image_23012025_09_21_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/21/image_23012025_09_21_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89ebf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89ebf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89ebf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:22:32.446744
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/22/image_23012025_09_22_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/22/image_23012025_09_22_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/22/image_23012025_09_22_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/22/image_23012025_09_22_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/22/image_23012025_09_22_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/22/image_23012025_09_22_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2ec14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2ec14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2ec14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:23:03.300297
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/22/image_23012025_09_22_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/22/image_23012025_09_22_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/22/image_23012025_09_22_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/22/image_23012025_09_22_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/22/image_23012025_09_22_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/22/image_23012025_09_22_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa43d94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa43d94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa43d94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:23:32.539841
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/23/image_23012025_09_23_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/23/image_23012025_09_23_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/23/image_23012025_09_23_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/23/image_23012025_09_23_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/23/image_23012025_09_23_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/23/image_23012025_09_23_16_5185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82b0d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82b0d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82b0d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:24:03.775382
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/23/image_23012025_09_23_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/23/image_23012025_09_23_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/23/image_23012025_09_23_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/23/image_23012025_09_23_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/23/image_23012025_09_23_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/23/image_23012025_09_23_16_5185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab6ae4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab6ae4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab6ae4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:24:32.679022
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/24/image_23012025_09_24_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/24/image_23012025_09_24_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/24/image_23012025_09_24_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/24/image_23012025_09_24_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/09/24/image_23012025_09_24_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/24/image_23012025_09_24_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a2494a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a2494a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a2494a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:25:02.560475
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/24/image_23012025_09_24_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/24/image_23012025_09_24_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/24/image_23012025_09_24_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/24/image_23012025_09_24_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/09/24/image_23012025_09_24_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/24/image_23012025_09_24_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f985ce438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f985ce438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f985ce438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:25:31.765864
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/25/image_23012025_09_25_52_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/09/25/image_23012025_09_25_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/25/image_23012025_09_25_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/25/image_23012025_09_25_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/25/image_23012025_09_25_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/25/image_23012025_09_25_22_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb06dc438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb06dc438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb06dc438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:26:02.401258
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/25/image_23012025_09_25_52_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/09/25/image_23012025_09_25_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/25/image_23012025_09_25_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/25/image_23012025_09_25_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/25/image_23012025_09_25_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/25/image_23012025_09_25_22_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95c164a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95c164a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95c164a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:26:31.847232
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/26/image_23012025_09_26_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/26/image_23012025_09_26_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/26/image_23012025_09_26_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/26/image_23012025_09_26_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/26/image_23012025_09_26_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/26/image_23012025_09_26_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a8b9438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a8b9438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a8b9438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:27:02.695808
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/26/image_23012025_09_26_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/26/image_23012025_09_26_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/26/image_23012025_09_26_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/26/image_23012025_09_26_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/26/image_23012025_09_26_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/26/image_23012025_09_26_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa263a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa263a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa263a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:27:31.939894
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/27/image_23012025_09_27_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/27/image_23012025_09_27_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/27/image_23012025_09_27_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/27/image_23012025_09_27_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/27/image_23012025_09_27_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/27/image_23012025_09_27_22_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81f0f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81f0f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81f0f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:28:02.860627
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/27/image_23012025_09_27_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/27/image_23012025_09_27_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/27/image_23012025_09_27_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/27/image_23012025_09_27_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/27/image_23012025_09_27_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/27/image_23012025_09_27_22_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cac24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cac24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cac24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:28:32.039655
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/28/image_23012025_09_28_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/28/image_23012025_09_28_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/09/28/image_23012025_09_28_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/28/image_23012025_09_28_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/28/image_23012025_09_28_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/28/image_23012025_09_28_22_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2c584a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2c584a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2c584a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:29:03.459794
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/28/image_23012025_09_28_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/28/image_23012025_09_28_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/09/28/image_23012025_09_28_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/28/image_23012025_09_28_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/28/image_23012025_09_28_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/28/image_23012025_09_28_22_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa57764a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa57764a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa57764a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:29:32.329440
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/29/image_23012025_09_29_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/29/image_23012025_09_29_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/29/image_23012025_09_29_40_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/09/29/image_23012025_09_29_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/29/image_23012025_09_29_22_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/09/29/image_23012025_09_29_17_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa871f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa871f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa871f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:30:03.078739
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/29/image_23012025_09_29_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/29/image_23012025_09_29_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/29/image_23012025_09_29_40_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/09/29/image_23012025_09_29_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/29/image_23012025_09_29_22_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/09/29/image_23012025_09_29_17_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88eb74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88eb74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88eb74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:30:32.413413
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/30/image_23012025_09_30_52_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/09/30/image_23012025_09_30_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/30/image_23012025_09_30_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/30/image_23012025_09_30_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/30/image_23012025_09_30_17_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/30/image_23012025_09_30_10_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f827f84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f827f84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f827f84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:31:03.565984
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/30/image_23012025_09_30_52_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/09/30/image_23012025_09_30_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/30/image_23012025_09_30_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/30/image_23012025_09_30_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/30/image_23012025_09_30_17_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/30/image_23012025_09_30_10_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98cc14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98cc14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98cc14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:31:32.523852
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/31/image_23012025_09_31_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/31/image_23012025_09_31_47_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/31/image_23012025_09_31_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/31/image_23012025_09_31_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/31/image_23012025_09_31_22_5194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/31/image_23012025_09_31_17_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faee4e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faee4e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faee4e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:32:03.257976
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/31/image_23012025_09_31_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/31/image_23012025_09_31_47_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/31/image_23012025_09_31_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/31/image_23012025_09_31_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/31/image_23012025_09_31_22_5194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/31/image_23012025_09_31_17_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89de84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89de84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89de84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:32:32.595417
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/32/image_23012025_09_32_52_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/09/32/image_23012025_09_32_47_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/32/image_23012025_09_32_40_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/32/image_23012025_09_32_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/09/32/image_23012025_09_32_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/32/image_23012025_09_32_17_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76718438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76718438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76718438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:33:03.503810
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/32/image_23012025_09_32_52_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/09/32/image_23012025_09_32_47_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/32/image_23012025_09_32_40_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/32/image_23012025_09_32_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/09/32/image_23012025_09_32_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/32/image_23012025_09_32_17_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa44394a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa44394a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa44394a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:33:32.782421
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/33/image_23012025_09_33_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/33/image_23012025_09_33_46_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/33/image_23012025_09_33_40_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/33/image_23012025_09_33_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/33/image_23012025_09_33_28_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/09/33/image_23012025_09_33_23_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb55634a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb55634a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb55634a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:34:02.838994
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/33/image_23012025_09_33_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/33/image_23012025_09_33_46_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/33/image_23012025_09_33_40_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/33/image_23012025_09_33_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/33/image_23012025_09_33_28_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/09/33/image_23012025_09_33_23_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85ff54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85ff54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85ff54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:34:31.853157
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/34/image_23012025_09_34_53_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/34/image_23012025_09_34_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/34/image_23012025_09_34_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/09/34/image_23012025_09_34_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/34/image_23012025_09_34_28_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/09/34/image_23012025_09_34_23_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa63d34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa63d34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa63d34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:35:02.962492
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/34/image_23012025_09_34_53_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/34/image_23012025_09_34_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/34/image_23012025_09_34_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/09/34/image_23012025_09_34_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/34/image_23012025_09_34_28_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/09/34/image_23012025_09_34_23_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0d6b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0d6b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0d6b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:35:31.968888
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/35/image_23012025_09_35_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/09/35/image_23012025_09_35_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/09/35/image_23012025_09_35_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/09/35/image_23012025_09_35_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/35/image_23012025_09_35_28_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/09/35/image_23012025_09_35_23_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f994974a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f994974a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f994974a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:36:02.806571
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/35/image_23012025_09_35_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/09/35/image_23012025_09_35_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/09/35/image_23012025_09_35_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/09/35/image_23012025_09_35_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/35/image_23012025_09_35_28_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/09/35/image_23012025_09_35_23_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f914af4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f914af4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f914af4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:36:32.053368
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/36/image_23012025_09_36_52_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/09/36/image_23012025_09_36_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/36/image_23012025_09_36_34_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/09/36/image_23012025_09_36_29_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/36/image_23012025_09_36_22_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/09/36/image_23012025_09_36_16_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e4724a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e4724a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e4724a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:37:02.967243
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/36/image_23012025_09_36_52_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/09/36/image_23012025_09_36_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/36/image_23012025_09_36_34_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/09/36/image_23012025_09_36_29_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/36/image_23012025_09_36_22_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/09/36/image_23012025_09_36_16_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e68a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e68a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e68a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:37:32.179747
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_34_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_29_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8415d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8415d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8415d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:38:02.932626
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_34_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_29_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f6014a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f6014a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f6014a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:38:32.276995
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_34_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_29_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cb584a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cb584a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cb584a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:39:03.592560
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/39/image_23012025_09_39_10_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_34_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_29_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7facbe2438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facbe2438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facbe2438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:39:32.374284
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/39/image_23012025_09_39_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/39/image_23012025_09_39_16_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/39/image_23012025_09_39_10_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/09/39/image_23012025_09_39_05_6212.jpg', 2), ('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_59_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_52_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f773924a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f773924a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f773924a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:40:03.294454
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/39/image_23012025_09_39_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/39/image_23012025_09_39_16_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/39/image_23012025_09_39_10_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/09/39/image_23012025_09_39_05_6212.jpg', 2), ('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_59_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_52_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa20a54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa20a54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa20a54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:40:32.517320
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/39/image_23012025_09_39_58_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/39/image_23012025_09_39_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/39/image_23012025_09_39_16_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/39/image_23012025_09_39_10_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/09/39/image_23012025_09_39_05_6212.jpg', 2), ('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_59_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e3e54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e3e54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e3e54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:41:03.680965
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/39/image_23012025_09_39_58_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/39/image_23012025_09_39_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/39/image_23012025_09_39_16_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/39/image_23012025_09_39_10_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/09/39/image_23012025_09_39_05_6212.jpg', 2), ('/home/nano/Desktop/images/23012025/09/37/image_23012025_09_37_59_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa64f24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa64f24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa64f24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:41:32.659593
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/41/image_23012025_09_41_40_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/09/41/image_23012025_09_41_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/41/image_23012025_09_41_10_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/09/40/image_23012025_09_40_10_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/09/39/image_23012025_09_39_58_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/39/image_23012025_09_39_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fada274a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fada274a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fada274a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:42:03.454497
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/41/image_23012025_09_41_40_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/09/41/image_23012025_09_41_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/41/image_23012025_09_41_10_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/09/40/image_23012025_09_40_10_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/09/39/image_23012025_09_39_58_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/39/image_23012025_09_39_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b4854a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b4854a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b4854a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:42:32.786826
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/42/image_23012025_09_42_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/42/image_23012025_09_42_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/09/42/image_23012025_09_42_40_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/09/42/image_23012025_09_42_35_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/42/image_23012025_09_42_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/42/image_23012025_09_42_10_5201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa58fd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa58fd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa58fd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:43:02.740713
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/42/image_23012025_09_42_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/42/image_23012025_09_42_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/09/42/image_23012025_09_42_40_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/09/42/image_23012025_09_42_35_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/42/image_23012025_09_42_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/42/image_23012025_09_42_10_5201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fabc514a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabc514a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabc514a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:43:31.911484
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/43/image_23012025_09_43_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/43/image_23012025_09_43_46_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/09/43/image_23012025_09_43_41_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/43/image_23012025_09_43_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/43/image_23012025_09_43_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/43/image_23012025_09_43_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88bd14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88bd14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88bd14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:44:03.212570
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/44/image_23012025_09_44_22_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/43/image_23012025_09_43_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/43/image_23012025_09_43_46_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/09/43/image_23012025_09_43_41_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/43/image_23012025_09_43_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/43/image_23012025_09_43_28_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa185d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa185d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa185d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:44:32.000813
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/44/image_23012025_09_44_52_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/44/image_23012025_09_44_46_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/09/44/image_23012025_09_44_41_6223.jpg', 2), ('/home/nano/Desktop/images/23012025/09/44/image_23012025_09_44_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/44/image_23012025_09_44_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/44/image_23012025_09_44_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77b5d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77b5d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77b5d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:45:02.908155
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/44/image_23012025_09_44_52_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/44/image_23012025_09_44_46_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/09/44/image_23012025_09_44_41_6223.jpg', 2), ('/home/nano/Desktop/images/23012025/09/44/image_23012025_09_44_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/44/image_23012025_09_44_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/44/image_23012025_09_44_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a7684a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a7684a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a7684a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:45:32.154241
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/45/image_23012025_09_45_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/45/image_23012025_09_45_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/09/45/image_23012025_09_45_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/09/45/image_23012025_09_45_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/45/image_23012025_09_45_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/09/45/image_23012025_09_45_22_5181.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f969cb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f969cb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f969cb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:46:03.080840
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/45/image_23012025_09_45_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/45/image_23012025_09_45_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/09/45/image_23012025_09_45_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/09/45/image_23012025_09_45_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/45/image_23012025_09_45_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/09/45/image_23012025_09_45_22_5181.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9308d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9308d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9308d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:46:32.247527
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/46/image_23012025_09_46_52_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/09/46/image_23012025_09_46_47_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/46/image_23012025_09_46_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/46/image_23012025_09_46_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/46/image_23012025_09_46_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/46/image_23012025_09_46_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f881c64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f881c64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f881c64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:47:03.156609
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/46/image_23012025_09_46_52_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/09/46/image_23012025_09_46_47_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/46/image_23012025_09_46_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/46/image_23012025_09_46_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/46/image_23012025_09_46_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/46/image_23012025_09_46_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f846324a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f846324a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f846324a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:47:32.330481
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/47/image_23012025_09_47_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/47/image_23012025_09_47_22_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/09/47/image_23012025_09_47_10_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/09/46/image_23012025_09_47_04_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/46/image_23012025_09_46_58_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/46/image_23012025_09_46_52_5182.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c4834a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c4834a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c4834a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:48:03.086559
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/47/image_23012025_09_47_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/47/image_23012025_09_47_22_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/09/47/image_23012025_09_47_10_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/09/46/image_23012025_09_47_04_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/46/image_23012025_09_46_58_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/46/image_23012025_09_46_52_5182.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1af64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1af64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1af64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:48:32.439293
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/47/image_23012025_09_47_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/47/image_23012025_09_47_22_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/09/47/image_23012025_09_47_10_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/09/46/image_23012025_09_47_04_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/46/image_23012025_09_46_58_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/46/image_23012025_09_46_52_5182.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fead4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fead4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fead4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:49:03.770402
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/49/image_23012025_09_49_53_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/09/47/image_23012025_09_47_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/47/image_23012025_09_47_22_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/09/47/image_23012025_09_47_10_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/09/46/image_23012025_09_47_04_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/46/image_23012025_09_46_58_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9705e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9705e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9705e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:49:32.561065
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/49/image_23012025_09_49_53_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/09/49/image_23012025_09_49_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/49/image_23012025_09_49_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/47/image_23012025_09_47_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/47/image_23012025_09_47_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/47/image_23012025_09_47_22_5184.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84c994a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84c994a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84c994a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:50:03.462712
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/49/image_23012025_09_49_53_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/09/49/image_23012025_09_49_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/49/image_23012025_09_49_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/47/image_23012025_09_47_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/47/image_23012025_09_47_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/47/image_23012025_09_47_22_5184.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa76dd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa76dd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa76dd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:50:32.619815
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/50/image_23012025_09_50_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/50/image_23012025_09_50_46_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/09/50/image_23012025_09_50_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/50/image_23012025_09_50_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/50/image_23012025_09_50_28_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/09/50/image_23012025_09_50_23_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8072f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8072f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8072f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:51:03.701403
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/50/image_23012025_09_50_53_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/50/image_23012025_09_50_46_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/09/50/image_23012025_09_50_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/50/image_23012025_09_50_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/50/image_23012025_09_50_28_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/09/50/image_23012025_09_50_23_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98f8c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98f8c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98f8c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:51:32.739657
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/51/image_23012025_09_51_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/51/image_23012025_09_51_46_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/09/51/image_23012025_09_51_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/51/image_23012025_09_51_34_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/09/51/image_23012025_09_51_29_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/51/image_23012025_09_51_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f797b24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f797b24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f797b24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:52:02.720349
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/51/image_23012025_09_51_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/51/image_23012025_09_51_46_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/09/51/image_23012025_09_51_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/51/image_23012025_09_51_34_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/09/51/image_23012025_09_51_29_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/51/image_23012025_09_51_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f786974a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f786974a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f786974a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:52:31.839866
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/52/image_23012025_09_52_52_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/09/52/image_23012025_09_52_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/09/52/image_23012025_09_52_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/52/image_23012025_09_52_34_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/09/52/image_23012025_09_52_29_6223.jpg', 2), ('/home/nano/Desktop/images/23012025/09/52/image_23012025_09_52_22_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb06a84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb06a84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb06a84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:53:02.817393
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/52/image_23012025_09_52_52_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/09/52/image_23012025_09_52_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/09/52/image_23012025_09_52_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/52/image_23012025_09_52_34_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/09/52/image_23012025_09_52_29_6223.jpg', 2), ('/home/nano/Desktop/images/23012025/09/52/image_23012025_09_52_22_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f887504a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f887504a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f887504a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:53:31.973871
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/53/image_23012025_09_53_52_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/53/image_23012025_09_53_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/09/53/image_23012025_09_53_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/09/53/image_23012025_09_53_34_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/09/53/image_23012025_09_53_29_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/09/53/image_23012025_09_53_22_6267.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faaead4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaead4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaead4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:54:03.216288
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/53/image_23012025_09_53_52_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/09/53/image_23012025_09_53_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/09/53/image_23012025_09_53_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/09/53/image_23012025_09_53_34_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/09/53/image_23012025_09_53_29_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/09/53/image_23012025_09_53_22_6267.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85a624a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85a624a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85a624a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:54:32.089224
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/54/image_23012025_09_54_52_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/54/image_23012025_09_54_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/09/54/image_23012025_09_54_40_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/09/54/image_23012025_09_54_35_6185.jpg', 2), ('/home/nano/Desktop/images/23012025/09/54/image_23012025_09_54_29_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/09/54/image_23012025_09_54_22_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92f4b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92f4b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92f4b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:55:03.184304
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/54/image_23012025_09_54_52_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/09/54/image_23012025_09_54_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/09/54/image_23012025_09_54_40_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/09/54/image_23012025_09_54_35_6185.jpg', 2), ('/home/nano/Desktop/images/23012025/09/54/image_23012025_09_54_29_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/09/54/image_23012025_09_54_22_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad24e4e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad24e4e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad24e4e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:55:32.211266
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/55/image_23012025_09_55_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/55/image_23012025_09_55_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/09/55/image_23012025_09_55_40_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/09/55/image_23012025_09_55_35_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/55/image_23012025_09_55_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/55/image_23012025_09_55_22_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ace94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ace94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ace94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:56:03.023933
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/55/image_23012025_09_55_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/55/image_23012025_09_55_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/09/55/image_23012025_09_55_40_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/09/55/image_23012025_09_55_35_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/55/image_23012025_09_55_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/09/55/image_23012025_09_55_22_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb020d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb020d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb020d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:56:32.314132
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/56/image_23012025_09_56_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/56/image_23012025_09_56_46_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/09/56/image_23012025_09_56_41_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/56/image_23012025_09_56_35_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/56/image_23012025_09_56_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/56/image_23012025_09_56_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95ccb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95ccb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95ccb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:57:03.235601
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/56/image_23012025_09_56_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/09/56/image_23012025_09_56_46_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/09/56/image_23012025_09_56_41_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/56/image_23012025_09_56_35_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/56/image_23012025_09_56_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/56/image_23012025_09_56_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa433a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa433a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa433a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:57:32.411178
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/57/image_23012025_09_57_52_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/09/57/image_23012025_09_57_46_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/09/57/image_23012025_09_57_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/57/image_23012025_09_57_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/09/57/image_23012025_09_57_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/09/57/image_23012025_09_57_22_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6cc04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6cc04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6cc04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:59:03.719171
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/58/image_23012025_09_58_52_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/09/58/image_23012025_09_58_46_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/09/58/image_23012025_09_58_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/58/image_23012025_09_58_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/58/image_23012025_09_58_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/58/image_23012025_09_58_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f911544a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f911544a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f911544a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 09:59:32.430336
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/59/image_23012025_09_59_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/59/image_23012025_09_59_46_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/09/59/image_23012025_09_59_41_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/59/image_23012025_09_59_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/59/image_23012025_09_59_28_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/09/59/image_23012025_09_59_22_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb09594e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb09594e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb09594e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:00:03.400462
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/09/59/image_23012025_09_59_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/09/59/image_23012025_09_59_46_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/09/59/image_23012025_09_59_41_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/09/59/image_23012025_09_59_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/09/59/image_23012025_09_59_28_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/09/59/image_23012025_09_59_22_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb13514a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb13514a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb13514a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:00:32.555887
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/00/image_23012025_10_00_52_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/10/00/image_23012025_10_00_47_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/00/image_23012025_10_00_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/00/image_23012025_10_00_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/00/image_23012025_10_00_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/00/image_23012025_10_00_22_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96b2f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96b2f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96b2f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:01:03.388453
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/00/image_23012025_10_00_52_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/10/00/image_23012025_10_00_47_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/00/image_23012025_10_00_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/00/image_23012025_10_00_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/00/image_23012025_10_00_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/00/image_23012025_10_00_22_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b3fb438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b3fb438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b3fb438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:01:32.652511
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/01/image_23012025_10_01_52_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/10/01/image_23012025_10_01_47_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/10/01/image_23012025_10_01_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/01/image_23012025_10_01_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/01/image_23012025_10_01_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/01/image_23012025_10_01_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac4014a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac4014a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac4014a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:02:02.512148
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/01/image_23012025_10_01_52_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/10/01/image_23012025_10_01_47_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/10/01/image_23012025_10_01_40_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/01/image_23012025_10_01_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/01/image_23012025_10_01_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/01/image_23012025_10_01_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e7884a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e7884a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e7884a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:02:31.782342
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/02/image_23012025_10_02_53_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/10/02/image_23012025_10_02_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/10/02/image_23012025_10_02_40_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/10/02/image_23012025_10_02_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/10/02/image_23012025_10_02_28_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/10/02/image_23012025_10_02_23_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad8884a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad8884a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad8884a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:03:02.837810
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/02/image_23012025_10_02_53_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/10/02/image_23012025_10_02_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/10/02/image_23012025_10_02_40_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/10/02/image_23012025_10_02_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/10/02/image_23012025_10_02_28_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/10/02/image_23012025_10_02_23_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fa6c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fa6c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fa6c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:03:31.864512
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/03/image_23012025_10_03_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/10/03/image_23012025_10_03_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/03/image_23012025_10_03_40_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/10/03/image_23012025_10_03_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/10/03/image_23012025_10_03_28_5175.jpg', 2), ('/home/nano/Desktop/images/23012025/10/03/image_23012025_10_03_23_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c7a84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c7a84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c7a84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:04:02.939659
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/03/image_23012025_10_03_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/10/03/image_23012025_10_03_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/03/image_23012025_10_03_40_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/10/03/image_23012025_10_03_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/10/03/image_23012025_10_03_28_5175.jpg', 2), ('/home/nano/Desktop/images/23012025/10/03/image_23012025_10_03_23_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5c594a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5c594a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5c594a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:04:31.984621
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/04/image_23012025_10_04_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/10/04/image_23012025_10_04_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/10/04/image_23012025_10_04_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/04/image_23012025_10_04_34_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/10/04/image_23012025_10_04_29_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/10/04/image_23012025_10_04_23_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f777234a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f777234a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f777234a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:05:02.928226
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/04/image_23012025_10_04_52_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/10/04/image_23012025_10_04_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/10/04/image_23012025_10_04_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/04/image_23012025_10_04_34_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/10/04/image_23012025_10_04_29_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/10/04/image_23012025_10_04_23_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3ac74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3ac74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3ac74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:05:32.081082
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/05/image_23012025_10_05_52_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/05/image_23012025_10_05_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/05/image_23012025_10_05_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/10/05/image_23012025_10_05_34_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/10/05/image_23012025_10_05_29_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/05/image_23012025_10_05_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f4394a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f4394a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f4394a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:06:02.899356
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/05/image_23012025_10_05_52_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/05/image_23012025_10_05_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/05/image_23012025_10_05_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/10/05/image_23012025_10_05_34_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/10/05/image_23012025_10_05_29_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/05/image_23012025_10_05_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2edc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2edc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2edc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:06:32.176503
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/06/image_23012025_10_06_52_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/10/06/image_23012025_10_06_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/10/06/image_23012025_10_06_40_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/10/06/image_23012025_10_06_35_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/10/06/image_23012025_10_06_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/06/image_23012025_10_06_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f9154a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f9154a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f9154a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:07:03.003720
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/06/image_23012025_10_06_52_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/10/06/image_23012025_10_06_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/10/06/image_23012025_10_06_40_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/10/06/image_23012025_10_06_35_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/10/06/image_23012025_10_06_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/06/image_23012025_10_06_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d5eb438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d5eb438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d5eb438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:07:32.317410
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/07/image_23012025_10_07_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/07/image_23012025_10_07_46_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/10/07/image_23012025_10_07_41_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/07/image_23012025_10_07_35_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/07/image_23012025_10_07_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/10/07/image_23012025_10_07_22_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f63b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f63b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f63b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:08:03.124335
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/07/image_23012025_10_07_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/07/image_23012025_10_07_46_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/10/07/image_23012025_10_07_41_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/07/image_23012025_10_07_35_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/07/image_23012025_10_07_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/10/07/image_23012025_10_07_22_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa99504a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa99504a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa99504a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:08:32.399654
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/08/image_23012025_10_08_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/08/image_23012025_10_08_46_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/08/image_23012025_10_08_41_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/10/08/image_23012025_10_08_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/10/08/image_23012025_10_08_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/10/08/image_23012025_10_08_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac8d04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac8d04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac8d04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:09:03.315984
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/08/image_23012025_10_08_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/08/image_23012025_10_08_46_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/08/image_23012025_10_08_41_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/10/08/image_23012025_10_08_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/10/08/image_23012025_10_08_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/10/08/image_23012025_10_08_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f997404a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f997404a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f997404a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:09:32.505309
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/09/image_23012025_10_09_46_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/10/09/image_23012025_10_09_41_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/10/09/image_23012025_10_09_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/09/image_23012025_10_09_28_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/10/09/image_23012025_10_09_16_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/10/09/image_23012025_10_09_11_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b22b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b22b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b22b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:10:03.349962
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/10/image_23012025_10_10_11_6213.jpg', 2), ('/home/nano/Desktop/images/23012025/10/09/image_23012025_10_09_46_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/10/09/image_23012025_10_09_41_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/10/09/image_23012025_10_09_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/09/image_23012025_10_09_28_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/10/09/image_23012025_10_09_16_5184.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb212a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb212a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb212a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:10:32.612023
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/10/image_23012025_10_10_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/10/image_23012025_10_10_46_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/10/10/image_23012025_10_10_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/10/10/image_23012025_10_10_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/10/10/image_23012025_10_10_28_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/10/10/image_23012025_10_10_22_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb15c44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb15c44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb15c44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:11:03.661721
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/10/image_23012025_10_10_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/10/image_23012025_10_10_46_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/10/10/image_23012025_10_10_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/10/10/image_23012025_10_10_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/10/10/image_23012025_10_10_28_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/10/10/image_23012025_10_10_22_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab5a24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab5a24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab5a24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:11:32.728842
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/11/image_23012025_10_11_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/11/image_23012025_10_11_47_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/10/11/image_23012025_10_11_41_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/11/image_23012025_10_11_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/10/11/image_23012025_10_11_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/11/image_23012025_10_11_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fadfea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadfea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadfea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:12:02.503077
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/11/image_23012025_10_11_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/11/image_23012025_10_11_47_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/10/11/image_23012025_10_11_41_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/11/image_23012025_10_11_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/10/11/image_23012025_10_11_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/11/image_23012025_10_11_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5db64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5db64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5db64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:12:31.799059
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/12/image_23012025_10_12_52_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/10/12/image_23012025_10_12_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/12/image_23012025_10_12_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/12/image_23012025_10_12_22_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/10/12/image_23012025_10_12_17_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/12/image_23012025_10_12_10_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f06b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f06b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f06b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:13:03.047610
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/12/image_23012025_10_12_52_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/10/12/image_23012025_10_12_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/12/image_23012025_10_12_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/12/image_23012025_10_12_22_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/10/12/image_23012025_10_12_17_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/12/image_23012025_10_12_10_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4ef34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4ef34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4ef34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:13:31.946989
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/13/image_23012025_10_13_52_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/10/13/image_23012025_10_13_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/13/image_23012025_10_13_22_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/13/image_23012025_10_13_10_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/10/12/image_23012025_10_12_58_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/12/image_23012025_10_12_52_5185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9183e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9183e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9183e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:14:03.099886
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/13/image_23012025_10_13_52_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/10/13/image_23012025_10_13_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/13/image_23012025_10_13_22_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/13/image_23012025_10_13_10_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/10/12/image_23012025_10_12_58_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/12/image_23012025_10_12_52_5185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f852c14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f852c14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f852c14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:14:32.114076
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/14/image_23012025_10_14_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/14/image_23012025_10_14_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/14/image_23012025_10_14_10_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/10/13/image_23012025_10_14_04_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/10/13/image_23012025_10_13_58_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/10/13/image_23012025_10_13_52_5185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a5e94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a5e94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a5e94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:15:03.153190
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/15/image_23012025_10_15_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/14/image_23012025_10_14_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/14/image_23012025_10_14_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/14/image_23012025_10_14_10_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/10/13/image_23012025_10_14_04_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/10/13/image_23012025_10_13_58_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fc274a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fc274a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fc274a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:15:32.198022
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/15/image_23012025_10_15_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/15/image_23012025_10_15_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/15/image_23012025_10_15_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/15/image_23012025_10_15_17_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/15/image_23012025_10_15_10_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/10/14/image_23012025_10_15_04_6205.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fada394a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fada394a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fada394a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:16:03.098416
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/15/image_23012025_10_15_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/15/image_23012025_10_15_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/15/image_23012025_10_15_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/15/image_23012025_10_15_17_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/15/image_23012025_10_15_10_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/10/14/image_23012025_10_15_04_6205.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e4064a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e4064a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e4064a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:16:32.298194
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/16/image_23012025_10_16_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/15/image_23012025_10_15_58_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/10/15/image_23012025_10_15_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/15/image_23012025_10_15_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/15/image_23012025_10_15_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/15/image_23012025_10_15_17_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8155a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8155a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8155a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:17:03.303952
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/16/image_23012025_10_16_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/15/image_23012025_10_15_58_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/10/15/image_23012025_10_15_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/15/image_23012025_10_15_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/15/image_23012025_10_15_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/15/image_23012025_10_15_17_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b471438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b471438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b471438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:17:32.415197
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/17/image_23012025_10_17_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/17/image_23012025_10_17_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/17/image_23012025_10_17_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/10/17/image_23012025_10_17_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/16/image_23012025_10_17_04_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/10/16/image_23012025_10_16_53_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7928b438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7928b438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7928b438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:18:03.101576
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/17/image_23012025_10_17_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/17/image_23012025_10_17_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/17/image_23012025_10_17_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/10/17/image_23012025_10_17_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/16/image_23012025_10_17_04_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/10/16/image_23012025_10_16_53_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8e2f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8e2f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8e2f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:18:32.507409
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/18/image_23012025_10_18_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/18/image_23012025_10_18_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/17/image_23012025_10_18_04_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/10/17/image_23012025_10_17_58_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/17/image_23012025_10_17_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/17/image_23012025_10_17_40_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c503438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c503438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c503438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:19:03.935969
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/18/image_23012025_10_18_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/18/image_23012025_10_18_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/17/image_23012025_10_18_04_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/10/17/image_23012025_10_17_58_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/17/image_23012025_10_17_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/17/image_23012025_10_17_40_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f857c34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f857c34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f857c34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:19:32.706338
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/18/image_23012025_10_18_58_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/10/18/image_23012025_10_18_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/18/image_23012025_10_18_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/17/image_23012025_10_18_04_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/10/17/image_23012025_10_17_58_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/17/image_23012025_10_17_53_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb53644a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb53644a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb53644a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:20:02.673705
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/18/image_23012025_10_18_58_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/10/18/image_23012025_10_18_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/18/image_23012025_10_18_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/17/image_23012025_10_18_04_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/10/17/image_23012025_10_17_58_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/17/image_23012025_10_17_53_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91d96438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91d96438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91d96438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:20:31.798629
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/20/image_23012025_10_20_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/10/20/image_23012025_10_20_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/20/image_23012025_10_20_16_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/19/image_23012025_10_19_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/18/image_23012025_10_18_58_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/10/18/image_23012025_10_18_53_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9dea84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dea84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dea84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:21:02.757605
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/20/image_23012025_10_20_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/10/20/image_23012025_10_20_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/20/image_23012025_10_20_16_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/19/image_23012025_10_19_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/18/image_23012025_10_18_58_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/10/18/image_23012025_10_18_53_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f15e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f15e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f15e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:21:31.925348
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/21/image_23012025_10_21_16_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/10/21/image_23012025_10_21_10_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/10/20/image_23012025_10_20_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/20/image_23012025_10_20_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/10/20/image_23012025_10_20_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/20/image_23012025_10_20_16_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82ac4438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82ac4438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82ac4438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:22:02.674716
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/21/image_23012025_10_21_16_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/10/21/image_23012025_10_21_10_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/10/20/image_23012025_10_20_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/20/image_23012025_10_20_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/10/20/image_23012025_10_20_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/20/image_23012025_10_20_16_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b51b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b51b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b51b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:22:31.999481
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/22/image_23012025_10_22_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/21/image_23012025_10_21_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/21/image_23012025_10_21_16_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/10/21/image_23012025_10_21_10_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/10/20/image_23012025_10_20_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/20/image_23012025_10_20_40_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b8f14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b8f14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b8f14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:23:02.972343
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/22/image_23012025_10_22_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/21/image_23012025_10_21_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/21/image_23012025_10_21_16_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/10/21/image_23012025_10_21_10_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/10/20/image_23012025_10_20_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/20/image_23012025_10_20_40_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa64584a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa64584a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa64584a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:23:32.101602
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/23/image_23012025_10_23_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/23/image_23012025_10_23_34_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/10/23/image_23012025_10_23_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/22/image_23012025_10_22_34_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/10/22/image_23012025_10_22_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/21/image_23012025_10_21_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f995ad4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f995ad4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f995ad4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:24:02.947401
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/23/image_23012025_10_23_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/23/image_23012025_10_23_34_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/10/23/image_23012025_10_23_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/22/image_23012025_10_22_34_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/10/22/image_23012025_10_22_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/21/image_23012025_10_21_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa359d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa359d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa359d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:24:32.235657
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/23/image_23012025_10_24_04_6217.jpg', 2), ('/home/nano/Desktop/images/23012025/10/23/image_23012025_10_23_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/23/image_23012025_10_23_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/23/image_23012025_10_23_34_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/10/23/image_23012025_10_23_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/22/image_23012025_10_22_34_6205.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d6454a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d6454a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d6454a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:25:03.273576
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/23/image_23012025_10_24_04_6217.jpg', 2), ('/home/nano/Desktop/images/23012025/10/23/image_23012025_10_23_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/23/image_23012025_10_23_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/23/image_23012025_10_23_34_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/10/23/image_23012025_10_23_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/22/image_23012025_10_22_34_6205.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f989e94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f989e94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f989e94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:25:32.385788
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/25/image_23012025_10_25_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/25/image_23012025_10_25_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/25/image_23012025_10_25_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/10/25/image_23012025_10_25_34_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/10/25/image_23012025_10_25_29_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/10/25/image_23012025_10_25_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ff66438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ff66438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ff66438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:26:03.091429
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/25/image_23012025_10_25_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/25/image_23012025_10_25_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/25/image_23012025_10_25_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/10/25/image_23012025_10_25_34_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/10/25/image_23012025_10_25_29_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/10/25/image_23012025_10_25_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf7b44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf7b44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf7b44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:26:32.494748
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/26/image_23012025_10_26_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/26/image_23012025_10_26_46_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/10/26/image_23012025_10_26_40_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/10/26/image_23012025_10_26_35_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/10/26/image_23012025_10_26_29_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/10/26/image_23012025_10_26_22_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f835684a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f835684a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f835684a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:27:03.519927
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/26/image_23012025_10_26_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/26/image_23012025_10_26_46_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/10/26/image_23012025_10_26_40_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/10/26/image_23012025_10_26_35_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/10/26/image_23012025_10_26_29_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/10/26/image_23012025_10_26_22_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7af374a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7af374a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7af374a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:27:32.572338
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/27/image_23012025_10_27_52_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/10/27/image_23012025_10_27_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/27/image_23012025_10_27_40_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/10/27/image_23012025_10_27_35_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/10/27/image_23012025_10_27_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/27/image_23012025_10_27_22_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98d6e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98d6e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98d6e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:28:03.627620
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/27/image_23012025_10_27_52_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/10/27/image_23012025_10_27_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/27/image_23012025_10_27_40_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/10/27/image_23012025_10_27_35_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/10/27/image_23012025_10_27_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/27/image_23012025_10_27_22_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99d6c438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99d6c438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99d6c438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:28:32.674612
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/28/image_23012025_10_28_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/28/image_23012025_10_28_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/28/image_23012025_10_28_40_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/10/28/image_23012025_10_28_35_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/10/28/image_23012025_10_28_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/10/28/image_23012025_10_28_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa99a84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa99a84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa99a84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:29:03.069063
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/28/image_23012025_10_28_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/28/image_23012025_10_28_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/28/image_23012025_10_28_40_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/10/28/image_23012025_10_28_35_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/10/28/image_23012025_10_28_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/10/28/image_23012025_10_28_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f964654a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f964654a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f964654a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:29:31.873706
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/29/image_23012025_10_29_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/29/image_23012025_10_29_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/10/29/image_23012025_10_29_41_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/10/29/image_23012025_10_29_34_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/29/image_23012025_10_29_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/29/image_23012025_10_29_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf48b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf48b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf48b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:30:02.584220
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/29/image_23012025_10_29_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/29/image_23012025_10_29_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/10/29/image_23012025_10_29_41_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/10/29/image_23012025_10_29_34_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/29/image_23012025_10_29_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/29/image_23012025_10_29_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95e0e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95e0e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95e0e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:30:31.957097
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/30/image_23012025_10_30_52_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/10/30/image_23012025_10_30_46_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/10/30/image_23012025_10_30_41_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/30/image_23012025_10_30_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/30/image_23012025_10_30_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/10/30/image_23012025_10_30_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81b234a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81b234a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81b234a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:31:02.685103
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/30/image_23012025_10_30_52_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/10/30/image_23012025_10_30_46_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/10/30/image_23012025_10_30_41_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/30/image_23012025_10_30_34_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/30/image_23012025_10_30_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/10/30/image_23012025_10_30_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e4a64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e4a64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e4a64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:31:32.086971
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/31/image_23012025_10_31_52_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/10/31/image_23012025_10_31_47_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/10/31/image_23012025_10_31_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/10/31/image_23012025_10_31_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/31/image_23012025_10_31_28_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/10/31/image_23012025_10_31_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2b804a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2b804a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2b804a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:32:02.850878
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/31/image_23012025_10_31_52_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/10/31/image_23012025_10_31_47_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/10/31/image_23012025_10_31_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/10/31/image_23012025_10_31_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/31/image_23012025_10_31_28_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/10/31/image_23012025_10_31_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e5ca4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e5ca4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e5ca4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:32:32.197742
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/32/image_23012025_10_32_52_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/10/32/image_23012025_10_32_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/10/32/image_23012025_10_32_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/10/32/image_23012025_10_32_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/32/image_23012025_10_32_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/10/32/image_23012025_10_32_22_5184.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f777cb438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f777cb438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f777cb438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:33:03.287839
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/32/image_23012025_10_32_52_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/10/32/image_23012025_10_32_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/10/32/image_23012025_10_32_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/10/32/image_23012025_10_32_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/32/image_23012025_10_32_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/10/32/image_23012025_10_32_22_5184.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f840274a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f840274a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f840274a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:33:32.304879
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/33/image_23012025_10_33_52_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/10/33/image_23012025_10_33_47_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/33/image_23012025_10_33_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/10/33/image_23012025_10_33_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/10/33/image_23012025_10_33_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/33/image_23012025_10_33_22_5184.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91d874a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91d874a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91d874a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:34:03.512667
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/33/image_23012025_10_33_52_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/10/33/image_23012025_10_33_47_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/33/image_23012025_10_33_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/10/33/image_23012025_10_33_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/10/33/image_23012025_10_33_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/33/image_23012025_10_33_22_5184.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5867438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5867438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5867438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:34:32.393588
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/34/image_23012025_10_34_53_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/10/34/image_23012025_10_34_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/34/image_23012025_10_34_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/34/image_23012025_10_34_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/34/image_23012025_10_34_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/34/image_23012025_10_34_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8efde438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8efde438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8efde438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:35:03.430183
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/34/image_23012025_10_34_53_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/10/34/image_23012025_10_34_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/34/image_23012025_10_34_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/34/image_23012025_10_34_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/34/image_23012025_10_34_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/34/image_23012025_10_34_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d91d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d91d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d91d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:35:32.516898
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/35/image_23012025_10_35_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/35/image_23012025_10_35_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/35/image_23012025_10_35_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/35/image_23012025_10_35_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/35/image_23012025_10_35_23_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/10/35/image_23012025_10_35_17_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa49aa438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa49aa438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa49aa438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:36:03.304329
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/35/image_23012025_10_35_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/35/image_23012025_10_35_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/35/image_23012025_10_35_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/35/image_23012025_10_35_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/35/image_23012025_10_35_23_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/10/35/image_23012025_10_35_17_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f831da4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f831da4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f831da4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:36:32.622536
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/36/image_23012025_10_36_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/36/image_23012025_10_36_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/36/image_23012025_10_36_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/36/image_23012025_10_36_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/10/36/image_23012025_10_36_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/36/image_23012025_10_36_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88858438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88858438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88858438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:37:03.646312
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/36/image_23012025_10_36_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/36/image_23012025_10_36_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/36/image_23012025_10_36_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/36/image_23012025_10_36_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/10/36/image_23012025_10_36_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/36/image_23012025_10_36_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97921438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97921438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97921438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:37:32.699764
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/37/image_23012025_10_37_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/37/image_23012025_10_37_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/37/image_23012025_10_37_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/37/image_23012025_10_37_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/37/image_23012025_10_37_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/37/image_23012025_10_37_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f8924a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f8924a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f8924a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:38:02.444635
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/37/image_23012025_10_37_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/37/image_23012025_10_37_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/37/image_23012025_10_37_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/37/image_23012025_10_37_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/37/image_23012025_10_37_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/37/image_23012025_10_37_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94d35438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94d35438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94d35438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:38:31.782134
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/38/image_23012025_10_38_53_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/10/38/image_23012025_10_38_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/38/image_23012025_10_38_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/38/image_23012025_10_38_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/10/38/image_23012025_10_38_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/38/image_23012025_10_38_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8966c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8966c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8966c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:39:03.134606
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/38/image_23012025_10_38_53_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/10/38/image_23012025_10_38_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/38/image_23012025_10_38_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/38/image_23012025_10_38_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/10/38/image_23012025_10_38_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/38/image_23012025_10_38_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f857044a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f857044a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f857044a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:39:31.895251
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/39/image_23012025_10_39_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/39/image_23012025_10_39_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/39/image_23012025_10_39_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/39/image_23012025_10_39_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/39/image_23012025_10_39_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/39/image_23012025_10_39_16_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ed304a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ed304a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ed304a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:40:02.701535
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/39/image_23012025_10_39_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/39/image_23012025_10_39_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/39/image_23012025_10_39_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/39/image_23012025_10_39_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/39/image_23012025_10_39_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/39/image_23012025_10_39_16_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4f4b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4f4b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4f4b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:40:32.090640
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/40/image_23012025_10_40_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/40/image_23012025_10_40_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/40/image_23012025_10_40_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/40/image_23012025_10_40_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/10/40/image_23012025_10_40_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/40/image_23012025_10_40_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ee334a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ee334a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ee334a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:41:03.097185
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/41/image_23012025_10_41_59_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/40/image_23012025_10_40_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/40/image_23012025_10_40_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/40/image_23012025_10_40_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/40/image_23012025_10_40_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/10/40/image_23012025_10_40_28_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93c9b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93c9b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93c9b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:41:32.181038
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/41/image_23012025_10_41_59_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/41/image_23012025_10_41_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/10/41/image_23012025_10_41_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/41/image_23012025_10_41_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/41/image_23012025_10_41_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/41/image_23012025_10_41_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f768aa4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f768aa4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f768aa4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:42:03.208648
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/41/image_23012025_10_41_59_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/41/image_23012025_10_41_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/10/41/image_23012025_10_41_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/41/image_23012025_10_41_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/41/image_23012025_10_41_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/41/image_23012025_10_41_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa00af4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa00af4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa00af4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:42:32.276147
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/42/image_23012025_10_42_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/42/image_23012025_10_42_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/10/42/image_23012025_10_42_40_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/10/42/image_23012025_10_42_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/42/image_23012025_10_42_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/42/image_23012025_10_42_23_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f926874a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f926874a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f926874a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:43:02.998770
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/42/image_23012025_10_42_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/42/image_23012025_10_42_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/10/42/image_23012025_10_42_40_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/10/42/image_23012025_10_42_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/42/image_23012025_10_42_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/42/image_23012025_10_42_23_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f881df4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f881df4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f881df4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:43:32.395337
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/43/image_23012025_10_43_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/43/image_23012025_10_43_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/43/image_23012025_10_43_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/43/image_23012025_10_43_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/43/image_23012025_10_43_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/43/image_23012025_10_43_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa84374a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa84374a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa84374a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:44:03.620870
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/43/image_23012025_10_43_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/43/image_23012025_10_43_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/43/image_23012025_10_43_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/43/image_23012025_10_43_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/43/image_23012025_10_43_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/43/image_23012025_10_43_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8898d4e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8898d4e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8898d4e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:44:32.502016
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/44/image_23012025_10_44_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/44/image_23012025_10_44_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/10/44/image_23012025_10_44_40_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/10/44/image_23012025_10_44_34_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/44/image_23012025_10_44_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/44/image_23012025_10_44_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c7ab4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c7ab4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c7ab4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:45:03.426984
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/44/image_23012025_10_44_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/44/image_23012025_10_44_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/10/44/image_23012025_10_44_40_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/10/44/image_23012025_10_44_34_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/44/image_23012025_10_44_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/44/image_23012025_10_44_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bfdc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bfdc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bfdc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:45:32.709745
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/45/image_23012025_10_45_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/45/image_23012025_10_45_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/45/image_23012025_10_45_40_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/10/45/image_23012025_10_45_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/45/image_23012025_10_45_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/45/image_23012025_10_45_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa71314a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa71314a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa71314a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:46:02.500226
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/45/image_23012025_10_45_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/45/image_23012025_10_45_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/45/image_23012025_10_45_40_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/10/45/image_23012025_10_45_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/45/image_23012025_10_45_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/45/image_23012025_10_45_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2dd94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2dd94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2dd94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:46:31.789314
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/46/image_23012025_10_46_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/46/image_23012025_10_46_46_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/10/46/image_23012025_10_46_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/10/46/image_23012025_10_46_34_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/46/image_23012025_10_46_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/46/image_23012025_10_46_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa63d74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa63d74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa63d74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:47:02.739030
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/46/image_23012025_10_46_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/46/image_23012025_10_46_46_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/10/46/image_23012025_10_46_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/10/46/image_23012025_10_46_34_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/46/image_23012025_10_46_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/46/image_23012025_10_46_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e6bc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e6bc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e6bc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:47:31.909249
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/47/image_23012025_10_47_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/47/image_23012025_10_47_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/10/47/image_23012025_10_47_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/47/image_23012025_10_47_34_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/10/47/image_23012025_10_47_29_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/10/47/image_23012025_10_47_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb569f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb569f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb569f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:48:02.890858
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/47/image_23012025_10_47_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/47/image_23012025_10_47_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/10/47/image_23012025_10_47_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/47/image_23012025_10_47_34_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/10/47/image_23012025_10_47_29_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/10/47/image_23012025_10_47_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e5ea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e5ea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e5ea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:48:31.989155
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/48/image_23012025_10_48_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/48/image_23012025_10_48_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/48/image_23012025_10_48_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/10/48/image_23012025_10_48_34_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/48/image_23012025_10_48_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/48/image_23012025_10_48_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb18234a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb18234a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb18234a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:49:03.332302
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/48/image_23012025_10_48_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/48/image_23012025_10_48_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/48/image_23012025_10_48_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/10/48/image_23012025_10_48_34_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/48/image_23012025_10_48_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/48/image_23012025_10_48_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ac5a438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ac5a438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ac5a438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:49:32.127737
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/49/image_23012025_10_49_52_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/10/49/image_23012025_10_49_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/10/49/image_23012025_10_49_40_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/10/49/image_23012025_10_49_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/49/image_23012025_10_49_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/49/image_23012025_10_49_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a97d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a97d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a97d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:50:03.011629
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/49/image_23012025_10_49_52_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/10/49/image_23012025_10_49_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/10/49/image_23012025_10_49_40_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/10/49/image_23012025_10_49_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/49/image_23012025_10_49_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/49/image_23012025_10_49_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99be44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99be44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99be44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:50:32.211753
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/50/image_23012025_10_50_52_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/10/50/image_23012025_10_50_46_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/10/50/image_23012025_10_50_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/50/image_23012025_10_50_35_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/10/50/image_23012025_10_50_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/50/image_23012025_10_50_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9dc424a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dc424a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dc424a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:51:03.088377
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/50/image_23012025_10_50_52_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/10/50/image_23012025_10_50_46_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/10/50/image_23012025_10_50_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/50/image_23012025_10_50_35_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/10/50/image_23012025_10_50_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/50/image_23012025_10_50_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f905604a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f905604a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f905604a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:51:32.329841
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/51/image_23012025_10_51_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/10/51/image_23012025_10_51_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/10/51/image_23012025_10_51_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/51/image_23012025_10_51_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/10/51/image_23012025_10_51_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/51/image_23012025_10_51_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98c964a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98c964a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98c964a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:52:03.053187
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/51/image_23012025_10_51_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/10/51/image_23012025_10_51_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/10/51/image_23012025_10_51_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/51/image_23012025_10_51_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/10/51/image_23012025_10_51_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/51/image_23012025_10_51_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fea84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fea84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fea84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:52:32.426091
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/52/image_23012025_10_52_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/52/image_23012025_10_52_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/10/52/image_23012025_10_52_40_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/10/52/image_23012025_10_52_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/10/52/image_23012025_10_52_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/52/image_23012025_10_52_16_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5d6d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5d6d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5d6d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:53:03.511836
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/52/image_23012025_10_52_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/52/image_23012025_10_52_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/10/52/image_23012025_10_52_40_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/10/52/image_23012025_10_52_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/10/52/image_23012025_10_52_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/52/image_23012025_10_52_16_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d7824a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d7824a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d7824a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:53:32.502345
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/53/image_23012025_10_53_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/53/image_23012025_10_53_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/53/image_23012025_10_53_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/53/image_23012025_10_53_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/53/image_23012025_10_53_28_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/10/53/image_23012025_10_53_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa92b34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa92b34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa92b34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:54:03.741487
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/53/image_23012025_10_53_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/53/image_23012025_10_53_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/53/image_23012025_10_53_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/53/image_23012025_10_53_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/53/image_23012025_10_53_28_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/10/53/image_23012025_10_53_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c1b7438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c1b7438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c1b7438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:54:32.594591
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/54/image_23012025_10_54_46_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/10/54/image_23012025_10_54_40_5195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/54/image_23012025_10_54_35_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/10/54/image_23012025_10_54_28_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/10/54/image_23012025_10_54_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/54/image_23012025_10_54_16_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5ae34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5ae34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5ae34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:55:03.660766
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/54/image_23012025_10_54_46_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/10/54/image_23012025_10_54_40_5195.jpg', 2), ('/home/nano/Desktop/images/23012025/10/54/image_23012025_10_54_35_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/10/54/image_23012025_10_54_28_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/10/54/image_23012025_10_54_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/54/image_23012025_10_54_16_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb45484a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb45484a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb45484a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:55:32.714799
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/55/image_23012025_10_55_52_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/10/55/image_23012025_10_55_46_6210.jpg', 2), ('/home/nano/Desktop/images/23012025/10/55/image_23012025_10_55_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/55/image_23012025_10_55_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/55/image_23012025_10_55_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/55/image_23012025_10_55_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d6b44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d6b44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d6b44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:56:02.463140
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/55/image_23012025_10_55_52_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/10/55/image_23012025_10_55_46_6210.jpg', 2), ('/home/nano/Desktop/images/23012025/10/55/image_23012025_10_55_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/10/55/image_23012025_10_55_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/55/image_23012025_10_55_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/55/image_23012025_10_55_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa45804a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa45804a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa45804a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:56:31.817395
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/56/image_23012025_10_56_52_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/10/56/image_23012025_10_56_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/10/56/image_23012025_10_56_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/56/image_23012025_10_56_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/10/56/image_23012025_10_56_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/56/image_23012025_10_56_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb333c4e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb333c4e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb333c4e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:57:02.878723
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/56/image_23012025_10_56_52_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/10/56/image_23012025_10_56_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/10/56/image_23012025_10_56_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/56/image_23012025_10_56_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/10/56/image_23012025_10_56_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/56/image_23012025_10_56_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f79f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f79f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f79f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:57:31.928196
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/57/image_23012025_10_57_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/57/image_23012025_10_57_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/57/image_23012025_10_57_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/57/image_23012025_10_57_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/57/image_23012025_10_57_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/57/image_23012025_10_57_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4cca4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4cca4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4cca4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:58:02.561096
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/57/image_23012025_10_57_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/57/image_23012025_10_57_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/57/image_23012025_10_57_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/57/image_23012025_10_57_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/57/image_23012025_10_57_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/57/image_23012025_10_57_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8df49438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8df49438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8df49438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:59:03.182137
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/57/image_23012025_10_57_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/10/57/image_23012025_10_57_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/57/image_23012025_10_57_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/57/image_23012025_10_57_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/57/image_23012025_10_57_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/57/image_23012025_10_57_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa734e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa734e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa734e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 10:59:31.967438
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/59/image_23012025_10_59_46_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/59/image_23012025_10_59_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/59/image_23012025_10_59_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/59/image_23012025_10_59_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/59/image_23012025_10_59_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/59/image_23012025_10_59_16_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84b7a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84b7a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84b7a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:00:02.842924
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/10/59/image_23012025_10_59_46_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/10/59/image_23012025_10_59_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/59/image_23012025_10_59_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/10/59/image_23012025_10_59_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/59/image_23012025_10_59_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/10/59/image_23012025_10_59_16_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fade2f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fade2f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fade2f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:00:32.053579
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/00/image_23012025_11_00_52_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/11/00/image_23012025_11_00_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/00/image_23012025_11_00_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/00/image_23012025_11_00_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/00/image_23012025_11_00_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/00/image_23012025_11_00_22_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a08e438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a08e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a08e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:01:02.906326
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/00/image_23012025_11_00_52_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/11/00/image_23012025_11_00_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/00/image_23012025_11_00_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/00/image_23012025_11_00_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/00/image_23012025_11_00_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/00/image_23012025_11_00_22_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7face524a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7face524a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7face524a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:01:32.145725
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/01/image_23012025_11_01_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/01/image_23012025_11_01_46_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/11/01/image_23012025_11_01_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/01/image_23012025_11_01_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/01/image_23012025_11_01_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/01/image_23012025_11_01_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f810624a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f810624a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f810624a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:02:03.013366
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/01/image_23012025_11_01_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/01/image_23012025_11_01_46_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/11/01/image_23012025_11_01_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/01/image_23012025_11_01_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/01/image_23012025_11_01_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/01/image_23012025_11_01_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7796b438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7796b438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7796b438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:02:32.256571
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/02/image_23012025_11_02_52_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/11/02/image_23012025_11_02_46_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/11/02/image_23012025_11_02_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/02/image_23012025_11_02_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/02/image_23012025_11_02_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/02/image_23012025_11_02_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8be664a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8be664a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8be664a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:03:03.143665
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/02/image_23012025_11_02_52_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/11/02/image_23012025_11_02_46_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/11/02/image_23012025_11_02_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/02/image_23012025_11_02_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/02/image_23012025_11_02_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/02/image_23012025_11_02_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ccb44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ccb44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ccb44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:03:32.360515
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/03/image_23012025_11_03_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/03/image_23012025_11_03_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/11/03/image_23012025_11_03_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/03/image_23012025_11_03_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/03/image_23012025_11_03_28_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/11/03/image_23012025_11_03_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d8934a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d8934a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d8934a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:04:03.727565
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/03/image_23012025_11_03_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/03/image_23012025_11_03_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/11/03/image_23012025_11_03_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/03/image_23012025_11_03_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/03/image_23012025_11_03_28_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/11/03/image_23012025_11_03_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a2884a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a2884a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a2884a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:04:32.542878
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/04/image_23012025_11_04_52_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/11/04/image_23012025_11_04_46_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/11/04/image_23012025_11_04_41_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/11/04/image_23012025_11_04_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/11/04/image_23012025_11_04_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/04/image_23012025_11_04_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c47f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c47f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c47f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:05:03.553065
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/04/image_23012025_11_04_52_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/11/04/image_23012025_11_04_46_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/11/04/image_23012025_11_04_41_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/11/04/image_23012025_11_04_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/11/04/image_23012025_11_04_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/04/image_23012025_11_04_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a4174a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a4174a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a4174a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:05:32.670131
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/05/image_23012025_11_05_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/05/image_23012025_11_05_46_5194.jpg', 2), ('/home/nano/Desktop/images/23012025/11/05/image_23012025_11_05_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/05/image_23012025_11_05_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/05/image_23012025_11_05_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/05/image_23012025_11_05_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9096b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9096b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9096b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:06:02.578478
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/05/image_23012025_11_05_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/05/image_23012025_11_05_46_5194.jpg', 2), ('/home/nano/Desktop/images/23012025/11/05/image_23012025_11_05_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/05/image_23012025_11_05_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/05/image_23012025_11_05_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/05/image_23012025_11_05_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87e2c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87e2c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87e2c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:06:31.757615
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/06/image_23012025_11_06_52_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/11/06/image_23012025_11_06_46_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/11/06/image_23012025_11_06_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/06/image_23012025_11_06_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/11/06/image_23012025_11_06_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/06/image_23012025_11_06_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7de6e438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7de6e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7de6e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:07:02.727915
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/07/image_23012025_11_07_16_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/06/image_23012025_11_06_52_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/11/06/image_23012025_11_06_46_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/11/06/image_23012025_11_06_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/06/image_23012025_11_06_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/11/06/image_23012025_11_06_28_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d28b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d28b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d28b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:07:31.833574
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/07/image_23012025_11_07_52_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/11/07/image_23012025_11_07_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/07/image_23012025_11_07_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/07/image_23012025_11_07_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/11/07/image_23012025_11_07_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/07/image_23012025_11_07_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0aba438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0aba438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0aba438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:08:02.836684
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/07/image_23012025_11_07_52_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/11/07/image_23012025_11_07_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/07/image_23012025_11_07_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/07/image_23012025_11_07_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/11/07/image_23012025_11_07_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/07/image_23012025_11_07_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa34d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa34d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa34d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:08:31.915787
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/08/image_23012025_11_08_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/08/image_23012025_11_08_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/11/08/image_23012025_11_08_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/08/image_23012025_11_08_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/08/image_23012025_11_08_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/08/image_23012025_11_08_16_5191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f903b64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f903b64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f903b64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:09:03.513579
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/08/image_23012025_11_08_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/08/image_23012025_11_08_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/11/08/image_23012025_11_08_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/08/image_23012025_11_08_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/08/image_23012025_11_08_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/08/image_23012025_11_08_16_5191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8812e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8812e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8812e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:09:32.030885
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/09/image_23012025_11_09_52_5195.jpg', 2), ('/home/nano/Desktop/images/23012025/11/09/image_23012025_11_09_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/09/image_23012025_11_09_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/09/image_23012025_11_09_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/09/image_23012025_11_09_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/09/image_23012025_11_09_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76d104a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76d104a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76d104a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:10:02.732413
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/09/image_23012025_11_09_52_5195.jpg', 2), ('/home/nano/Desktop/images/23012025/11/09/image_23012025_11_09_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/09/image_23012025_11_09_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/09/image_23012025_11_09_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/09/image_23012025_11_09_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/09/image_23012025_11_09_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a83b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a83b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a83b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:10:32.122623
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/10/image_23012025_11_10_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/10/image_23012025_11_10_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/10/image_23012025_11_10_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/10/image_23012025_11_10_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/10/image_23012025_11_10_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/10/image_23012025_11_10_22_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa59e84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa59e84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa59e84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:11:03.250084
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/10/image_23012025_11_10_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/10/image_23012025_11_10_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/10/image_23012025_11_10_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/10/image_23012025_11_10_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/10/image_23012025_11_10_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/10/image_23012025_11_10_22_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77fc54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77fc54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77fc54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:11:32.221642
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/11/image_23012025_11_11_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/11/11/image_23012025_11_11_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/11/image_23012025_11_11_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/11/image_23012025_11_11_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/11/image_23012025_11_11_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/11/image_23012025_11_11_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9866d438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9866d438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9866d438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:12:03.169220
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/12/image_23012025_11_12_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/11/image_23012025_11_11_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/11/11/image_23012025_11_11_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/11/image_23012025_11_11_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/11/image_23012025_11_11_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/11/image_23012025_11_11_28_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90a8a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90a8a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90a8a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:12:32.366948
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/12/image_23012025_11_12_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/12/image_23012025_11_12_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/12/image_23012025_11_12_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/12/image_23012025_11_12_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/12/image_23012025_11_12_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/12/image_23012025_11_12_22_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8746c438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8746c438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8746c438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:13:03.366308
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/12/image_23012025_11_12_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/12/image_23012025_11_12_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/12/image_23012025_11_12_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/12/image_23012025_11_12_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/12/image_23012025_11_12_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/12/image_23012025_11_12_22_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad9dd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad9dd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad9dd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:13:32.478630
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/13/image_23012025_11_13_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/13/image_23012025_11_13_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/13/image_23012025_11_13_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/13/image_23012025_11_13_34_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/11/13/image_23012025_11_13_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/13/image_23012025_11_13_22_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99bbe438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99bbe438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99bbe438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:14:03.641296
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/13/image_23012025_11_13_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/13/image_23012025_11_13_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/13/image_23012025_11_13_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/13/image_23012025_11_13_34_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/11/13/image_23012025_11_13_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/13/image_23012025_11_13_22_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9297e438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9297e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9297e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:14:32.578970
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/14/image_23012025_11_14_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/11/14/image_23012025_11_14_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/14/image_23012025_11_14_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/14/image_23012025_11_14_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/14/image_23012025_11_14_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/14/image_23012025_11_14_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb42f54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb42f54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb42f54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:15:03.600141
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/14/image_23012025_11_14_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/11/14/image_23012025_11_14_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/14/image_23012025_11_14_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/14/image_23012025_11_14_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/14/image_23012025_11_14_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/14/image_23012025_11_14_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8205b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8205b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8205b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:15:32.679710
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/15/image_23012025_11_15_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/11/15/image_23012025_11_15_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/15/image_23012025_11_15_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/15/image_23012025_11_15_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/15/image_23012025_11_15_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/15/image_23012025_11_15_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f3664a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f3664a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f3664a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:16:02.463767
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/15/image_23012025_11_15_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/11/15/image_23012025_11_15_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/15/image_23012025_11_15_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/15/image_23012025_11_15_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/15/image_23012025_11_15_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/15/image_23012025_11_15_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81707438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81707438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81707438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:16:31.774027
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/16/image_23012025_11_16_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/16/image_23012025_11_16_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/16/image_23012025_11_16_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/16/image_23012025_11_16_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/16/image_23012025_11_16_22_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/11/16/image_23012025_11_16_17_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae70e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae70e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae70e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:17:02.903891
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/16/image_23012025_11_16_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/16/image_23012025_11_16_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/16/image_23012025_11_16_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/16/image_23012025_11_16_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/16/image_23012025_11_16_22_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/11/16/image_23012025_11_16_17_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa681b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa681b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa681b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:17:31.878225
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/17/image_23012025_11_17_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/17/image_23012025_11_17_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/17/image_23012025_11_17_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/17/image_23012025_11_17_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/17/image_23012025_11_17_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/17/image_23012025_11_17_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7de104a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7de104a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7de104a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:18:02.599848
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/17/image_23012025_11_17_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/17/image_23012025_11_17_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/17/image_23012025_11_17_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/17/image_23012025_11_17_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/17/image_23012025_11_17_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/17/image_23012025_11_17_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0afc438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0afc438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0afc438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:18:32.039747
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/18/image_23012025_11_18_52_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/11/18/image_23012025_11_18_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/18/image_23012025_11_18_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/18/image_23012025_11_18_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/18/image_23012025_11_18_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/18/image_23012025_11_18_22_5189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bd0e438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bd0e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bd0e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:19:03.449008
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/18/image_23012025_11_18_52_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/11/18/image_23012025_11_18_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/18/image_23012025_11_18_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/18/image_23012025_11_18_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/18/image_23012025_11_18_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/18/image_23012025_11_18_22_5189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa825e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa825e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa825e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:19:32.136455
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/19/image_23012025_11_19_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/19/image_23012025_11_19_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/19/image_23012025_11_19_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/19/image_23012025_11_19_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/19/image_23012025_11_19_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/19/image_23012025_11_19_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7decc438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7decc438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7decc438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:20:03.022700
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/19/image_23012025_11_19_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/19/image_23012025_11_19_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/19/image_23012025_11_19_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/19/image_23012025_11_19_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/19/image_23012025_11_19_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/19/image_23012025_11_19_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f835424a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f835424a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f835424a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:20:32.232900
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/20/image_23012025_11_20_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/11/20/image_23012025_11_20_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/20/image_23012025_11_20_40_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/11/20/image_23012025_11_20_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/20/image_23012025_11_20_22_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/20/image_23012025_11_20_17_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f946e7438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f946e7438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f946e7438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:21:03.356354
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/20/image_23012025_11_20_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/11/20/image_23012025_11_20_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/20/image_23012025_11_20_40_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/11/20/image_23012025_11_20_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/20/image_23012025_11_20_22_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/20/image_23012025_11_20_17_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d9954a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d9954a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d9954a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:21:32.365740
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/21/image_23012025_11_21_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/11/21/image_23012025_11_21_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/21/image_23012025_11_21_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/21/image_23012025_11_21_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/21/image_23012025_11_21_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/21/image_23012025_11_21_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faec60438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faec60438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faec60438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:22:03.125833
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/21/image_23012025_11_21_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/11/21/image_23012025_11_21_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/21/image_23012025_11_21_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/21/image_23012025_11_21_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/21/image_23012025_11_21_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/21/image_23012025_11_21_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab15b438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab15b438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab15b438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:22:32.468760
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/22/image_23012025_11_22_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/22/image_23012025_11_22_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/22/image_23012025_11_22_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/22/image_23012025_11_22_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/11/22/image_23012025_11_22_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/22/image_23012025_11_22_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82c944a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82c944a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82c944a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:23:03.370696
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/22/image_23012025_11_22_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/22/image_23012025_11_22_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/22/image_23012025_11_22_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/22/image_23012025_11_22_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/11/22/image_23012025_11_22_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/22/image_23012025_11_22_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4edf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4edf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4edf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:23:32.582075
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/23/image_23012025_11_23_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/23/image_23012025_11_23_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/23/image_23012025_11_23_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/23/image_23012025_11_23_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/23/image_23012025_11_23_28_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/11/23/image_23012025_11_23_22_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bfed4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bfed4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bfed4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:24:03.408480
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/23/image_23012025_11_23_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/23/image_23012025_11_23_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/23/image_23012025_11_23_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/23/image_23012025_11_23_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/23/image_23012025_11_23_28_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/11/23/image_23012025_11_23_22_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faed784a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faed784a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faed784a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:24:32.661507
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/24/image_23012025_11_24_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/24/image_23012025_11_24_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/24/image_23012025_11_24_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/24/image_23012025_11_24_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/24/image_23012025_11_24_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/24/image_23012025_11_24_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7cdcf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cdcf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cdcf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:25:02.783734
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/24/image_23012025_11_24_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/24/image_23012025_11_24_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/24/image_23012025_11_24_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/24/image_23012025_11_24_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/24/image_23012025_11_24_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/24/image_23012025_11_24_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f774f44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f774f44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f774f44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:25:31.764578
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/25/image_23012025_11_25_53_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/11/25/image_23012025_11_25_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/25/image_23012025_11_25_34_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/11/25/image_23012025_11_25_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/11/25/image_23012025_11_25_23_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/11/25/image_23012025_11_25_17_6205.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f798344a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f798344a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f798344a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:26:02.694313
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/25/image_23012025_11_25_53_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/11/25/image_23012025_11_25_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/25/image_23012025_11_25_34_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/11/25/image_23012025_11_25_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/11/25/image_23012025_11_25_23_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/11/25/image_23012025_11_25_17_6205.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82ce04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82ce04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82ce04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:26:31.851011
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/26/image_23012025_11_26_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/26/image_23012025_11_26_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/26/image_23012025_11_26_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/26/image_23012025_11_26_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/11/26/image_23012025_11_26_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/11/26/image_23012025_11_26_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e818438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e818438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e818438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:27:02.743013
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/26/image_23012025_11_26_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/26/image_23012025_11_26_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/26/image_23012025_11_26_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/26/image_23012025_11_26_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/11/26/image_23012025_11_26_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/11/26/image_23012025_11_26_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6abf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6abf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6abf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:27:31.968417
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/27/image_23012025_11_27_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/27/image_23012025_11_27_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/27/image_23012025_11_27_34_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/11/27/image_23012025_11_27_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/11/27/image_23012025_11_27_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/27/image_23012025_11_27_16_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fd6b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fd6b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fd6b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:28:02.752608
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/27/image_23012025_11_27_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/27/image_23012025_11_27_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/27/image_23012025_11_27_34_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/11/27/image_23012025_11_27_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/11/27/image_23012025_11_27_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/27/image_23012025_11_27_16_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87ef94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87ef94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87ef94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:28:32.118752
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/28/image_23012025_11_28_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/28/image_23012025_11_28_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/28/image_23012025_11_28_40_6211.jpg', 2), ('/home/nano/Desktop/images/23012025/11/28/image_23012025_11_28_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/28/image_23012025_11_28_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/11/28/image_23012025_11_28_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafeea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafeea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafeea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:29:03.665997
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/28/image_23012025_11_28_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/28/image_23012025_11_28_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/28/image_23012025_11_28_40_6211.jpg', 2), ('/home/nano/Desktop/images/23012025/11/28/image_23012025_11_28_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/28/image_23012025_11_28_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/11/28/image_23012025_11_28_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8f164a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8f164a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8f164a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:29:32.219127
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/29/image_23012025_11_29_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/29/image_23012025_11_29_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/29/image_23012025_11_29_40_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/11/29/image_23012025_11_29_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/29/image_23012025_11_29_28_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/11/29/image_23012025_11_29_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8160a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8160a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8160a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:30:02.922503
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/29/image_23012025_11_29_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/29/image_23012025_11_29_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/29/image_23012025_11_29_40_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/11/29/image_23012025_11_29_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/29/image_23012025_11_29_28_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/11/29/image_23012025_11_29_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87b1c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87b1c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87b1c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:30:32.313942
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/30/image_23012025_11_30_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/30/image_23012025_11_30_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/30/image_23012025_11_30_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/30/image_23012025_11_30_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/30/image_23012025_11_30_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/30/image_23012025_11_30_23_6216.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f970a44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f970a44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f970a44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:31:03.208082
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/30/image_23012025_11_30_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/30/image_23012025_11_30_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/30/image_23012025_11_30_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/30/image_23012025_11_30_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/30/image_23012025_11_30_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/30/image_23012025_11_30_23_6216.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f994a24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f994a24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f994a24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:31:32.431238
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/31/image_23012025_11_31_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/11/31/image_23012025_11_31_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/31/image_23012025_11_31_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/31/image_23012025_11_31_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/11/31/image_23012025_11_31_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/11/31/image_23012025_11_31_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d58b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d58b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d58b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:32:03.021580
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/31/image_23012025_11_31_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/11/31/image_23012025_11_31_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/31/image_23012025_11_31_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/31/image_23012025_11_31_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/11/31/image_23012025_11_31_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/11/31/image_23012025_11_31_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa098f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa098f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa098f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:32:32.526584
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/32/image_23012025_11_32_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/11/32/image_23012025_11_32_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/32/image_23012025_11_32_40_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/11/32/image_23012025_11_32_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/11/32/image_23012025_11_32_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/32/image_23012025_11_32_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8805d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8805d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8805d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:33:03.637828
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/33/image_23012025_11_33_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/32/image_23012025_11_32_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/11/32/image_23012025_11_32_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/32/image_23012025_11_32_40_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/11/32/image_23012025_11_32_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/11/32/image_23012025_11_32_28_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7efc64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7efc64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7efc64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:33:32.616799
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/33/image_23012025_11_33_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/33/image_23012025_11_33_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/33/image_23012025_11_33_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/33/image_23012025_11_33_34_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/11/33/image_23012025_11_33_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/11/33/image_23012025_11_33_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa390d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa390d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa390d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:34:03.540244
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/33/image_23012025_11_33_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/33/image_23012025_11_33_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/33/image_23012025_11_33_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/33/image_23012025_11_33_34_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/11/33/image_23012025_11_33_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/11/33/image_23012025_11_33_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79d394a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79d394a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79d394a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:34:32.730375
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/34/image_23012025_11_34_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/34/image_23012025_11_34_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/34/image_23012025_11_34_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/34/image_23012025_11_34_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/34/image_23012025_11_34_23_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/34/image_23012025_11_34_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f963624a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f963624a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f963624a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:35:02.803107
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/34/image_23012025_11_34_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/34/image_23012025_11_34_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/34/image_23012025_11_34_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/34/image_23012025_11_34_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/34/image_23012025_11_34_23_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/34/image_23012025_11_34_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9eef34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9eef34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9eef34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:35:31.903779
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/35/image_23012025_11_35_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/35/image_23012025_11_35_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/11/35/image_23012025_11_35_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/11/35/image_23012025_11_35_34_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/11/35/image_23012025_11_35_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/11/35/image_23012025_11_35_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87f81438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87f81438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87f81438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:36:02.700190
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/35/image_23012025_11_35_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/35/image_23012025_11_35_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/11/35/image_23012025_11_35_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/11/35/image_23012025_11_35_34_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/11/35/image_23012025_11_35_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/11/35/image_23012025_11_35_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa54404e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa54404e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa54404e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:36:32.003555
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/36/image_23012025_11_36_53_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/36/image_23012025_11_36_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/36/image_23012025_11_36_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/36/image_23012025_11_36_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/36/image_23012025_11_36_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/36/image_23012025_11_36_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f958dd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f958dd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f958dd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:37:03.119484
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/36/image_23012025_11_36_53_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/36/image_23012025_11_36_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/36/image_23012025_11_36_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/36/image_23012025_11_36_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/36/image_23012025_11_36_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/36/image_23012025_11_36_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d0b14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d0b14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d0b14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:37:32.178689
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/37/image_23012025_11_37_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/37/image_23012025_11_37_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/37/image_23012025_11_37_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/37/image_23012025_11_37_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/37/image_23012025_11_37_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/37/image_23012025_11_37_10_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c7704a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c7704a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c7704a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:38:02.989306
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/37/image_23012025_11_37_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/37/image_23012025_11_37_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/37/image_23012025_11_37_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/37/image_23012025_11_37_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/37/image_23012025_11_37_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/37/image_23012025_11_37_10_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2b324a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2b324a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2b324a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:38:32.267935
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/38/image_23012025_11_38_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/38/image_23012025_11_38_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/11/38/image_23012025_11_38_40_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/11/38/image_23012025_11_38_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/38/image_23012025_11_38_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/38/image_23012025_11_38_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f857af4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f857af4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f857af4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:39:03.610193
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/38/image_23012025_11_38_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/38/image_23012025_11_38_46_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/11/38/image_23012025_11_38_40_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/11/38/image_23012025_11_38_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/38/image_23012025_11_38_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/38/image_23012025_11_38_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86f96438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86f96438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86f96438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:39:32.383156
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/39/image_23012025_11_39_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/39/image_23012025_11_39_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/39/image_23012025_11_39_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/11/39/image_23012025_11_39_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/39/image_23012025_11_39_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/39/image_23012025_11_39_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa805e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa805e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa805e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:40:03.448891
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/39/image_23012025_11_39_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/39/image_23012025_11_39_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/39/image_23012025_11_39_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/11/39/image_23012025_11_39_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/39/image_23012025_11_39_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/39/image_23012025_11_39_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa51c74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa51c74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa51c74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:40:32.498340
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/40/image_23012025_11_40_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/40/image_23012025_11_40_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/40/image_23012025_11_40_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/11/40/image_23012025_11_40_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/40/image_23012025_11_40_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/40/image_23012025_11_40_23_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d21d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d21d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d21d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:41:03.447902
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/40/image_23012025_11_40_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/40/image_23012025_11_40_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/40/image_23012025_11_40_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/11/40/image_23012025_11_40_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/40/image_23012025_11_40_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/40/image_23012025_11_40_23_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4c0f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4c0f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4c0f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:41:32.601416
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/41/image_23012025_11_41_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/41/image_23012025_11_41_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/41/image_23012025_11_41_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/11/41/image_23012025_11_41_34_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/11/41/image_23012025_11_41_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/41/image_23012025_11_41_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a1194a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a1194a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a1194a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:42:03.553081
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/41/image_23012025_11_41_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/41/image_23012025_11_41_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/41/image_23012025_11_41_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/11/41/image_23012025_11_41_34_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/11/41/image_23012025_11_41_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/41/image_23012025_11_41_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7839f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7839f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7839f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:42:32.700417
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/42/image_23012025_11_42_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/42/image_23012025_11_42_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/42/image_23012025_11_42_40_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/11/42/image_23012025_11_42_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/42/image_23012025_11_42_29_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/42/image_23012025_11_42_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d41d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d41d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d41d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:43:02.563753
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/42/image_23012025_11_42_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/42/image_23012025_11_42_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/42/image_23012025_11_42_40_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/11/42/image_23012025_11_42_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/42/image_23012025_11_42_29_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/42/image_23012025_11_42_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7cb8c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cb8c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cb8c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:43:31.808894
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/43/image_23012025_11_43_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/43/image_23012025_11_43_46_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/11/43/image_23012025_11_43_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/43/image_23012025_11_43_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/43/image_23012025_11_43_29_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/11/43/image_23012025_11_43_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b86d438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b86d438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b86d438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:44:03.119697
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/43/image_23012025_11_43_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/43/image_23012025_11_43_46_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/11/43/image_23012025_11_43_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/43/image_23012025_11_43_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/43/image_23012025_11_43_29_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/11/43/image_23012025_11_43_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ac4e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ac4e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ac4e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:44:31.987834
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/44/image_23012025_11_44_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/44/image_23012025_11_44_46_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/11/44/image_23012025_11_44_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/11/44/image_23012025_11_44_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/11/44/image_23012025_11_44_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/44/image_23012025_11_44_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f973ef4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f973ef4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f973ef4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:45:02.933460
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/44/image_23012025_11_44_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/44/image_23012025_11_44_46_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/11/44/image_23012025_11_44_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/11/44/image_23012025_11_44_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/11/44/image_23012025_11_44_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/44/image_23012025_11_44_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa060d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa060d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa060d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:45:32.162130
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/45/image_23012025_11_45_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/11/45/image_23012025_11_45_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/45/image_23012025_11_45_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/45/image_23012025_11_45_16_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/45/image_23012025_11_45_10_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/11/44/image_23012025_11_44_59_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa01184a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa01184a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa01184a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:46:02.965425
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/45/image_23012025_11_45_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/11/45/image_23012025_11_45_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/45/image_23012025_11_45_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/45/image_23012025_11_45_16_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/45/image_23012025_11_45_10_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/11/44/image_23012025_11_44_59_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a11a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a11a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a11a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:46:32.332784
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/46/image_23012025_11_46_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/11/46/image_23012025_11_46_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/46/image_23012025_11_46_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/46/image_23012025_11_46_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/46/image_23012025_11_46_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/46/image_23012025_11_46_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb37504a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb37504a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb37504a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:47:03.302981
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/46/image_23012025_11_46_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/11/46/image_23012025_11_46_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/46/image_23012025_11_46_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/46/image_23012025_11_46_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/46/image_23012025_11_46_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/46/image_23012025_11_46_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f995954a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f995954a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f995954a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:47:32.433278
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/47/image_23012025_11_47_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/47/image_23012025_11_47_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/47/image_23012025_11_47_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/11/47/image_23012025_11_47_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/47/image_23012025_11_47_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/47/image_23012025_11_47_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f975a84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f975a84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f975a84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:48:03.036527
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/47/image_23012025_11_47_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/47/image_23012025_11_47_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/47/image_23012025_11_47_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/11/47/image_23012025_11_47_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/47/image_23012025_11_47_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/47/image_23012025_11_47_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83cc44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83cc44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83cc44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:48:32.555826
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/48/image_23012025_11_48_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/48/image_23012025_11_48_35_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/11/48/image_23012025_11_48_29_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/11/48/image_23012025_11_48_22_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/11/48/image_23012025_11_48_16_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/11/48/image_23012025_11_48_10_5194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa988c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa988c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa988c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:49:03.856510
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/48/image_23012025_11_48_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/48/image_23012025_11_48_35_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/11/48/image_23012025_11_48_29_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/11/48/image_23012025_11_48_22_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/11/48/image_23012025_11_48_16_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/11/48/image_23012025_11_48_10_5194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa97494a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa97494a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa97494a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:49:32.630172
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/49/image_23012025_11_49_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/49/image_23012025_11_49_46_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/11/49/image_23012025_11_49_40_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/11/49/image_23012025_11_49_35_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/11/49/image_23012025_11_49_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/49/image_23012025_11_49_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb041f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb041f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb041f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:50:03.580384
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/49/image_23012025_11_49_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/49/image_23012025_11_49_46_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/11/49/image_23012025_11_49_40_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/11/49/image_23012025_11_49_35_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/11/49/image_23012025_11_49_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/49/image_23012025_11_49_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f861824a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f861824a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f861824a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:50:32.738607
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/50/image_23012025_11_50_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/11/50/image_23012025_11_50_40_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/11/50/image_23012025_11_50_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/50/image_23012025_11_50_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/50/image_23012025_11_50_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/50/image_23012025_11_50_16_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafa2a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafa2a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafa2a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:51:02.955934
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/50/image_23012025_11_50_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/11/50/image_23012025_11_50_40_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/11/50/image_23012025_11_50_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/50/image_23012025_11_50_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/50/image_23012025_11_50_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/50/image_23012025_11_50_16_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f797454a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f797454a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f797454a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:51:31.836745
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/51/image_23012025_11_51_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/51/image_23012025_11_51_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/51/image_23012025_11_51_40_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/11/51/image_23012025_11_51_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/51/image_23012025_11_51_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/51/image_23012025_11_51_22_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f986034a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f986034a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f986034a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:52:02.529094
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/51/image_23012025_11_51_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/51/image_23012025_11_51_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/51/image_23012025_11_51_40_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/11/51/image_23012025_11_51_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/51/image_23012025_11_51_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/51/image_23012025_11_51_22_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e2b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e2b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e2b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:52:31.934474
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/52/image_23012025_11_52_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/52/image_23012025_11_52_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/52/image_23012025_11_52_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/52/image_23012025_11_52_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/52/image_23012025_11_52_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/52/image_23012025_11_52_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2b2d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2b2d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2b2d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:53:03.012882
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/52/image_23012025_11_52_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/52/image_23012025_11_52_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/11/52/image_23012025_11_52_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/52/image_23012025_11_52_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/52/image_23012025_11_52_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/52/image_23012025_11_52_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99d3b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99d3b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99d3b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:53:32.030953
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/53/image_23012025_11_53_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/53/image_23012025_11_53_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/53/image_23012025_11_53_40_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/11/53/image_23012025_11_53_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/53/image_23012025_11_53_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/53/image_23012025_11_53_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81081438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81081438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81081438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:54:02.937510
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/53/image_23012025_11_53_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/53/image_23012025_11_53_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/53/image_23012025_11_53_40_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/11/53/image_23012025_11_53_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/53/image_23012025_11_53_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/53/image_23012025_11_53_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa28634a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa28634a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa28634a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:54:32.140908
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/54/image_23012025_11_54_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/54/image_23012025_11_54_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/54/image_23012025_11_54_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/54/image_23012025_11_54_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/54/image_23012025_11_54_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/54/image_23012025_11_54_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86b424a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86b424a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86b424a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:55:02.996279
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/54/image_23012025_11_54_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/54/image_23012025_11_54_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/54/image_23012025_11_54_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/54/image_23012025_11_54_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/54/image_23012025_11_54_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/54/image_23012025_11_54_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f966c54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f966c54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f966c54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:55:32.337979
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/55/image_23012025_11_55_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/55/image_23012025_11_55_46_6211.jpg', 2), ('/home/nano/Desktop/images/23012025/11/55/image_23012025_11_55_40_5196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/55/image_23012025_11_55_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/55/image_23012025_11_55_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/55/image_23012025_11_55_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa29f54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa29f54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa29f54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:56:03.123496
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/55/image_23012025_11_55_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/55/image_23012025_11_55_46_6211.jpg', 2), ('/home/nano/Desktop/images/23012025/11/55/image_23012025_11_55_40_5196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/55/image_23012025_11_55_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/55/image_23012025_11_55_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/55/image_23012025_11_55_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f84b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f84b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f84b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:56:32.417093
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/56/image_23012025_11_56_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/56/image_23012025_11_56_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/56/image_23012025_11_56_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/56/image_23012025_11_56_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/56/image_23012025_11_56_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/56/image_23012025_11_56_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e4a04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e4a04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e4a04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:57:03.583291
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/56/image_23012025_11_56_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/56/image_23012025_11_56_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/56/image_23012025_11_56_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/56/image_23012025_11_56_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/56/image_23012025_11_56_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/56/image_23012025_11_56_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c9f94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c9f94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c9f94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:57:32.516866
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/57/image_23012025_11_57_52_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/11/57/image_23012025_11_57_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/57/image_23012025_11_57_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/57/image_23012025_11_57_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/57/image_23012025_11_57_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/57/image_23012025_11_57_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97def4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97def4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97def4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:58:03.183862
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/57/image_23012025_11_57_52_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/11/57/image_23012025_11_57_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/57/image_23012025_11_57_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/57/image_23012025_11_57_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/57/image_23012025_11_57_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/57/image_23012025_11_57_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8638a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8638a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8638a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:59:03.522017
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/57/image_23012025_11_57_52_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/11/57/image_23012025_11_57_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/57/image_23012025_11_57_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/57/image_23012025_11_57_35_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/11/57/image_23012025_11_57_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/57/image_23012025_11_57_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa112f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa112f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa112f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 11:59:32.456846
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/59/image_23012025_11_59_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/59/image_23012025_11_59_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/59/image_23012025_11_59_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/59/image_23012025_11_59_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/59/image_23012025_11_59_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/59/image_23012025_11_59_16_5190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8db2c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8db2c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8db2c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:00:03.393396
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/11/59/image_23012025_11_59_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/11/59/image_23012025_11_59_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/59/image_23012025_11_59_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/59/image_23012025_11_59_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/11/59/image_23012025_11_59_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/11/59/image_23012025_11_59_16_5190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faae994a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faae994a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faae994a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:00:32.556022
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/00/image_23012025_12_00_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/00/image_23012025_12_00_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/00/image_23012025_12_00_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/00/image_23012025_12_00_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/00/image_23012025_12_00_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/00/image_23012025_12_00_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89bf74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89bf74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89bf74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:01:03.497690
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/00/image_23012025_12_00_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/00/image_23012025_12_00_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/00/image_23012025_12_00_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/00/image_23012025_12_00_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/00/image_23012025_12_00_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/00/image_23012025_12_00_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2a6f438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2a6f438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2a6f438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:01:32.685154
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/01/image_23012025_12_01_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/01/image_23012025_12_01_46_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/12/01/image_23012025_12_01_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/01/image_23012025_12_01_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/01/image_23012025_12_01_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/01/image_23012025_12_01_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a2924a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a2924a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a2924a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:02:02.415860
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/01/image_23012025_12_01_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/01/image_23012025_12_01_46_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/12/01/image_23012025_12_01_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/01/image_23012025_12_01_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/01/image_23012025_12_01_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/01/image_23012025_12_01_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4fbc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4fbc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4fbc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:02:31.766694
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/02/image_23012025_12_02_52_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/12/02/image_23012025_12_02_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/02/image_23012025_12_02_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/02/image_23012025_12_02_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/02/image_23012025_12_02_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/02/image_23012025_12_02_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a33e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a33e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a33e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:03:02.962693
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/02/image_23012025_12_02_52_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/12/02/image_23012025_12_02_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/02/image_23012025_12_02_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/02/image_23012025_12_02_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/02/image_23012025_12_02_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/02/image_23012025_12_02_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0d764a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0d764a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0d764a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:03:31.864950
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/03/image_23012025_12_03_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/03/image_23012025_12_03_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/03/image_23012025_12_03_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/03/image_23012025_12_03_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/03/image_23012025_12_03_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/03/image_23012025_12_03_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8553d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8553d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8553d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:04:03.015497
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/03/image_23012025_12_03_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/03/image_23012025_12_03_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/03/image_23012025_12_03_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/03/image_23012025_12_03_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/03/image_23012025_12_03_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/03/image_23012025_12_03_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa58e34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa58e34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa58e34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:04:31.972553
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/04/image_23012025_12_04_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/04/image_23012025_12_04_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/04/image_23012025_12_04_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/04/image_23012025_12_04_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/04/image_23012025_12_04_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/04/image_23012025_12_04_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa18544a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa18544a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa18544a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:05:02.895443
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/04/image_23012025_12_04_52_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/04/image_23012025_12_04_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/04/image_23012025_12_04_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/04/image_23012025_12_04_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/04/image_23012025_12_04_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/04/image_23012025_12_04_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b5124a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b5124a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b5124a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:05:32.083550
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/05/image_23012025_12_05_52_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/12/05/image_23012025_12_05_46_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/12/05/image_23012025_12_05_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/05/image_23012025_12_05_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/05/image_23012025_12_05_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/05/image_23012025_12_05_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f950e84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f950e84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f950e84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:06:03.016428
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/05/image_23012025_12_05_52_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/12/05/image_23012025_12_05_46_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/12/05/image_23012025_12_05_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/05/image_23012025_12_05_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/05/image_23012025_12_05_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/05/image_23012025_12_05_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f12a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f12a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f12a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:06:32.187747
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/06/image_23012025_12_06_52_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/12/06/image_23012025_12_06_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/06/image_23012025_12_06_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/12/06/image_23012025_12_06_28_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/12/06/image_23012025_12_06_22_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/12/06/image_23012025_12_06_16_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97d564a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97d564a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97d564a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:07:03.112213
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/06/image_23012025_12_06_52_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/12/06/image_23012025_12_06_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/06/image_23012025_12_06_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/12/06/image_23012025_12_06_28_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/12/06/image_23012025_12_06_22_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/12/06/image_23012025_12_06_16_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2d364a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2d364a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2d364a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:07:32.309390
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/07/image_23012025_12_07_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/07/image_23012025_12_07_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/07/image_23012025_12_07_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/07/image_23012025_12_07_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/12/07/image_23012025_12_07_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/07/image_23012025_12_07_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83617438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83617438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83617438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:08:03.087159
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/07/image_23012025_12_07_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/07/image_23012025_12_07_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/07/image_23012025_12_07_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/07/image_23012025_12_07_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/12/07/image_23012025_12_07_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/07/image_23012025_12_07_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa442d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa442d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa442d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:08:32.396772
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/08/image_23012025_12_08_52_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/12/08/image_23012025_12_08_46_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/12/08/image_23012025_12_08_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/08/image_23012025_12_08_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/08/image_23012025_12_08_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/08/image_23012025_12_08_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fd50438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fd50438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fd50438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:09:03.765461
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/08/image_23012025_12_08_52_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/12/08/image_23012025_12_08_46_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/12/08/image_23012025_12_08_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/08/image_23012025_12_08_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/08/image_23012025_12_08_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/08/image_23012025_12_08_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa30494a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa30494a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa30494a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:09:32.522667
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/09/image_23012025_12_09_52_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/12/09/image_23012025_12_09_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/09/image_23012025_12_09_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/09/image_23012025_12_09_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/09/image_23012025_12_09_28_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/12/09/image_23012025_12_09_22_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2cdd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2cdd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2cdd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:10:03.299547
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/09/image_23012025_12_09_52_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/12/09/image_23012025_12_09_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/09/image_23012025_12_09_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/09/image_23012025_12_09_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/09/image_23012025_12_09_28_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/12/09/image_23012025_12_09_22_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa20924a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa20924a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa20924a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:10:32.609941
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/10/image_23012025_12_10_52_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/12/10/image_23012025_12_10_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/10/image_23012025_12_10_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/10/image_23012025_12_10_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/10/image_23012025_12_10_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/10/image_23012025_12_10_22_6203.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c8fa4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c8fa4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c8fa4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:11:03.781475
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/10/image_23012025_12_10_52_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/12/10/image_23012025_12_10_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/10/image_23012025_12_10_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/10/image_23012025_12_10_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/10/image_23012025_12_10_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/10/image_23012025_12_10_22_6203.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e8014a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e8014a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e8014a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:11:32.713460
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/11/image_23012025_12_11_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/11/image_23012025_12_11_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/11/image_23012025_12_11_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/11/image_23012025_12_11_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/11/image_23012025_12_11_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/11/image_23012025_12_11_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b45f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b45f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b45f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:12:02.258904
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/11/image_23012025_12_11_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/11/image_23012025_12_11_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/11/image_23012025_12_11_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/11/image_23012025_12_11_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/11/image_23012025_12_11_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/11/image_23012025_12_11_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7877d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7877d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7877d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:12:31.816980
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/12/image_23012025_12_12_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/12/image_23012025_12_12_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/12/image_23012025_12_12_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/12/image_23012025_12_12_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/12/image_23012025_12_12_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/12/image_23012025_12_12_22_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84b144a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84b144a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84b144a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:13:02.710908
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/12/image_23012025_12_12_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/12/image_23012025_12_12_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/12/image_23012025_12_12_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/12/image_23012025_12_12_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/12/image_23012025_12_12_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/12/image_23012025_12_12_22_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa37de4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa37de4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa37de4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:13:31.928008
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/13/image_23012025_12_13_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/13/image_23012025_12_13_47_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/12/13/image_23012025_12_13_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/13/image_23012025_12_13_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/13/image_23012025_12_13_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/13/image_23012025_12_13_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f879d24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f879d24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f879d24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:14:02.984018
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/13/image_23012025_12_13_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/13/image_23012025_12_13_47_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/12/13/image_23012025_12_13_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/13/image_23012025_12_13_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/13/image_23012025_12_13_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/13/image_23012025_12_13_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f913ec438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f913ec438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f913ec438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:14:31.999656
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/14/image_23012025_12_14_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/14/image_23012025_12_14_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/14/image_23012025_12_14_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/14/image_23012025_12_14_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/14/image_23012025_12_14_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/14/image_23012025_12_14_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad2a6438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad2a6438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad2a6438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:15:02.992266
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/14/image_23012025_12_14_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/14/image_23012025_12_14_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/14/image_23012025_12_14_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/14/image_23012025_12_14_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/14/image_23012025_12_14_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/14/image_23012025_12_14_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8be834a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8be834a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8be834a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:15:32.086077
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/15/image_23012025_12_15_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/15/image_23012025_12_15_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/15/image_23012025_12_15_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/15/image_23012025_12_15_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/15/image_23012025_12_15_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/15/image_23012025_12_15_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fc414a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fc414a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fc414a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:16:02.909899
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/15/image_23012025_12_15_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/15/image_23012025_12_15_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/15/image_23012025_12_15_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/15/image_23012025_12_15_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/15/image_23012025_12_15_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/15/image_23012025_12_15_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d2334a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d2334a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d2334a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:16:32.178053
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/16/image_23012025_12_16_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/16/image_23012025_12_16_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/16/image_23012025_12_16_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/16/image_23012025_12_16_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/16/image_23012025_12_16_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/16/image_23012025_12_16_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f860e84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f860e84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f860e84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:17:03.007445
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/16/image_23012025_12_16_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/16/image_23012025_12_16_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/16/image_23012025_12_16_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/16/image_23012025_12_16_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/16/image_23012025_12_16_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/16/image_23012025_12_16_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b490438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b490438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b490438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:17:32.291894
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/17/image_23012025_12_17_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/17/image_23012025_12_17_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/17/image_23012025_12_17_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/17/image_23012025_12_17_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/17/image_23012025_12_17_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/17/image_23012025_12_17_22_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7fe94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7fe94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7fe94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:18:03.076228
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/17/image_23012025_12_17_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/17/image_23012025_12_17_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/17/image_23012025_12_17_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/17/image_23012025_12_17_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/17/image_23012025_12_17_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/17/image_23012025_12_17_22_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8834438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8834438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8834438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:18:32.371711
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/18/image_23012025_12_18_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/18/image_23012025_12_18_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/18/image_23012025_12_18_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/18/image_23012025_12_18_34_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/12/18/image_23012025_12_18_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/18/image_23012025_12_18_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f789554a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f789554a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f789554a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:19:03.744907
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/18/image_23012025_12_18_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/18/image_23012025_12_18_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/18/image_23012025_12_18_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/18/image_23012025_12_18_34_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/12/18/image_23012025_12_18_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/18/image_23012025_12_18_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fabc264a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabc264a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabc264a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:19:32.478618
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/19/image_23012025_12_19_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/19/image_23012025_12_19_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/19/image_23012025_12_19_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/19/image_23012025_12_19_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/12/19/image_23012025_12_19_28_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/12/19/image_23012025_12_19_22_5193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fcb14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fcb14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fcb14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:20:03.332666
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/20/image_23012025_12_20_10_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/12/19/image_23012025_12_19_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/19/image_23012025_12_19_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/19/image_23012025_12_19_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/19/image_23012025_12_19_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/12/19/image_23012025_12_19_28_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c21d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c21d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c21d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:20:32.563525
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/20/image_23012025_12_20_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/20/image_23012025_12_20_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/20/image_23012025_12_20_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/20/image_23012025_12_20_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/20/image_23012025_12_20_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/20/image_23012025_12_20_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa12c6438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa12c6438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa12c6438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:21:03.706562
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/20/image_23012025_12_20_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/20/image_23012025_12_20_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/20/image_23012025_12_20_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/20/image_23012025_12_20_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/20/image_23012025_12_20_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/20/image_23012025_12_20_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae3634a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae3634a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae3634a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:21:32.667971
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/21/image_23012025_12_21_52_5195.jpg', 2), ('/home/nano/Desktop/images/23012025/12/21/image_23012025_12_21_47_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/12/21/image_23012025_12_21_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/21/image_23012025_12_21_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/12/21/image_23012025_12_21_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/21/image_23012025_12_21_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f784b14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f784b14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f784b14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:22:02.412722
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/21/image_23012025_12_21_52_5195.jpg', 2), ('/home/nano/Desktop/images/23012025/12/21/image_23012025_12_21_47_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/12/21/image_23012025_12_21_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/21/image_23012025_12_21_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/12/21/image_23012025_12_21_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/21/image_23012025_12_21_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac3604a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac3604a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac3604a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:22:31.764229
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/22/image_23012025_12_22_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/22/image_23012025_12_22_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/22/image_23012025_12_22_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/22/image_23012025_12_22_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/22/image_23012025_12_22_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/22/image_23012025_12_22_22_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa94734a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa94734a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa94734a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:23:02.854060
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/22/image_23012025_12_22_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/22/image_23012025_12_22_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/22/image_23012025_12_22_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/22/image_23012025_12_22_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/22/image_23012025_12_22_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/22/image_23012025_12_22_22_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f934934e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f934934e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f934934e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:23:31.897580
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/23/image_23012025_12_23_52_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/12/23/image_23012025_12_23_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/23/image_23012025_12_23_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/12/23/image_23012025_12_23_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/23/image_23012025_12_23_22_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/23/image_23012025_12_23_17_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f782054a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f782054a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f782054a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:24:02.971819
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/23/image_23012025_12_23_52_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/12/23/image_23012025_12_23_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/23/image_23012025_12_23_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/12/23/image_23012025_12_23_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/23/image_23012025_12_23_22_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/23/image_23012025_12_23_17_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f794e8438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f794e8438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f794e8438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:24:32.027224
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/24/image_23012025_12_24_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/24/image_23012025_12_24_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/24/image_23012025_12_24_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/24/image_23012025_12_24_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/12/24/image_23012025_12_24_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/24/image_23012025_12_24_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f78c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f78c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f78c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:25:02.842331
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/24/image_23012025_12_24_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/24/image_23012025_12_24_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/24/image_23012025_12_24_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/24/image_23012025_12_24_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/12/24/image_23012025_12_24_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/24/image_23012025_12_24_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f850f34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f850f34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f850f34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:25:32.122852
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/25/image_23012025_12_25_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/25/image_23012025_12_25_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/25/image_23012025_12_25_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/25/image_23012025_12_25_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/25/image_23012025_12_25_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/25/image_23012025_12_25_22_5189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8524b438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8524b438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8524b438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:26:02.686715
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/25/image_23012025_12_25_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/25/image_23012025_12_25_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/25/image_23012025_12_25_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/25/image_23012025_12_25_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/25/image_23012025_12_25_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/25/image_23012025_12_25_22_5189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4c914a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4c914a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4c914a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:26:32.212755
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/26/image_23012025_12_26_52_5195.jpg', 2), ('/home/nano/Desktop/images/23012025/12/26/image_23012025_12_26_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/26/image_23012025_12_26_40_6212.jpg', 2), ('/home/nano/Desktop/images/23012025/12/26/image_23012025_12_26_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/26/image_23012025_12_26_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/26/image_23012025_12_26_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7db3e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7db3e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7db3e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:27:03.382411
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/26/image_23012025_12_26_52_5195.jpg', 2), ('/home/nano/Desktop/images/23012025/12/26/image_23012025_12_26_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/26/image_23012025_12_26_40_6212.jpg', 2), ('/home/nano/Desktop/images/23012025/12/26/image_23012025_12_26_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/26/image_23012025_12_26_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/26/image_23012025_12_26_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8bf044a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bf044a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bf044a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:27:32.320621
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/27/image_23012025_12_27_52_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/12/27/image_23012025_12_27_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/27/image_23012025_12_27_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/27/image_23012025_12_27_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/27/image_23012025_12_27_28_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/12/27/image_23012025_12_27_22_5194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafa69438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafa69438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafa69438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:28:03.085234
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/27/image_23012025_12_27_52_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/12/27/image_23012025_12_27_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/27/image_23012025_12_27_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/27/image_23012025_12_27_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/27/image_23012025_12_27_28_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/12/27/image_23012025_12_27_22_5194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c5254a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c5254a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c5254a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:28:32.410399
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/28/image_23012025_12_28_52_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/12/28/image_23012025_12_28_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/28/image_23012025_12_28_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/28/image_23012025_12_28_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/28/image_23012025_12_28_28_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/12/28/image_23012025_12_28_22_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f948484a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f948484a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f948484a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:29:03.547587
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/28/image_23012025_12_28_52_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/12/28/image_23012025_12_28_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/28/image_23012025_12_28_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/28/image_23012025_12_28_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/28/image_23012025_12_28_28_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/12/28/image_23012025_12_28_22_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81b8e438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81b8e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81b8e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:29:32.542617
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/29/image_23012025_12_29_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/29/image_23012025_12_29_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/29/image_23012025_12_29_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/29/image_23012025_12_29_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/29/image_23012025_12_29_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/29/image_23012025_12_29_22_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84315438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84315438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84315438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:30:03.030048
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/29/image_23012025_12_29_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/29/image_23012025_12_29_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/29/image_23012025_12_29_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/29/image_23012025_12_29_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/29/image_23012025_12_29_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/29/image_23012025_12_29_22_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8bbe24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bbe24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bbe24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:30:32.616897
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/30/image_23012025_12_30_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/30/image_23012025_12_30_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/30/image_23012025_12_30_40_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/12/30/image_23012025_12_30_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/30/image_23012025_12_30_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/30/image_23012025_12_30_22_5189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c0d74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c0d74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c0d74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:31:03.603029
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/30/image_23012025_12_30_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/30/image_23012025_12_30_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/30/image_23012025_12_30_40_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/12/30/image_23012025_12_30_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/30/image_23012025_12_30_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/30/image_23012025_12_30_22_5189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f766504a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f766504a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f766504a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:31:32.728052
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/31/image_23012025_12_31_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/31/image_23012025_12_31_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/31/image_23012025_12_31_40_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/12/31/image_23012025_12_31_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/31/image_23012025_12_31_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/31/image_23012025_12_31_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa27b14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa27b14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa27b14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:32:02.606275
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/31/image_23012025_12_31_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/31/image_23012025_12_31_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/31/image_23012025_12_31_40_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/12/31/image_23012025_12_31_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/31/image_23012025_12_31_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/31/image_23012025_12_31_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9aa784a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9aa784a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9aa784a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:32:31.828997
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/32/image_23012025_12_32_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/32/image_23012025_12_32_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/32/image_23012025_12_32_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/32/image_23012025_12_32_22_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/32/image_23012025_12_32_17_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/12/32/image_23012025_12_32_10_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa735d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa735d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa735d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:33:02.914610
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/32/image_23012025_12_32_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/32/image_23012025_12_32_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/32/image_23012025_12_32_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/32/image_23012025_12_32_22_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/32/image_23012025_12_32_17_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/12/32/image_23012025_12_32_10_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f954374a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f954374a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f954374a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:33:31.931784
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/33/image_23012025_12_33_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/33/image_23012025_12_33_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/33/image_23012025_12_33_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/33/image_23012025_12_33_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/33/image_23012025_12_33_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/33/image_23012025_12_33_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9475a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9475a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9475a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:34:03.230669
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/33/image_23012025_12_33_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/33/image_23012025_12_33_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/33/image_23012025_12_33_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/33/image_23012025_12_33_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/33/image_23012025_12_33_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/33/image_23012025_12_33_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7959a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7959a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7959a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:34:32.090378
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/34/image_23012025_12_34_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/34/image_23012025_12_34_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/34/image_23012025_12_34_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/34/image_23012025_12_34_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/34/image_23012025_12_34_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/34/image_23012025_12_34_22_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac10c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac10c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac10c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:35:03.132191
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/34/image_23012025_12_34_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/34/image_23012025_12_34_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/34/image_23012025_12_34_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/34/image_23012025_12_34_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/34/image_23012025_12_34_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/34/image_23012025_12_34_22_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb18d44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb18d44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb18d44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:35:32.227292
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/35/image_23012025_12_35_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/35/image_23012025_12_35_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/35/image_23012025_12_35_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/35/image_23012025_12_35_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/35/image_23012025_12_35_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/35/image_23012025_12_35_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8862c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8862c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8862c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:36:02.976967
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/35/image_23012025_12_35_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/35/image_23012025_12_35_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/35/image_23012025_12_35_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/35/image_23012025_12_35_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/35/image_23012025_12_35_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/35/image_23012025_12_35_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ef1c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ef1c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ef1c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:36:32.312276
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/36/image_23012025_12_36_53_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/12/36/image_23012025_12_36_47_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/12/36/image_23012025_12_36_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/36/image_23012025_12_36_34_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/12/36/image_23012025_12_36_28_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/12/36/image_23012025_12_36_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5f674a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5f674a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5f674a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:37:03.322837
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/36/image_23012025_12_36_53_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/12/36/image_23012025_12_36_47_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/12/36/image_23012025_12_36_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/36/image_23012025_12_36_34_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/12/36/image_23012025_12_36_28_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/12/36/image_23012025_12_36_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f795b1438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f795b1438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f795b1438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:37:32.416281
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/37/image_23012025_12_37_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/37/image_23012025_12_37_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/37/image_23012025_12_37_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/37/image_23012025_12_37_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/37/image_23012025_12_37_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/37/image_23012025_12_37_22_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e4194a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e4194a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e4194a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:38:03.158458
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/37/image_23012025_12_37_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/37/image_23012025_12_37_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/37/image_23012025_12_37_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/37/image_23012025_12_37_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/37/image_23012025_12_37_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/37/image_23012025_12_37_22_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa543b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa543b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa543b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:38:32.500424
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/38/image_23012025_12_38_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/38/image_23012025_12_38_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/38/image_23012025_12_38_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/38/image_23012025_12_38_34_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/12/38/image_23012025_12_38_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/38/image_23012025_12_38_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f917d94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f917d94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f917d94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:39:03.812320
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/38/image_23012025_12_38_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/38/image_23012025_12_38_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/38/image_23012025_12_38_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/38/image_23012025_12_38_34_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/12/38/image_23012025_12_38_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/38/image_23012025_12_38_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97975438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97975438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97975438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:39:32.612667
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/39/image_23012025_12_39_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/39/image_23012025_12_39_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/39/image_23012025_12_39_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/39/image_23012025_12_39_34_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/12/39/image_23012025_12_39_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/39/image_23012025_12_39_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c4534a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c4534a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c4534a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:40:03.510161
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/39/image_23012025_12_39_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/39/image_23012025_12_39_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/39/image_23012025_12_39_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/39/image_23012025_12_39_34_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/12/39/image_23012025_12_39_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/39/image_23012025_12_39_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf809438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf809438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf809438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:40:32.700500
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/40/image_23012025_12_40_53_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/12/40/image_23012025_12_40_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/40/image_23012025_12_40_34_6213.jpg', 2), ('/home/nano/Desktop/images/23012025/12/40/image_23012025_12_40_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/40/image_23012025_12_40_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/40/image_23012025_12_40_17_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98e814a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98e814a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98e814a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:41:02.783513
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/41/image_23012025_12_41_17_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/12/40/image_23012025_12_40_53_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/12/40/image_23012025_12_40_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/40/image_23012025_12_40_34_6213.jpg', 2), ('/home/nano/Desktop/images/23012025/12/40/image_23012025_12_40_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/40/image_23012025_12_40_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf4c94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf4c94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf4c94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:41:31.818333
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/41/image_23012025_12_41_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/41/image_23012025_12_41_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/41/image_23012025_12_41_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/41/image_23012025_12_41_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/41/image_23012025_12_41_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/41/image_23012025_12_41_22_5192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8cfd84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cfd84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cfd84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:42:02.451816
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/41/image_23012025_12_41_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/41/image_23012025_12_41_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/41/image_23012025_12_41_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/41/image_23012025_12_41_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/41/image_23012025_12_41_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/41/image_23012025_12_41_22_5192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb34644a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb34644a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb34644a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:42:31.912261
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/42/image_23012025_12_42_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/42/image_23012025_12_42_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/42/image_23012025_12_42_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/42/image_23012025_12_42_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/12/42/image_23012025_12_42_28_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/12/42/image_23012025_12_42_23_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae6864a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae6864a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae6864a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:43:02.824537
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/42/image_23012025_12_42_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/42/image_23012025_12_42_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/42/image_23012025_12_42_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/42/image_23012025_12_42_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/12/42/image_23012025_12_42_28_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/12/42/image_23012025_12_42_23_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab5104a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab5104a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab5104a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:43:31.989272
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/43/image_23012025_12_43_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/43/image_23012025_12_43_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/43/image_23012025_12_43_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/43/image_23012025_12_43_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/43/image_23012025_12_43_23_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/12/43/image_23012025_12_43_17_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac4df4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac4df4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac4df4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:44:03.165181
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/43/image_23012025_12_43_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/43/image_23012025_12_43_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/43/image_23012025_12_43_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/43/image_23012025_12_43_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/43/image_23012025_12_43_23_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/12/43/image_23012025_12_43_17_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79a014a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79a014a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79a014a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:44:32.108089
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/44/image_23012025_12_44_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/12/44/image_23012025_12_44_34_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/12/44/image_23012025_12_44_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/44/image_23012025_12_44_23_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/44/image_23012025_12_44_17_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/44/image_23012025_12_44_10_6210.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80b4a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80b4a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80b4a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:45:03.060205
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/44/image_23012025_12_44_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/12/44/image_23012025_12_44_34_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/12/44/image_23012025_12_44_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/44/image_23012025_12_44_23_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/44/image_23012025_12_44_17_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/44/image_23012025_12_44_10_6210.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa55e14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa55e14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa55e14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:45:32.238111
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/45/image_23012025_12_45_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/45/image_23012025_12_45_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/45/image_23012025_12_45_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/12/45/image_23012025_12_45_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/45/image_23012025_12_45_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/45/image_23012025_12_45_23_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f923ba4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f923ba4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f923ba4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:46:03.142924
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/46/image_23012025_12_46_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/45/image_23012025_12_45_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/45/image_23012025_12_45_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/45/image_23012025_12_45_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/12/45/image_23012025_12_45_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/45/image_23012025_12_45_28_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f993ec4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f993ec4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f993ec4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:46:32.351604
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/46/image_23012025_12_46_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/46/image_23012025_12_46_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/46/image_23012025_12_46_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/46/image_23012025_12_46_28_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/12/46/image_23012025_12_46_23_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/12/46/image_23012025_12_46_17_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faccee438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faccee438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faccee438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:47:03.442663
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/46/image_23012025_12_46_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/46/image_23012025_12_46_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/46/image_23012025_12_46_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/46/image_23012025_12_46_28_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/12/46/image_23012025_12_46_23_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/12/46/image_23012025_12_46_17_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94f62438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94f62438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94f62438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:47:32.445723
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/47/image_23012025_12_47_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/47/image_23012025_12_47_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/47/image_23012025_12_47_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/47/image_23012025_12_47_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/47/image_23012025_12_47_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/47/image_23012025_12_47_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f881f04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f881f04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f881f04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:48:03.531673
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/47/image_23012025_12_47_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/47/image_23012025_12_47_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/47/image_23012025_12_47_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/47/image_23012025_12_47_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/47/image_23012025_12_47_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/47/image_23012025_12_47_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e81f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e81f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e81f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:48:32.559012
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/48/image_23012025_12_48_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/48/image_23012025_12_48_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/48/image_23012025_12_48_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/48/image_23012025_12_48_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/12/48/image_23012025_12_48_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/48/image_23012025_12_48_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81df84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81df84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81df84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:49:03.817840
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/48/image_23012025_12_48_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/48/image_23012025_12_48_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/48/image_23012025_12_48_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/48/image_23012025_12_48_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/12/48/image_23012025_12_48_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/48/image_23012025_12_48_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f71e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f71e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f71e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:49:32.691841
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/49/image_23012025_12_49_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/49/image_23012025_12_49_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/49/image_23012025_12_49_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/49/image_23012025_12_49_34_6211.jpg', 2), ('/home/nano/Desktop/images/23012025/12/49/image_23012025_12_49_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/49/image_23012025_12_49_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f871e14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f871e14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f871e14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:50:02.375796
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/49/image_23012025_12_49_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/49/image_23012025_12_49_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/49/image_23012025_12_49_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/49/image_23012025_12_49_34_6211.jpg', 2), ('/home/nano/Desktop/images/23012025/12/49/image_23012025_12_49_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/49/image_23012025_12_49_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2d7a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2d7a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2d7a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:50:31.845837
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/50/image_23012025_12_50_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/50/image_23012025_12_50_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/50/image_23012025_12_50_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/50/image_23012025_12_50_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/12/50/image_23012025_12_50_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/50/image_23012025_12_50_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9da314a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9da314a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9da314a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:51:02.947930
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/50/image_23012025_12_50_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/50/image_23012025_12_50_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/50/image_23012025_12_50_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/50/image_23012025_12_50_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/12/50/image_23012025_12_50_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/50/image_23012025_12_50_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f842374a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f842374a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f842374a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:51:31.977022
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/51/image_23012025_12_51_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/51/image_23012025_12_51_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/51/image_23012025_12_51_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/51/image_23012025_12_51_34_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/12/51/image_23012025_12_51_28_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/12/51/image_23012025_12_51_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa01d14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa01d14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa01d14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:52:03.031634
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/51/image_23012025_12_51_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/51/image_23012025_12_51_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/51/image_23012025_12_51_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/51/image_23012025_12_51_34_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/12/51/image_23012025_12_51_28_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/12/51/image_23012025_12_51_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae3fb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae3fb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae3fb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:52:32.091731
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/52/image_23012025_12_52_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/52/image_23012025_12_52_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/52/image_23012025_12_52_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/52/image_23012025_12_52_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/52/image_23012025_12_52_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/52/image_23012025_12_52_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77b044a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77b044a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77b044a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:53:03.228509
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/52/image_23012025_12_52_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/52/image_23012025_12_52_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/52/image_23012025_12_52_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/52/image_23012025_12_52_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/12/52/image_23012025_12_52_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/52/image_23012025_12_52_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85cf3470>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85cf3470>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85cf3470>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:53:32.172339
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/53/image_23012025_12_53_53_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/53/image_23012025_12_53_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/53/image_23012025_12_53_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/53/image_23012025_12_53_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/53/image_23012025_12_53_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/53/image_23012025_12_53_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb55404a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb55404a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb55404a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:54:03.543467
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/53/image_23012025_12_53_53_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/53/image_23012025_12_53_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/53/image_23012025_12_53_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/53/image_23012025_12_53_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/53/image_23012025_12_53_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/12/53/image_23012025_12_53_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b4084a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b4084a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b4084a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:54:32.281488
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/54/image_23012025_12_54_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/54/image_23012025_12_54_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/54/image_23012025_12_54_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/54/image_23012025_12_54_34_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/12/54/image_23012025_12_54_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/54/image_23012025_12_54_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa684a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa684a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa684a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:55:03.317684
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/54/image_23012025_12_54_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/54/image_23012025_12_54_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/54/image_23012025_12_54_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/54/image_23012025_12_54_34_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/12/54/image_23012025_12_54_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/12/54/image_23012025_12_54_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fab64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fab64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fab64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:55:32.376510
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/55/image_23012025_12_55_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/55/image_23012025_12_55_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/55/image_23012025_12_55_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/55/image_23012025_12_55_34_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/12/55/image_23012025_12_55_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/12/55/image_23012025_12_55_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ed474a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ed474a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ed474a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:56:03.249271
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/55/image_23012025_12_55_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/55/image_23012025_12_55_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/55/image_23012025_12_55_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/12/55/image_23012025_12_55_34_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/12/55/image_23012025_12_55_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/12/55/image_23012025_12_55_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7eea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7eea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7eea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:56:32.460839
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/56/image_23012025_12_56_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/56/image_23012025_12_56_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/56/image_23012025_12_56_40_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/12/56/image_23012025_12_56_34_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/12/56/image_23012025_12_56_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/12/56/image_23012025_12_56_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c8d1438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c8d1438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c8d1438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:57:03.644130
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/56/image_23012025_12_56_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/56/image_23012025_12_56_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/56/image_23012025_12_56_40_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/12/56/image_23012025_12_56_34_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/12/56/image_23012025_12_56_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/12/56/image_23012025_12_56_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9182c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9182c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9182c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:57:32.574817
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/57/image_23012025_12_57_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/57/image_23012025_12_57_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/12/57/image_23012025_12_57_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/57/image_23012025_12_57_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/12/57/image_23012025_12_57_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/12/57/image_23012025_12_57_23_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa66ab4e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa66ab4e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa66ab4e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:59:03.603551
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/58/image_23012025_12_58_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/58/image_23012025_12_58_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/58/image_23012025_12_58_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/12/58/image_23012025_12_58_34_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/12/58/image_23012025_12_58_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/12/58/image_23012025_12_58_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82ad34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82ad34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82ad34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 12:59:32.537022
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/59/image_23012025_12_59_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/59/image_23012025_12_59_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/59/image_23012025_12_59_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/12/59/image_23012025_12_59_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/12/59/image_23012025_12_59_16_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/12/59/image_23012025_12_59_10_6203.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82db4438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82db4438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82db4438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:00:03.253780
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/12/59/image_23012025_12_59_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/59/image_23012025_12_59_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/12/59/image_23012025_12_59_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/12/59/image_23012025_12_59_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/12/59/image_23012025_12_59_16_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/12/59/image_23012025_12_59_10_6203.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88580438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88580438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88580438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:00:32.644973
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/00/image_23012025_13_00_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/13/00/image_23012025_13_00_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/00/image_23012025_13_00_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/13/00/image_23012025_13_00_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/00/image_23012025_13_00_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/00/image_23012025_13_00_16_6234.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fadd584a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadd584a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadd584a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:01:03.579185
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/00/image_23012025_13_00_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/13/00/image_23012025_13_00_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/00/image_23012025_13_00_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/13/00/image_23012025_13_00_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/00/image_23012025_13_00_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/00/image_23012025_13_00_16_6234.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8dff0438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dff0438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dff0438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:01:32.734367
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/01/image_23012025_13_01_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/01/image_23012025_13_01_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/01/image_23012025_13_01_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/13/01/image_23012025_13_01_34_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/13/01/image_23012025_13_01_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/01/image_23012025_13_01_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7de87438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7de87438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7de87438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:02:02.534487
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/02/image_23012025_13_02_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/01/image_23012025_13_01_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/01/image_23012025_13_01_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/01/image_23012025_13_01_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/13/01/image_23012025_13_01_34_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/13/01/image_23012025_13_01_28_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2f0a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2f0a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2f0a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:02:31.815904
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/02/image_23012025_13_02_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/02/image_23012025_13_02_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/02/image_23012025_13_02_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/02/image_23012025_13_02_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/13/02/image_23012025_13_02_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/02/image_23012025_13_02_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90aae4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90aae4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90aae4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:03:02.997875
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/02/image_23012025_13_02_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/02/image_23012025_13_02_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/02/image_23012025_13_02_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/02/image_23012025_13_02_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/13/02/image_23012025_13_02_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/02/image_23012025_13_02_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f918a74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f918a74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f918a74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:03:31.927376
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/03/image_23012025_13_03_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/03/image_23012025_13_03_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/03/image_23012025_13_03_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/03/image_23012025_13_03_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/03/image_23012025_13_03_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/03/image_23012025_13_03_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9433e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9433e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9433e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:04:03.276093
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/03/image_23012025_13_03_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/03/image_23012025_13_03_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/03/image_23012025_13_03_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/03/image_23012025_13_03_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/03/image_23012025_13_03_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/03/image_23012025_13_03_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d23f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d23f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d23f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:04:32.043415
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/04/image_23012025_13_04_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/04/image_23012025_13_04_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/04/image_23012025_13_04_40_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/13/04/image_23012025_13_04_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/04/image_23012025_13_04_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/04/image_23012025_13_04_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f798a94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f798a94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f798a94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:05:03.107616
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/04/image_23012025_13_04_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/04/image_23012025_13_04_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/04/image_23012025_13_04_40_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/13/04/image_23012025_13_04_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/04/image_23012025_13_04_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/04/image_23012025_13_04_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80ee64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80ee64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80ee64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:05:32.216844
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/05/image_23012025_13_05_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/05/image_23012025_13_05_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/05/image_23012025_13_05_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/13/05/image_23012025_13_05_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/05/image_23012025_13_05_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/05/image_23012025_13_05_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ffd44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ffd44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ffd44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:06:02.969807
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/05/image_23012025_13_05_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/05/image_23012025_13_05_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/05/image_23012025_13_05_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/13/05/image_23012025_13_05_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/05/image_23012025_13_05_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/05/image_23012025_13_05_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c777438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c777438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c777438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:06:32.361045
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/06/image_23012025_13_06_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/06/image_23012025_13_06_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/06/image_23012025_13_06_40_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/13/06/image_23012025_13_06_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/06/image_23012025_13_06_29_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/06/image_23012025_13_06_16_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93411438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93411438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93411438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:07:03.454249
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/07/image_23012025_13_07_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/06/image_23012025_13_06_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/06/image_23012025_13_06_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/06/image_23012025_13_06_40_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/13/06/image_23012025_13_06_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/06/image_23012025_13_06_29_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ad584a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ad584a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ad584a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:07:32.464395
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/07/image_23012025_13_07_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/07/image_23012025_13_07_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/07/image_23012025_13_07_40_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/07/image_23012025_13_07_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/07/image_23012025_13_07_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/07/image_23012025_13_07_22_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86db34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86db34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86db34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:08:03.229011
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/07/image_23012025_13_07_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/07/image_23012025_13_07_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/07/image_23012025_13_07_40_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/07/image_23012025_13_07_34_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/07/image_23012025_13_07_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/07/image_23012025_13_07_22_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f774c64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f774c64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f774c64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:08:32.561090
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/08/image_23012025_13_08_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/08/image_23012025_13_08_46_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/13/08/image_23012025_13_08_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/13/08/image_23012025_13_08_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/08/image_23012025_13_08_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/08/image_23012025_13_08_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7afce4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7afce4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7afce4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:09:03.952244
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/08/image_23012025_13_08_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/08/image_23012025_13_08_46_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/13/08/image_23012025_13_08_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/13/08/image_23012025_13_08_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/08/image_23012025_13_08_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/08/image_23012025_13_08_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb451b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb451b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb451b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:09:32.691485
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/09/image_23012025_13_09_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/09/image_23012025_13_09_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/09/image_23012025_13_09_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/13/09/image_23012025_13_09_34_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/13/09/image_23012025_13_09_29_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/09/image_23012025_13_09_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2ded438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2ded438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2ded438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:10:02.615897
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/09/image_23012025_13_09_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/09/image_23012025_13_09_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/09/image_23012025_13_09_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/13/09/image_23012025_13_09_34_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/13/09/image_23012025_13_09_29_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/09/image_23012025_13_09_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb63114a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb63114a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb63114a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:10:31.794592
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/10/image_23012025_13_10_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/10/image_23012025_13_10_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/10/image_23012025_13_10_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/10/image_23012025_13_10_16_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/10/image_23012025_13_10_10_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/13/10/image_23012025_13_10_04_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f867544a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f867544a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f867544a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:11:02.878616
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/10/image_23012025_13_10_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/10/image_23012025_13_10_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/10/image_23012025_13_10_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/10/image_23012025_13_10_16_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/10/image_23012025_13_10_10_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/13/10/image_23012025_13_10_04_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f834714a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f834714a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f834714a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:11:31.876483
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/11/image_23012025_13_11_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/11/image_23012025_13_11_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/11/image_23012025_13_11_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/11/image_23012025_13_11_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/11/image_23012025_13_11_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/11/image_23012025_13_11_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a91b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a91b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a91b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:12:02.708718
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/12/image_23012025_13_12_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/11/image_23012025_13_11_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/11/image_23012025_13_11_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/11/image_23012025_13_11_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/11/image_23012025_13_11_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/11/image_23012025_13_11_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb26e14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb26e14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb26e14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:12:31.971677
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/12/image_23012025_13_12_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/13/12/image_23012025_13_12_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/12/image_23012025_13_12_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/12/image_23012025_13_12_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/12/image_23012025_13_12_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/12/image_23012025_13_12_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9726c438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9726c438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9726c438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:13:02.977598
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/12/image_23012025_13_12_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/13/12/image_23012025_13_12_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/12/image_23012025_13_12_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/12/image_23012025_13_12_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/12/image_23012025_13_12_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/12/image_23012025_13_12_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faaebf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaebf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaebf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:13:32.079006
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/13/image_23012025_13_13_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/13/image_23012025_13_13_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/13/image_23012025_13_13_35_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/13/image_23012025_13_13_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/13/13/image_23012025_13_13_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/13/image_23012025_13_13_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91d3f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91d3f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91d3f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:14:03.092345
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/13/image_23012025_13_13_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/13/image_23012025_13_13_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/13/image_23012025_13_13_35_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/13/image_23012025_13_13_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/13/13/image_23012025_13_13_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/13/image_23012025_13_13_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d193438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d193438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d193438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:14:32.233741
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/14/image_23012025_13_14_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/14/image_23012025_13_14_40_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/13/14/image_23012025_13_14_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/14/image_23012025_13_14_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/13/image_23012025_13_14_05_6228.jpg', 2), ('/home/nano/Desktop/images/23012025/13/13/image_23012025_13_13_58_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2f534a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2f534a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2f534a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:15:03.246232
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/14/image_23012025_13_14_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/14/image_23012025_13_14_40_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/13/14/image_23012025_13_14_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/14/image_23012025_13_14_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/13/image_23012025_13_14_05_6228.jpg', 2), ('/home/nano/Desktop/images/23012025/13/13/image_23012025_13_13_58_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fadf74438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadf74438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadf74438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:15:32.331914
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/15/image_23012025_13_15_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/15/image_23012025_13_15_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/13/15/image_23012025_13_15_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/15/image_23012025_13_15_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/15/image_23012025_13_15_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/15/image_23012025_13_15_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa73f04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa73f04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa73f04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:16:03.132569
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/15/image_23012025_13_15_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/15/image_23012025_13_15_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/13/15/image_23012025_13_15_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/15/image_23012025_13_15_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/15/image_23012025_13_15_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/15/image_23012025_13_15_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a5114a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a5114a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a5114a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:16:32.447426
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/16/image_23012025_13_16_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/16/image_23012025_13_16_46_6210.jpg', 2), ('/home/nano/Desktop/images/23012025/13/16/image_23012025_13_16_40_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/13/16/image_23012025_13_16_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/16/image_23012025_13_16_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/13/16/image_23012025_13_16_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f820ba4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f820ba4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f820ba4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:17:03.352133
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/16/image_23012025_13_16_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/16/image_23012025_13_16_46_6210.jpg', 2), ('/home/nano/Desktop/images/23012025/13/16/image_23012025_13_16_40_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/13/16/image_23012025_13_16_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/16/image_23012025_13_16_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/13/16/image_23012025_13_16_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91bf34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91bf34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91bf34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:17:32.533867
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/17/image_23012025_13_17_52_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/13/17/image_23012025_13_17_46_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/13/17/image_23012025_13_17_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/17/image_23012025_13_17_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/17/image_23012025_13_17_10_5200.jpg', 2), ('/home/nano/Desktop/images/23012025/13/16/image_23012025_13_17_05_6216.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a29c438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a29c438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a29c438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:18:03.191250
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/17/image_23012025_13_17_52_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/13/17/image_23012025_13_17_46_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/13/17/image_23012025_13_17_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/17/image_23012025_13_17_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/17/image_23012025_13_17_10_5200.jpg', 2), ('/home/nano/Desktop/images/23012025/13/16/image_23012025_13_17_05_6216.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa58b6438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa58b6438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa58b6438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:18:32.640282
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/18/image_23012025_13_18_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/18/image_23012025_13_18_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/18/image_23012025_13_18_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/18/image_23012025_13_18_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/18/image_23012025_13_18_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/18/image_23012025_13_18_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93ae44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93ae44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93ae44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:19:04.102300
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/18/image_23012025_13_18_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/18/image_23012025_13_18_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/18/image_23012025_13_18_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/18/image_23012025_13_18_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/18/image_23012025_13_18_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/18/image_23012025_13_18_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8311f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8311f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8311f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:19:32.813313
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/19/image_23012025_13_19_46_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/13/19/image_23012025_13_19_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/19/image_23012025_13_19_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/19/image_23012025_13_19_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/19/image_23012025_13_19_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/19/image_23012025_13_19_16_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8edd64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8edd64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8edd64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:20:02.645042
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/19/image_23012025_13_19_46_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/13/19/image_23012025_13_19_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/19/image_23012025_13_19_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/19/image_23012025_13_19_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/19/image_23012025_13_19_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/19/image_23012025_13_19_16_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ddf74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ddf74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ddf74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:20:31.923922
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/20/image_23012025_13_20_52_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/13/20/image_23012025_13_20_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/20/image_23012025_13_20_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/20/image_23012025_13_20_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/13/20/image_23012025_13_20_22_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/13/20/image_23012025_13_20_16_5197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91e0d438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91e0d438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91e0d438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:21:02.918805
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/20/image_23012025_13_20_52_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/13/20/image_23012025_13_20_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/20/image_23012025_13_20_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/20/image_23012025_13_20_28_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/13/20/image_23012025_13_20_22_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/13/20/image_23012025_13_20_16_5197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0956438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0956438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0956438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:21:32.056845
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/21/image_23012025_13_21_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/21/image_23012025_13_21_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/21/image_23012025_13_21_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/21/image_23012025_13_21_16_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/21/image_23012025_13_21_11_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/20/image_23012025_13_21_04_6215.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6c154a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6c154a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6c154a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:22:02.777804
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/21/image_23012025_13_21_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/21/image_23012025_13_21_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/21/image_23012025_13_21_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/21/image_23012025_13_21_16_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/21/image_23012025_13_21_11_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/20/image_23012025_13_21_04_6215.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c0a04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c0a04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c0a04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:22:32.136722
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/22/image_23012025_13_22_52_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/13/22/image_23012025_13_22_46_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/13/22/image_23012025_13_22_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/22/image_23012025_13_22_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/22/image_23012025_13_22_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/22/image_23012025_13_22_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9650f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9650f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9650f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:23:03.172617
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/22/image_23012025_13_22_52_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/13/22/image_23012025_13_22_46_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/13/22/image_23012025_13_22_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/22/image_23012025_13_22_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/22/image_23012025_13_22_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/22/image_23012025_13_22_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9120d4e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9120d4e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9120d4e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:23:32.244218
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/23/image_23012025_13_23_52_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/13/23/image_23012025_13_23_46_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/13/23/image_23012025_13_23_41_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/13/23/image_23012025_13_23_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/23/image_23012025_13_23_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/23/image_23012025_13_23_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c7834a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c7834a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c7834a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:24:03.590685
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/23/image_23012025_13_23_52_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/13/23/image_23012025_13_23_46_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/13/23/image_23012025_13_23_41_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/13/23/image_23012025_13_23_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/23/image_23012025_13_23_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/23/image_23012025_13_23_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb24bb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb24bb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb24bb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:24:32.396287
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/24/image_23012025_13_24_52_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/13/24/image_23012025_13_24_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/24/image_23012025_13_24_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/24/image_23012025_13_24_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/24/image_23012025_13_24_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/24/image_23012025_13_24_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89c314a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89c314a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89c314a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:25:03.416613
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/24/image_23012025_13_24_52_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/13/24/image_23012025_13_24_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/24/image_23012025_13_24_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/24/image_23012025_13_24_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/24/image_23012025_13_24_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/24/image_23012025_13_24_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86125438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86125438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86125438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:25:32.510764
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/25/image_23012025_13_25_52_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/13/25/image_23012025_13_25_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/25/image_23012025_13_25_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/25/image_23012025_13_25_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/25/image_23012025_13_25_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/25/image_23012025_13_25_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f992c84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f992c84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f992c84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:26:03.227156
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/25/image_23012025_13_25_52_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/13/25/image_23012025_13_25_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/25/image_23012025_13_25_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/25/image_23012025_13_25_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/25/image_23012025_13_25_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/25/image_23012025_13_25_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa71d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa71d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa71d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:26:32.584420
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/26/image_23012025_13_26_52_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/13/26/image_23012025_13_26_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/26/image_23012025_13_26_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/26/image_23012025_13_26_28_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/13/26/image_23012025_13_26_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/26/image_23012025_13_26_16_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab5684a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab5684a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab5684a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:27:03.605203
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/26/image_23012025_13_26_52_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/13/26/image_23012025_13_26_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/26/image_23012025_13_26_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/26/image_23012025_13_26_28_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/13/26/image_23012025_13_26_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/26/image_23012025_13_26_16_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f917ff4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f917ff4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f917ff4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:27:32.729551
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/27/image_23012025_13_27_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/27/image_23012025_13_27_46_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/13/27/image_23012025_13_27_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/27/image_23012025_13_27_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/27/image_23012025_13_27_28_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/27/image_23012025_13_27_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa65e54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa65e54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa65e54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:28:02.369848
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/27/image_23012025_13_27_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/27/image_23012025_13_27_46_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/13/27/image_23012025_13_27_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/27/image_23012025_13_27_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/27/image_23012025_13_27_28_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/27/image_23012025_13_27_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89c3c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89c3c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89c3c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:28:31.821622
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/28/image_23012025_13_28_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/28/image_23012025_13_28_47_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/13/28/image_23012025_13_28_41_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/13/28/image_23012025_13_28_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/28/image_23012025_13_28_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/28/image_23012025_13_28_22_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f937764a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f937764a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f937764a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:29:03.095822
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/28/image_23012025_13_28_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/28/image_23012025_13_28_47_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/13/28/image_23012025_13_28_41_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/13/28/image_23012025_13_28_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/28/image_23012025_13_28_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/28/image_23012025_13_28_22_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fc544a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fc544a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fc544a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:29:31.924325
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/29/image_23012025_13_29_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/29/image_23012025_13_29_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/29/image_23012025_13_29_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/29/image_23012025_13_29_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/29/image_23012025_13_29_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/29/image_23012025_13_29_22_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb324f438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb324f438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb324f438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:30:02.612640
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/29/image_23012025_13_29_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/29/image_23012025_13_29_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/29/image_23012025_13_29_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/29/image_23012025_13_29_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/29/image_23012025_13_29_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/29/image_23012025_13_29_22_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f827aa438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f827aa438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f827aa438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:30:32.049936
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/30/image_23012025_13_30_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/30/image_23012025_13_30_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/30/image_23012025_13_30_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/30/image_23012025_13_30_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/30/image_23012025_13_30_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/30/image_23012025_13_30_17_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94eb74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94eb74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94eb74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:31:03.120200
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/30/image_23012025_13_30_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/30/image_23012025_13_30_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/30/image_23012025_13_30_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/30/image_23012025_13_30_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/30/image_23012025_13_30_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/30/image_23012025_13_30_17_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87a1c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87a1c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87a1c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:31:32.112034
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/31/image_23012025_13_31_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/31/image_23012025_13_31_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/31/image_23012025_13_31_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/31/image_23012025_13_31_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/31/image_23012025_13_31_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/31/image_23012025_13_31_22_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d6184a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d6184a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d6184a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:32:02.730465
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/31/image_23012025_13_31_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/31/image_23012025_13_31_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/31/image_23012025_13_31_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/31/image_23012025_13_31_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/31/image_23012025_13_31_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/31/image_23012025_13_31_22_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f823fb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f823fb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f823fb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:32:32.227306
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/32/image_23012025_13_32_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/32/image_23012025_13_32_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/32/image_23012025_13_32_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/32/image_23012025_13_32_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/32/image_23012025_13_32_22_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/32/image_23012025_13_32_17_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafa55438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafa55438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafa55438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:33:02.979142
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/32/image_23012025_13_32_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/32/image_23012025_13_32_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/32/image_23012025_13_32_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/32/image_23012025_13_32_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/32/image_23012025_13_32_22_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/32/image_23012025_13_32_17_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f927d24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f927d24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f927d24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:33:32.305824
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/33/image_23012025_13_33_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/13/33/image_23012025_13_33_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/33/image_23012025_13_33_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/33/image_23012025_13_33_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/33/image_23012025_13_33_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/33/image_23012025_13_33_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95df04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95df04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95df04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:34:03.293381
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/33/image_23012025_13_33_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/13/33/image_23012025_13_33_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/33/image_23012025_13_33_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/33/image_23012025_13_33_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/33/image_23012025_13_33_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/33/image_23012025_13_33_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f834ca438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f834ca438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f834ca438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:34:32.391717
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/34/image_23012025_13_34_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/34/image_23012025_13_34_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/34/image_23012025_13_34_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/34/image_23012025_13_34_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/34/image_23012025_13_34_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/34/image_23012025_13_34_22_5189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f875584a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f875584a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f875584a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:35:03.087774
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/34/image_23012025_13_34_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/34/image_23012025_13_34_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/34/image_23012025_13_34_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/34/image_23012025_13_34_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/34/image_23012025_13_34_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/34/image_23012025_13_34_22_5189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f935d8438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f935d8438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f935d8438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:35:32.497807
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/35/image_23012025_13_35_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/35/image_23012025_13_35_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/35/image_23012025_13_35_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/35/image_23012025_13_35_17_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/35/image_23012025_13_35_10_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/13/34/image_23012025_13_34_58_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8261a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8261a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8261a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:36:03.451229
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/35/image_23012025_13_35_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/35/image_23012025_13_35_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/35/image_23012025_13_35_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/35/image_23012025_13_35_17_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/35/image_23012025_13_35_10_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/13/34/image_23012025_13_34_58_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafdc44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafdc44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafdc44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:36:32.585568
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/36/image_23012025_13_36_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/36/image_23012025_13_36_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/36/image_23012025_13_36_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/36/image_23012025_13_36_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/36/image_23012025_13_36_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/36/image_23012025_13_36_22_5185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb19194a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb19194a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb19194a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:37:03.550935
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/36/image_23012025_13_36_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/36/image_23012025_13_36_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/36/image_23012025_13_36_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/36/image_23012025_13_36_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/36/image_23012025_13_36_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/36/image_23012025_13_36_22_5185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa54f24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa54f24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa54f24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:37:32.712290
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/37/image_23012025_13_37_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/37/image_23012025_13_37_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/37/image_23012025_13_37_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/13/37/image_23012025_13_37_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/37/image_23012025_13_37_23_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/37/image_23012025_13_37_17_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ac0b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ac0b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ac0b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:38:02.469101
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/37/image_23012025_13_37_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/37/image_23012025_13_37_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/37/image_23012025_13_37_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/13/37/image_23012025_13_37_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/37/image_23012025_13_37_23_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/37/image_23012025_13_37_17_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9af1d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9af1d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9af1d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:38:31.799575
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/38/image_23012025_13_38_58_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/38/image_23012025_13_38_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/38/image_23012025_13_38_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/38/image_23012025_13_38_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/13/38/image_23012025_13_38_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/38/image_23012025_13_38_10_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8de404a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8de404a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8de404a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:39:03.141602
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/38/image_23012025_13_38_58_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/38/image_23012025_13_38_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/38/image_23012025_13_38_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/38/image_23012025_13_38_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/13/38/image_23012025_13_38_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/38/image_23012025_13_38_10_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa61534a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa61534a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa61534a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:39:31.959695
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/39/image_23012025_13_39_53_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/13/39/image_23012025_13_39_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/39/image_23012025_13_39_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/39/image_23012025_13_39_34_6210.jpg', 2), ('/home/nano/Desktop/images/23012025/13/39/image_23012025_13_39_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/39/image_23012025_13_39_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f880aa4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f880aa4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f880aa4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:40:02.896003
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/39/image_23012025_13_39_53_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/13/39/image_23012025_13_39_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/39/image_23012025_13_39_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/39/image_23012025_13_39_34_6210.jpg', 2), ('/home/nano/Desktop/images/23012025/13/39/image_23012025_13_39_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/39/image_23012025_13_39_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f884334a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f884334a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f884334a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:40:32.063347
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/40/image_23012025_13_40_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/40/image_23012025_13_40_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/40/image_23012025_13_40_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/40/image_23012025_13_40_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/40/image_23012025_13_40_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/13/40/image_23012025_13_40_23_6203.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f887364a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f887364a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f887364a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:41:02.924767
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/40/image_23012025_13_40_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/40/image_23012025_13_40_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/40/image_23012025_13_40_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/40/image_23012025_13_40_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/40/image_23012025_13_40_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/13/40/image_23012025_13_40_23_6203.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3e4c438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3e4c438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3e4c438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:41:32.167433
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/41/image_23012025_13_41_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/41/image_23012025_13_41_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/41/image_23012025_13_41_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/41/image_23012025_13_41_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/41/image_23012025_13_41_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/41/image_23012025_13_41_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa10a14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa10a14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa10a14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:42:02.983492
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/41/image_23012025_13_41_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/41/image_23012025_13_41_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/41/image_23012025_13_41_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/41/image_23012025_13_41_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/41/image_23012025_13_41_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/41/image_23012025_13_41_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa56f04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa56f04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa56f04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:42:32.257110
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/42/image_23012025_13_42_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/42/image_23012025_13_42_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/42/image_23012025_13_42_34_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/13/42/image_23012025_13_42_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/42/image_23012025_13_42_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/42/image_23012025_13_42_16_6203.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85aa54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85aa54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85aa54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:43:03.247933
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/42/image_23012025_13_42_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/42/image_23012025_13_42_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/42/image_23012025_13_42_34_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/13/42/image_23012025_13_42_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/42/image_23012025_13_42_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/42/image_23012025_13_42_16_6203.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bb794a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bb794a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bb794a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:43:32.360082
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/43/image_23012025_13_43_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/43/image_23012025_13_43_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/43/image_23012025_13_43_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/43/image_23012025_13_43_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/43/image_23012025_13_43_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/43/image_23012025_13_43_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b1044a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b1044a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b1044a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:44:03.691162
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/43/image_23012025_13_43_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/43/image_23012025_13_43_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/43/image_23012025_13_43_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/43/image_23012025_13_43_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/43/image_23012025_13_43_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/43/image_23012025_13_43_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e8904a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e8904a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e8904a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:44:32.557811
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/44/image_23012025_13_44_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/44/image_23012025_13_44_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/13/44/image_23012025_13_44_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/44/image_23012025_13_44_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/44/image_23012025_13_44_16_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/13/44/image_23012025_13_44_10_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ec224a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ec224a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ec224a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:45:03.652707
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/44/image_23012025_13_44_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/44/image_23012025_13_44_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/13/44/image_23012025_13_44_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/44/image_23012025_13_44_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/44/image_23012025_13_44_16_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/13/44/image_23012025_13_44_10_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa851d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa851d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa851d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:45:32.654033
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/45/image_23012025_13_45_53_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/45/image_23012025_13_45_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/45/image_23012025_13_45_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/45/image_23012025_13_45_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/13/45/image_23012025_13_45_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/45/image_23012025_13_45_23_6205.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bc0d438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bc0d438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bc0d438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:46:02.530932
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/45/image_23012025_13_45_53_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/45/image_23012025_13_45_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/45/image_23012025_13_45_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/45/image_23012025_13_45_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/13/45/image_23012025_13_45_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/45/image_23012025_13_45_23_6205.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f781774a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f781774a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f781774a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:46:31.759114
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/46/image_23012025_13_46_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/46/image_23012025_13_46_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/13/46/image_23012025_13_46_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/46/image_23012025_13_46_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/46/image_23012025_13_46_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/46/image_23012025_13_46_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9abbf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9abbf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9abbf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:47:02.775660
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/46/image_23012025_13_46_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/46/image_23012025_13_46_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/13/46/image_23012025_13_46_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/46/image_23012025_13_46_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/46/image_23012025_13_46_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/46/image_23012025_13_46_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8379f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8379f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8379f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:47:31.853666
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/47/image_23012025_13_47_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/47/image_23012025_13_47_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/47/image_23012025_13_47_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/47/image_23012025_13_47_16_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/13/47/image_23012025_13_47_10_6212.jpg', 2), ('/home/nano/Desktop/images/23012025/13/46/image_23012025_13_47_04_6220.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e3534a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e3534a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e3534a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:48:02.644469
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/47/image_23012025_13_47_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/47/image_23012025_13_47_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/47/image_23012025_13_47_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/47/image_23012025_13_47_16_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/13/47/image_23012025_13_47_10_6212.jpg', 2), ('/home/nano/Desktop/images/23012025/13/46/image_23012025_13_47_04_6220.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92be44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92be44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92be44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:48:31.963415
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/48/image_23012025_13_48_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/48/image_23012025_13_48_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/48/image_23012025_13_48_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/48/image_23012025_13_48_34_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/13/48/image_23012025_13_48_28_5219.jpg', 2), ('/home/nano/Desktop/images/23012025/13/48/image_23012025_13_48_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1d7a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1d7a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1d7a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:49:03.378696
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/48/image_23012025_13_49_04_6226.jpg', 2), ('/home/nano/Desktop/images/23012025/13/48/image_23012025_13_48_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/48/image_23012025_13_48_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/48/image_23012025_13_48_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/48/image_23012025_13_48_34_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/13/48/image_23012025_13_48_28_5219.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79c0d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79c0d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79c0d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:49:32.096203
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/49/image_23012025_13_49_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/49/image_23012025_13_49_40_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/49/image_23012025_13_49_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/13/49/image_23012025_13_49_28_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/13/49/image_23012025_13_49_16_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/49/image_23012025_13_49_10_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fadb6d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadb6d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadb6d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:50:02.698706
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/49/image_23012025_13_49_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/49/image_23012025_13_49_40_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/49/image_23012025_13_49_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/13/49/image_23012025_13_49_28_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/13/49/image_23012025_13_49_16_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/49/image_23012025_13_49_10_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad5f14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad5f14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad5f14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:50:32.169481
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/50/image_23012025_13_50_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/50/image_23012025_13_50_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/50/image_23012025_13_50_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/50/image_23012025_13_50_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/13/50/image_23012025_13_50_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/50/image_23012025_13_50_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f910a54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f910a54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f910a54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:51:03.230477
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/50/image_23012025_13_50_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/50/image_23012025_13_50_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/50/image_23012025_13_50_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/50/image_23012025_13_50_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/13/50/image_23012025_13_50_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/50/image_23012025_13_50_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa140d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa140d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa140d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:51:32.262738
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/51/image_23012025_13_51_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/51/image_23012025_13_51_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/51/image_23012025_13_51_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/51/image_23012025_13_51_34_6248.jpg', 2), ('/home/nano/Desktop/images/23012025/13/51/image_23012025_13_51_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/51/image_23012025_13_51_16_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb25ea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb25ea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb25ea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:52:03.132767
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/51/image_23012025_13_51_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/51/image_23012025_13_51_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/51/image_23012025_13_51_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/51/image_23012025_13_51_34_6248.jpg', 2), ('/home/nano/Desktop/images/23012025/13/51/image_23012025_13_51_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/13/51/image_23012025_13_51_16_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7908a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7908a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7908a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:52:32.417272
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/52/image_23012025_13_52_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/52/image_23012025_13_52_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/52/image_23012025_13_52_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/52/image_23012025_13_52_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/52/image_23012025_13_52_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/52/image_23012025_13_52_16_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e43f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e43f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e43f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:53:03.381028
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/52/image_23012025_13_52_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/52/image_23012025_13_52_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/52/image_23012025_13_52_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/52/image_23012025_13_52_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/52/image_23012025_13_52_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/52/image_23012025_13_52_16_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90f7b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90f7b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90f7b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:53:32.544651
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/53/image_23012025_13_53_53_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/13/53/image_23012025_13_53_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/13/53/image_23012025_13_53_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/53/image_23012025_13_53_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/13/53/image_23012025_13_53_28_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/13/53/image_23012025_13_53_23_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8f594a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8f594a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8f594a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:54:03.449267
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/53/image_23012025_13_53_53_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/13/53/image_23012025_13_53_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/13/53/image_23012025_13_53_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/53/image_23012025_13_53_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/13/53/image_23012025_13_53_28_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/13/53/image_23012025_13_53_23_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d1e44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d1e44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d1e44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:54:32.644810
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/54/image_23012025_13_54_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/54/image_23012025_13_54_46_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/54/image_23012025_13_54_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/54/image_23012025_13_54_34_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/13/54/image_23012025_13_54_29_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/54/image_23012025_13_54_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f779624a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f779624a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f779624a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:55:03.513528
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/54/image_23012025_13_54_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/54/image_23012025_13_54_46_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/13/54/image_23012025_13_54_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/54/image_23012025_13_54_34_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/13/54/image_23012025_13_54_29_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/54/image_23012025_13_54_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94f7a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94f7a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94f7a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:55:32.751858
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/55/image_23012025_13_55_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/55/image_23012025_13_55_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/13/55/image_23012025_13_55_40_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/13/55/image_23012025_13_55_35_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/13/55/image_23012025_13_55_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/55/image_23012025_13_55_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d0e64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d0e64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d0e64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:56:02.689673
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/55/image_23012025_13_55_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/55/image_23012025_13_55_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/13/55/image_23012025_13_55_40_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/13/55/image_23012025_13_55_35_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/13/55/image_23012025_13_55_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/55/image_23012025_13_55_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb03db4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb03db4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb03db4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:56:31.841131
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/56/image_23012025_13_56_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/56/image_23012025_13_56_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/56/image_23012025_13_56_40_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/13/56/image_23012025_13_56_35_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/13/56/image_23012025_13_56_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/13/56/image_23012025_13_56_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb11f44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb11f44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb11f44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:57:02.766493
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/56/image_23012025_13_56_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/13/56/image_23012025_13_56_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/13/56/image_23012025_13_56_40_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/13/56/image_23012025_13_56_35_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/13/56/image_23012025_13_56_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/13/56/image_23012025_13_56_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89ff04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89ff04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89ff04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:57:31.939887
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/57/image_23012025_13_57_52_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/57/image_23012025_13_57_46_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/13/57/image_23012025_13_57_41_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/13/57/image_23012025_13_57_35_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/13/57/image_23012025_13_57_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/13/57/image_23012025_13_57_22_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb245d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb245d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb245d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:58:02.406080
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/57/image_23012025_13_57_52_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/57/image_23012025_13_57_46_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/13/57/image_23012025_13_57_41_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/13/57/image_23012025_13_57_35_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/13/57/image_23012025_13_57_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/13/57/image_23012025_13_57_22_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a4724a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a4724a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a4724a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:59:02.985929
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/59/image_23012025_13_59_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/13/57/image_23012025_13_57_52_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/13/57/image_23012025_13_57_46_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/13/57/image_23012025_13_57_41_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/13/57/image_23012025_13_57_35_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/13/57/image_23012025_13_57_28_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ca294a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ca294a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ca294a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 13:59:31.832734
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/59/image_23012025_13_59_52_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/13/59/image_23012025_13_59_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/13/59/image_23012025_13_59_41_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/13/59/image_23012025_13_59_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/59/image_23012025_13_59_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/59/image_23012025_13_59_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f827434e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f827434e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f827434e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:00:02.656094
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/13/59/image_23012025_13_59_52_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/13/59/image_23012025_13_59_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/13/59/image_23012025_13_59_41_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/13/59/image_23012025_13_59_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/59/image_23012025_13_59_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/13/59/image_23012025_13_59_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa31124a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa31124a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa31124a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:00:31.958957
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/00/image_23012025_14_00_52_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/14/00/image_23012025_14_00_47_6185.jpg', 2), ('/home/nano/Desktop/images/23012025/14/00/image_23012025_14_00_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/14/00/image_23012025_14_00_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/14/00/image_23012025_14_00_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/14/00/image_23012025_14_00_22_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78b9d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78b9d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78b9d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:01:02.938328
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/00/image_23012025_14_00_52_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/14/00/image_23012025_14_00_47_6185.jpg', 2), ('/home/nano/Desktop/images/23012025/14/00/image_23012025_14_00_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/14/00/image_23012025_14_00_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/14/00/image_23012025_14_00_28_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/14/00/image_23012025_14_00_22_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f997904a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f997904a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f997904a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:01:32.022558
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/01/image_23012025_14_01_52_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/14/01/image_23012025_14_01_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/01/image_23012025_14_01_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/14/01/image_23012025_14_01_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/14/01/image_23012025_14_01_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/14/01/image_23012025_14_01_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8957a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8957a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8957a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:02:02.647008
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/01/image_23012025_14_01_52_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/14/01/image_23012025_14_01_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/01/image_23012025_14_01_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/14/01/image_23012025_14_01_34_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/14/01/image_23012025_14_01_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/14/01/image_23012025_14_01_22_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3f7b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3f7b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3f7b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:02:32.114304
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/02/image_23012025_14_02_53_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/14/02/image_23012025_14_02_47_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/14/02/image_23012025_14_02_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/14/02/image_23012025_14_02_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/02/image_23012025_14_02_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/02/image_23012025_14_02_22_5178.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c5984a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c5984a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c5984a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:03:03.216537
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/02/image_23012025_14_02_53_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/14/02/image_23012025_14_02_47_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/14/02/image_23012025_14_02_40_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/14/02/image_23012025_14_02_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/02/image_23012025_14_02_28_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/02/image_23012025_14_02_22_5178.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9561b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9561b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9561b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:03:32.245267
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/03/image_23012025_14_03_53_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/03/image_23012025_14_03_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/03/image_23012025_14_03_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/14/03/image_23012025_14_03_34_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/14/03/image_23012025_14_03_28_5224.jpg', 2), ('/home/nano/Desktop/images/23012025/14/03/image_23012025_14_03_23_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2ff84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2ff84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2ff84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:04:03.179320
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/03/image_23012025_14_03_53_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/03/image_23012025_14_03_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/03/image_23012025_14_03_40_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/14/03/image_23012025_14_03_34_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/14/03/image_23012025_14_03_28_5224.jpg', 2), ('/home/nano/Desktop/images/23012025/14/03/image_23012025_14_03_23_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82a674a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82a674a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82a674a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:04:32.453330
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/04/image_23012025_14_04_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/04/image_23012025_14_04_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/14/04/image_23012025_14_04_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/14/04/image_23012025_14_04_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/14/04/image_23012025_14_04_28_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/14/04/image_23012025_14_04_23_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa40384a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa40384a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa40384a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:05:03.314778
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/04/image_23012025_14_04_53_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/04/image_23012025_14_04_46_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/14/04/image_23012025_14_04_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/14/04/image_23012025_14_04_34_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/14/04/image_23012025_14_04_28_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/14/04/image_23012025_14_04_23_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb33c54a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb33c54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb33c54a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:05:32.567758
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/05/image_23012025_14_05_52_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/14/05/image_23012025_14_05_46_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/14/05/image_23012025_14_05_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/14/05/image_23012025_14_05_34_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/14/05/image_23012025_14_05_29_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/05/image_23012025_14_05_23_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f818f84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f818f84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f818f84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:06:03.358739
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/05/image_23012025_14_05_52_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/14/05/image_23012025_14_05_46_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/14/05/image_23012025_14_05_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/14/05/image_23012025_14_05_34_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/14/05/image_23012025_14_05_29_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/05/image_23012025_14_05_23_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb22fe4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb22fe4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb22fe4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:06:32.638263
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/06/image_23012025_14_06_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/14/06/image_23012025_14_06_46_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/06/image_23012025_14_06_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/14/06/image_23012025_14_06_34_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/14/06/image_23012025_14_06_29_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/14/06/image_23012025_14_06_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f872554a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f872554a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f872554a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:07:03.519106
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/06/image_23012025_14_06_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/14/06/image_23012025_14_06_46_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/06/image_23012025_14_06_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/14/06/image_23012025_14_06_34_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/14/06/image_23012025_14_06_29_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/14/06/image_23012025_14_06_22_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c55e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c55e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c55e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:07:32.745538
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/07/image_23012025_14_07_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/07/image_23012025_14_07_46_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/14/07/image_23012025_14_07_40_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/14/07/image_23012025_14_07_35_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/07/image_23012025_14_07_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/14/07/image_23012025_14_07_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6eef438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6eef438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6eef438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:08:02.474074
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/07/image_23012025_14_07_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/07/image_23012025_14_07_46_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/14/07/image_23012025_14_07_40_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/14/07/image_23012025_14_07_35_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/07/image_23012025_14_07_28_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/14/07/image_23012025_14_07_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb23304a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb23304a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb23304a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:08:31.889507
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/08/image_23012025_14_08_52_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/14/08/image_23012025_14_08_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/08/image_23012025_14_08_41_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/14/08/image_23012025_14_08_35_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/08/image_23012025_14_08_28_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/08/image_23012025_14_08_22_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f32c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f32c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f32c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:09:03.274758
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/08/image_23012025_14_08_52_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/14/08/image_23012025_14_08_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/08/image_23012025_14_08_41_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/14/08/image_23012025_14_08_35_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/08/image_23012025_14_08_28_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/08/image_23012025_14_08_22_6186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fce04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fce04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fce04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:09:32.043151
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/09/image_23012025_14_09_52_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/14/09/image_23012025_14_09_46_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/14/09/image_23012025_14_09_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/09/image_23012025_14_09_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/09/image_23012025_14_09_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/09/image_23012025_14_09_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3f2d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3f2d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3f2d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:10:02.670936
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/09/image_23012025_14_09_52_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/14/09/image_23012025_14_09_46_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/14/09/image_23012025_14_09_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/09/image_23012025_14_09_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/09/image_23012025_14_09_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/09/image_23012025_14_09_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa341f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa341f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa341f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:10:32.139385
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/10/image_23012025_14_10_52_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/14/10/image_23012025_14_10_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/10/image_23012025_14_10_41_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/14/10/image_23012025_14_10_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/10/image_23012025_14_10_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/10/image_23012025_14_10_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c315438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c315438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c315438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:11:02.952703
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/10/image_23012025_14_10_52_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/14/10/image_23012025_14_10_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/10/image_23012025_14_10_41_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/14/10/image_23012025_14_10_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/10/image_23012025_14_10_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/10/image_23012025_14_10_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f975fc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f975fc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f975fc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:11:32.221549
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/11/image_23012025_14_11_52_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/14/11/image_23012025_14_11_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/11/image_23012025_14_11_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/11/image_23012025_14_11_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/11/image_23012025_14_11_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/11/image_23012025_14_11_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d9f34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d9f34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d9f34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:12:03.200543
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/11/image_23012025_14_11_52_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/14/11/image_23012025_14_11_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/11/image_23012025_14_11_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/11/image_23012025_14_11_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/11/image_23012025_14_11_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/11/image_23012025_14_11_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f981794a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f981794a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f981794a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:12:32.341539
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/12/image_23012025_14_12_52_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/14/12/image_23012025_14_12_46_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/14/12/image_23012025_14_12_41_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/14/12/image_23012025_14_12_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/12/image_23012025_14_12_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/12/image_23012025_14_12_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e22b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e22b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e22b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:13:03.204627
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/12/image_23012025_14_12_52_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/14/12/image_23012025_14_12_46_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/14/12/image_23012025_14_12_41_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/14/12/image_23012025_14_12_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/12/image_23012025_14_12_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/12/image_23012025_14_12_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f813244a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f813244a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f813244a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:13:32.427644
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/13/image_23012025_14_13_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/13/image_23012025_14_13_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/13/image_23012025_14_13_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/13/image_23012025_14_13_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/13/image_23012025_14_13_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/13/image_23012025_14_13_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8cb024a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cb024a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cb024a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:14:03.396613
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/13/image_23012025_14_13_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/13/image_23012025_14_13_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/13/image_23012025_14_13_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/13/image_23012025_14_13_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/13/image_23012025_14_13_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/13/image_23012025_14_13_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fc4d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fc4d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fc4d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:14:32.536292
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/14/image_23012025_14_14_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/14/image_23012025_14_14_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/14/image_23012025_14_14_41_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/14/14/image_23012025_14_14_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/14/14/image_23012025_14_14_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/14/image_23012025_14_14_16_5190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa207a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa207a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa207a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:15:03.569095
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/14/image_23012025_14_15_04_6211.jpg', 2), ('/home/nano/Desktop/images/23012025/14/14/image_23012025_14_14_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/14/image_23012025_14_14_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/14/image_23012025_14_14_41_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/14/14/image_23012025_14_14_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/14/14/image_23012025_14_14_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84fbe4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84fbe4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84fbe4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:15:32.679980
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/15/image_23012025_14_15_52_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/14/15/image_23012025_14_15_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/15/image_23012025_14_15_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/15/image_23012025_14_15_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/15/image_23012025_14_15_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/15/image_23012025_14_15_16_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78ca34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78ca34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78ca34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:16:02.322327
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/15/image_23012025_14_15_52_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/14/15/image_23012025_14_15_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/15/image_23012025_14_15_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/15/image_23012025_14_15_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/15/image_23012025_14_15_22_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/15/image_23012025_14_15_16_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad1ea438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad1ea438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad1ea438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:16:31.788772
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/16/image_23012025_14_16_52_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/14/16/image_23012025_14_16_46_5196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/16/image_23012025_14_16_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/16/image_23012025_14_16_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/16/image_23012025_14_16_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/16/image_23012025_14_16_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3eb0438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3eb0438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3eb0438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:17:02.785070
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/16/image_23012025_14_16_52_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/14/16/image_23012025_14_16_46_5196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/16/image_23012025_14_16_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/16/image_23012025_14_16_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/16/image_23012025_14_16_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/16/image_23012025_14_16_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa16294a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa16294a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa16294a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:17:31.888339
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/17/image_23012025_14_17_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/17/image_23012025_14_17_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/17/image_23012025_14_17_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/17/image_23012025_14_17_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/17/image_23012025_14_17_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/17/image_23012025_14_17_16_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b4bd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b4bd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b4bd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:18:02.593559
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/17/image_23012025_14_17_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/17/image_23012025_14_17_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/17/image_23012025_14_17_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/17/image_23012025_14_17_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/17/image_23012025_14_17_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/17/image_23012025_14_17_16_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f971da438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f971da438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f971da438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:18:31.998548
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/18/image_23012025_14_18_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/18/image_23012025_14_18_46_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/14/18/image_23012025_14_18_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/18/image_23012025_14_18_34_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/14/18/image_23012025_14_18_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/14/18/image_23012025_14_18_22_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7facc124a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facc124a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facc124a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:19:03.431216
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/18/image_23012025_14_18_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/18/image_23012025_14_18_46_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/14/18/image_23012025_14_18_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/18/image_23012025_14_18_34_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/14/18/image_23012025_14_18_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/14/18/image_23012025_14_18_22_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9740d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9740d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9740d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:19:32.118819
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/19/image_23012025_14_19_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/19/image_23012025_14_19_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/19/image_23012025_14_19_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/19/image_23012025_14_19_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/19/image_23012025_14_19_16_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/14/19/image_23012025_14_19_11_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f05b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f05b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f05b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:20:02.887313
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/19/image_23012025_14_19_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/19/image_23012025_14_19_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/19/image_23012025_14_19_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/19/image_23012025_14_19_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/19/image_23012025_14_19_16_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/14/19/image_23012025_14_19_11_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa04974a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa04974a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa04974a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:20:32.258910
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/20/image_23012025_14_20_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/20/image_23012025_14_20_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/20/image_23012025_14_20_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/20/image_23012025_14_20_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/20/image_23012025_14_20_22_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/20/image_23012025_14_20_17_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f782e04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f782e04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f782e04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:21:03.244894
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/20/image_23012025_14_20_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/20/image_23012025_14_20_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/20/image_23012025_14_20_41_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/20/image_23012025_14_20_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/20/image_23012025_14_20_22_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/20/image_23012025_14_20_17_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c6da4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c6da4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c6da4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:21:32.340520
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/21/image_23012025_14_21_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/21/image_23012025_14_21_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/21/image_23012025_14_21_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/21/image_23012025_14_21_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/21/image_23012025_14_21_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/21/image_23012025_14_21_22_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77a2d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77a2d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77a2d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:22:03.085788
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/21/image_23012025_14_21_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/21/image_23012025_14_21_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/21/image_23012025_14_21_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/21/image_23012025_14_21_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/21/image_23012025_14_21_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/21/image_23012025_14_21_22_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb27624a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb27624a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb27624a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:22:32.437105
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/22/image_23012025_14_22_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/22/image_23012025_14_22_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/22/image_23012025_14_22_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/22/image_23012025_14_22_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/22/image_23012025_14_22_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/22/image_23012025_14_22_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf176438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf176438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf176438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:23:03.370954
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/22/image_23012025_14_22_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/22/image_23012025_14_22_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/22/image_23012025_14_22_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/22/image_23012025_14_22_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/22/image_23012025_14_22_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/22/image_23012025_14_22_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bb364a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bb364a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bb364a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:23:32.543326
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/23/image_23012025_14_23_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/23/image_23012025_14_23_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/23/image_23012025_14_23_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/23/image_23012025_14_23_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/23/image_23012025_14_23_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/23/image_23012025_14_23_22_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87c1b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87c1b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87c1b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:24:03.871916
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/23/image_23012025_14_23_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/23/image_23012025_14_23_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/23/image_23012025_14_23_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/23/image_23012025_14_23_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/23/image_23012025_14_23_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/23/image_23012025_14_23_22_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cfea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cfea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cfea4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:24:32.655951
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/24/image_23012025_14_24_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/24/image_23012025_14_24_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/24/image_23012025_14_24_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/24/image_23012025_14_24_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/24/image_23012025_14_24_17_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/24/image_23012025_14_24_10_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f9c14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f9c14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f9c14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:25:02.807224
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/24/image_23012025_14_24_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/24/image_23012025_14_24_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/24/image_23012025_14_24_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/24/image_23012025_14_24_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/24/image_23012025_14_24_17_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/24/image_23012025_14_24_10_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84b0e438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84b0e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84b0e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:25:31.767423
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/25/image_23012025_14_25_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/25/image_23012025_14_25_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/25/image_23012025_14_25_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/25/image_23012025_14_25_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/25/image_23012025_14_25_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/25/image_23012025_14_25_22_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94d514a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94d514a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94d514a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:26:02.748278
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/25/image_23012025_14_25_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/25/image_23012025_14_25_47_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/25/image_23012025_14_25_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/25/image_23012025_14_25_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/25/image_23012025_14_25_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/25/image_23012025_14_25_22_5188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f8b44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f8b44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f8b44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:26:31.837251
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/26/image_23012025_14_26_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/26/image_23012025_14_26_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/26/image_23012025_14_26_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/26/image_23012025_14_26_22_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/14/26/image_23012025_14_26_17_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/14/26/image_23012025_14_26_10_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8306d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8306d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8306d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:27:02.677226
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/26/image_23012025_14_26_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/26/image_23012025_14_26_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/26/image_23012025_14_26_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/26/image_23012025_14_26_22_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/14/26/image_23012025_14_26_17_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/14/26/image_23012025_14_26_10_6204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2e684a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2e684a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2e684a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:27:31.939576
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/27/image_23012025_14_27_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/27/image_23012025_14_27_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/14/27/image_23012025_14_27_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/27/image_23012025_14_27_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/27/image_23012025_14_27_28_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/14/27/image_23012025_14_27_22_5193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb33b44e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb33b44e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb33b44e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:28:02.914906
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/27/image_23012025_14_27_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/27/image_23012025_14_27_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/14/27/image_23012025_14_27_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/27/image_23012025_14_27_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/27/image_23012025_14_27_28_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/14/27/image_23012025_14_27_22_5193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa715d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa715d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa715d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:28:32.018039
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/28/image_23012025_14_28_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/28/image_23012025_14_28_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/28/image_23012025_14_28_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/28/image_23012025_14_28_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/28/image_23012025_14_28_22_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/28/image_23012025_14_28_17_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a55b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a55b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a55b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:29:03.384576
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/28/image_23012025_14_28_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/28/image_23012025_14_28_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/28/image_23012025_14_28_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/28/image_23012025_14_28_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/28/image_23012025_14_28_22_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/28/image_23012025_14_28_17_6202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d70a438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d70a438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d70a438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:29:32.146033
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/29/image_23012025_14_29_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/29/image_23012025_14_29_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/29/image_23012025_14_29_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/29/image_23012025_14_29_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/29/image_23012025_14_29_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/29/image_23012025_14_29_22_5192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9c0f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9c0f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9c0f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:30:03.106250
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/29/image_23012025_14_29_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/29/image_23012025_14_29_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/29/image_23012025_14_29_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/29/image_23012025_14_29_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/29/image_23012025_14_29_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/29/image_23012025_14_29_22_5192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2efe4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2efe4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2efe4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:30:32.228003
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/30/image_23012025_14_30_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/30/image_23012025_14_30_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/30/image_23012025_14_30_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/30/image_23012025_14_30_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/30/image_23012025_14_30_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/30/image_23012025_14_30_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faceaa4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faceaa4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faceaa4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:31:03.422631
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/30/image_23012025_14_30_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/30/image_23012025_14_30_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/30/image_23012025_14_30_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/30/image_23012025_14_30_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/30/image_23012025_14_30_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/30/image_23012025_14_30_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d9344a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d9344a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d9344a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:31:32.351029
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/31/image_23012025_14_31_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/31/image_23012025_14_31_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/31/image_23012025_14_31_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/31/image_23012025_14_31_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/31/image_23012025_14_31_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/31/image_23012025_14_31_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9aea84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9aea84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9aea84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:32:03.153538
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/31/image_23012025_14_31_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/31/image_23012025_14_31_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/31/image_23012025_14_31_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/31/image_23012025_14_31_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/31/image_23012025_14_31_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/31/image_23012025_14_31_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ee534a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ee534a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ee534a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:32:32.453473
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/32/image_23012025_14_32_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/32/image_23012025_14_32_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/32/image_23012025_14_32_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/32/image_23012025_14_32_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/32/image_23012025_14_32_22_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/14/32/image_23012025_14_32_17_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f939db4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f939db4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f939db4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:33:03.458765
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/32/image_23012025_14_32_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/32/image_23012025_14_32_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/32/image_23012025_14_32_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/32/image_23012025_14_32_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/32/image_23012025_14_32_22_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/14/32/image_23012025_14_32_17_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c8454a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c8454a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c8454a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:33:32.548307
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/33/image_23012025_14_33_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/33/image_23012025_14_33_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/33/image_23012025_14_33_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/33/image_23012025_14_33_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/33/image_23012025_14_33_28_5235.jpg', 2), ('/home/nano/Desktop/images/23012025/14/33/image_23012025_14_33_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f842c8438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f842c8438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f842c8438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:34:03.770655
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/33/image_23012025_14_33_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/33/image_23012025_14_33_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/33/image_23012025_14_33_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/33/image_23012025_14_33_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/33/image_23012025_14_33_28_5235.jpg', 2), ('/home/nano/Desktop/images/23012025/14/33/image_23012025_14_33_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f957564a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f957564a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f957564a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:34:32.647370
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/34/image_23012025_14_34_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/34/image_23012025_14_34_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/34/image_23012025_14_34_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/34/image_23012025_14_34_34_6233.jpg', 2), ('/home/nano/Desktop/images/23012025/14/34/image_23012025_14_34_28_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/14/34/image_23012025_14_34_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f853dc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f853dc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f853dc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:35:03.674675
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/34/image_23012025_14_34_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/34/image_23012025_14_34_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/34/image_23012025_14_34_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/34/image_23012025_14_34_34_6233.jpg', 2), ('/home/nano/Desktop/images/23012025/14/34/image_23012025_14_34_28_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/14/34/image_23012025_14_34_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88b9a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88b9a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88b9a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:35:32.749648
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/35/image_23012025_14_35_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/35/image_23012025_14_35_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/35/image_23012025_14_35_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/35/image_23012025_14_35_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/14/35/image_23012025_14_35_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/35/image_23012025_14_35_22_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb05df438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb05df438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb05df438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:36:02.329472
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/35/image_23012025_14_35_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/35/image_23012025_14_35_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/35/image_23012025_14_35_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/35/image_23012025_14_35_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/14/35/image_23012025_14_35_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/35/image_23012025_14_35_22_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f869d5438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f869d5438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f869d5438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:36:31.882200
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/36/image_23012025_14_36_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/36/image_23012025_14_36_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/14/36/image_23012025_14_36_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/36/image_23012025_14_36_34_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/14/36/image_23012025_14_36_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/36/image_23012025_14_36_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bbb84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bbb84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bbb84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:37:02.896551
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/36/image_23012025_14_36_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/36/image_23012025_14_36_47_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/14/36/image_23012025_14_36_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/36/image_23012025_14_36_34_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/14/36/image_23012025_14_36_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/36/image_23012025_14_36_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9600c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9600c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9600c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:37:32.002193
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/37/image_23012025_14_37_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/37/image_23012025_14_37_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/37/image_23012025_14_37_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/37/image_23012025_14_37_34_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/14/37/image_23012025_14_37_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/37/image_23012025_14_37_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99ea04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99ea04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99ea04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:38:02.928102
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/37/image_23012025_14_37_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/37/image_23012025_14_37_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/37/image_23012025_14_37_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/37/image_23012025_14_37_34_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/14/37/image_23012025_14_37_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/37/image_23012025_14_37_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb13a14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb13a14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb13a14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:38:32.092387
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/38/image_23012025_14_38_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/38/image_23012025_14_38_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/38/image_23012025_14_38_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/38/image_23012025_14_38_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/14/38/image_23012025_14_38_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/38/image_23012025_14_38_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5a5c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5a5c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5a5c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:39:03.329862
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/38/image_23012025_14_38_53_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/38/image_23012025_14_38_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/38/image_23012025_14_38_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/38/image_23012025_14_38_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/14/38/image_23012025_14_38_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/38/image_23012025_14_38_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2b244a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2b244a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2b244a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:39:32.220557
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/39/image_23012025_14_39_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/39/image_23012025_14_39_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/39/image_23012025_14_39_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/39/image_23012025_14_39_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/39/image_23012025_14_39_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/39/image_23012025_14_39_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81dac438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81dac438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81dac438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:40:02.878829
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/39/image_23012025_14_39_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/39/image_23012025_14_39_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/39/image_23012025_14_39_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/39/image_23012025_14_39_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/39/image_23012025_14_39_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/39/image_23012025_14_39_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e036438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e036438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e036438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:40:32.329268
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/40/image_23012025_14_40_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/40/image_23012025_14_40_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/40/image_23012025_14_40_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/40/image_23012025_14_40_34_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/14/40/image_23012025_14_40_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/40/image_23012025_14_40_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa98bb438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa98bb438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa98bb438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:41:03.409307
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/41/image_23012025_14_41_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/40/image_23012025_14_40_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/40/image_23012025_14_40_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/40/image_23012025_14_40_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/40/image_23012025_14_40_34_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/14/40/image_23012025_14_40_28_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f836a04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f836a04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f836a04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:41:32.410149
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/41/image_23012025_14_41_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/41/image_23012025_14_41_46_6231.jpg', 2), ('/home/nano/Desktop/images/23012025/14/41/image_23012025_14_41_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/41/image_23012025_14_41_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/41/image_23012025_14_41_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/41/image_23012025_14_41_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f895364a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f895364a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f895364a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:42:03.339113
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/41/image_23012025_14_41_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/41/image_23012025_14_41_46_6231.jpg', 2), ('/home/nano/Desktop/images/23012025/14/41/image_23012025_14_41_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/41/image_23012025_14_41_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/41/image_23012025_14_41_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/41/image_23012025_14_41_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5e3f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5e3f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5e3f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:42:32.502702
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/42/image_23012025_14_42_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/42/image_23012025_14_42_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/42/image_23012025_14_42_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/14/42/image_23012025_14_42_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/42/image_23012025_14_42_28_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/14/42/image_23012025_14_42_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b9c64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b9c64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b9c64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:43:03.498931
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/42/image_23012025_14_42_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/42/image_23012025_14_42_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/42/image_23012025_14_42_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/14/42/image_23012025_14_42_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/42/image_23012025_14_42_28_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/14/42/image_23012025_14_42_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97ee14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97ee14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97ee14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:43:32.658664
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/43/image_23012025_14_43_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/43/image_23012025_14_43_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/43/image_23012025_14_43_34_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/14/43/image_23012025_14_43_28_5218.jpg', 2), ('/home/nano/Desktop/images/23012025/14/43/image_23012025_14_43_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/43/image_23012025_14_43_16_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f778384a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f778384a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f778384a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:44:03.567968
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/43/image_23012025_14_43_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/43/image_23012025_14_43_40_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/43/image_23012025_14_43_34_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/14/43/image_23012025_14_43_28_5218.jpg', 2), ('/home/nano/Desktop/images/23012025/14/43/image_23012025_14_43_23_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/43/image_23012025_14_43_16_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f40f438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f40f438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f40f438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:44:32.806223
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/44/image_23012025_14_44_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/44/image_23012025_14_44_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/44/image_23012025_14_44_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/44/image_23012025_14_44_34_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/14/44/image_23012025_14_44_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/44/image_23012025_14_44_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e9114a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e9114a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e9114a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:45:02.580229
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/44/image_23012025_14_44_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/44/image_23012025_14_44_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/44/image_23012025_14_44_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/44/image_23012025_14_44_34_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/14/44/image_23012025_14_44_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/44/image_23012025_14_44_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0fd34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0fd34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0fd34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:45:31.976962
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/45/image_23012025_14_45_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/45/image_23012025_14_45_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/45/image_23012025_14_45_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/14/45/image_23012025_14_45_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/14/45/image_23012025_14_45_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/14/45/image_23012025_14_45_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77e764a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77e764a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77e764a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:46:02.709551
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/45/image_23012025_14_45_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/45/image_23012025_14_45_46_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/45/image_23012025_14_45_40_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/14/45/image_23012025_14_45_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/14/45/image_23012025_14_45_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/14/45/image_23012025_14_45_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ab15438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ab15438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ab15438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:46:32.065976
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/46/image_23012025_14_46_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/46/image_23012025_14_46_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/46/image_23012025_14_46_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/14/46/image_23012025_14_46_28_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/14/46/image_23012025_14_46_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/46/image_23012025_14_46_16_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f995764a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f995764a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f995764a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:47:03.115050
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/46/image_23012025_14_46_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/46/image_23012025_14_46_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/46/image_23012025_14_46_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/14/46/image_23012025_14_46_28_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/14/46/image_23012025_14_46_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/46/image_23012025_14_46_16_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8759d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8759d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8759d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:47:32.167927
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/47/image_23012025_14_47_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/47/image_23012025_14_47_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/47/image_23012025_14_47_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/47/image_23012025_14_47_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/47/image_23012025_14_47_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/14/47/image_23012025_14_47_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91fee438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91fee438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91fee438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:48:02.949533
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/47/image_23012025_14_47_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/47/image_23012025_14_47_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/47/image_23012025_14_47_40_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/47/image_23012025_14_47_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/47/image_23012025_14_47_28_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/14/47/image_23012025_14_47_23_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7aa3a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7aa3a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7aa3a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:48:32.260279
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/48/image_23012025_14_48_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/48/image_23012025_14_48_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/48/image_23012025_14_48_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/14/48/image_23012025_14_48_34_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/14/48/image_23012025_14_48_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/48/image_23012025_14_48_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f930974a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f930974a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f930974a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:49:03.578013
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/48/image_23012025_14_48_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/48/image_23012025_14_48_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/48/image_23012025_14_48_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/14/48/image_23012025_14_48_34_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/14/48/image_23012025_14_48_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/48/image_23012025_14_48_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96c94438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96c94438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96c94438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:49:32.354236
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/49/image_23012025_14_49_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/49/image_23012025_14_49_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/49/image_23012025_14_49_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/49/image_23012025_14_49_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/49/image_23012025_14_49_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/49/image_23012025_14_49_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8be4c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8be4c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8be4c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:50:03.149666
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/49/image_23012025_14_49_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/49/image_23012025_14_49_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/49/image_23012025_14_49_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/49/image_23012025_14_49_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/49/image_23012025_14_49_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/49/image_23012025_14_49_23_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa95fb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa95fb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa95fb4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:50:32.461028
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/50/image_23012025_14_50_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/50/image_23012025_14_50_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/50/image_23012025_14_50_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/50/image_23012025_14_50_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/14/50/image_23012025_14_50_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/50/image_23012025_14_50_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae899438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae899438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae899438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:51:03.262340
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/50/image_23012025_14_50_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/50/image_23012025_14_50_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/50/image_23012025_14_50_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/50/image_23012025_14_50_34_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/14/50/image_23012025_14_50_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/50/image_23012025_14_50_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb26404a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb26404a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb26404a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:51:32.582029
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/51/image_23012025_14_51_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/51/image_23012025_14_51_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/51/image_23012025_14_51_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/51/image_23012025_14_51_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/14/51/image_23012025_14_51_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/51/image_23012025_14_51_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab7254a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab7254a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab7254a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:52:03.253081
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/51/image_23012025_14_51_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/51/image_23012025_14_51_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/51/image_23012025_14_51_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/51/image_23012025_14_51_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/14/51/image_23012025_14_51_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/51/image_23012025_14_51_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f909554a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f909554a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f909554a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:52:32.664535
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/52/image_23012025_14_52_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/52/image_23012025_14_52_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/52/image_23012025_14_52_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/52/image_23012025_14_52_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/14/52/image_23012025_14_52_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/52/image_23012025_14_52_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb447a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb447a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb447a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:53:02.405726
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/52/image_23012025_14_52_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/52/image_23012025_14_52_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/52/image_23012025_14_52_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/52/image_23012025_14_52_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/14/52/image_23012025_14_52_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/14/52/image_23012025_14_52_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ebde438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ebde438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ebde438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:53:31.762274
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/53/image_23012025_14_53_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/53/image_23012025_14_53_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/53/image_23012025_14_53_34_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/14/53/image_23012025_14_53_29_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/14/53/image_23012025_14_53_23_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/53/image_23012025_14_53_16_6205.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f995da4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f995da4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f995da4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:54:02.972173
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/53/image_23012025_14_53_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/53/image_23012025_14_53_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/53/image_23012025_14_53_34_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/14/53/image_23012025_14_53_29_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/14/53/image_23012025_14_53_23_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/53/image_23012025_14_53_16_6205.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f789ac4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f789ac4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f789ac4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:54:31.873254
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/54/image_23012025_14_54_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/14/54/image_23012025_14_54_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/54/image_23012025_14_54_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/54/image_23012025_14_54_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/54/image_23012025_14_54_16_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/54/image_23012025_14_54_10_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa8a1438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa8a1438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa8a1438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:55:02.910789
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/54/image_23012025_14_54_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/14/54/image_23012025_14_54_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/54/image_23012025_14_54_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/54/image_23012025_14_54_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/54/image_23012025_14_54_16_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/54/image_23012025_14_54_10_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa735e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa735e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa735e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:55:32.055160
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/55/image_23012025_14_55_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/55/image_23012025_14_55_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/55/image_23012025_14_55_40_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/14/55/image_23012025_14_55_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/55/image_23012025_14_55_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/55/image_23012025_14_55_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83c424a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83c424a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83c424a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:56:02.912898
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/55/image_23012025_14_55_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/55/image_23012025_14_55_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/55/image_23012025_14_55_40_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/14/55/image_23012025_14_55_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/55/image_23012025_14_55_29_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/55/image_23012025_14_55_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a7604a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a7604a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a7604a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:56:32.138002
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/56/image_23012025_14_56_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/56/image_23012025_14_56_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/56/image_23012025_14_56_40_6210.jpg', 2), ('/home/nano/Desktop/images/23012025/14/56/image_23012025_14_56_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/56/image_23012025_14_56_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/56/image_23012025_14_56_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9be4b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9be4b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9be4b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:57:03.027332
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/56/image_23012025_14_56_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/56/image_23012025_14_56_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/56/image_23012025_14_56_40_6210.jpg', 2), ('/home/nano/Desktop/images/23012025/14/56/image_23012025_14_56_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/56/image_23012025_14_56_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/14/56/image_23012025_14_56_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f3cf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f3cf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f3cf4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:57:32.256625
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/57/image_23012025_14_57_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/57/image_23012025_14_57_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/57/image_23012025_14_57_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/57/image_23012025_14_57_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/57/image_23012025_14_57_16_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/57/image_23012025_14_57_10_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8875d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8875d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8875d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:58:02.927396
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/57/image_23012025_14_57_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/57/image_23012025_14_57_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/57/image_23012025_14_57_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/57/image_23012025_14_57_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/57/image_23012025_14_57_16_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/57/image_23012025_14_57_10_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f789df4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f789df4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f789df4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:59:03.316147
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/57/image_23012025_14_57_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/57/image_23012025_14_57_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/57/image_23012025_14_57_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/57/image_23012025_14_57_22_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/57/image_23012025_14_57_16_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/57/image_23012025_14_57_10_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8bee34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bee34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bee34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 14:59:32.146348
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/59/image_23012025_14_59_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/59/image_23012025_14_59_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/14/59/image_23012025_14_59_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/59/image_23012025_14_59_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/59/image_23012025_14_59_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/59/image_23012025_14_59_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a3c84a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a3c84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a3c84a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:00:02.724069
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/14/59/image_23012025_14_59_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/14/59/image_23012025_14_59_46_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/14/59/image_23012025_14_59_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/14/59/image_23012025_14_59_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/14/59/image_23012025_14_59_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/14/59/image_23012025_14_59_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb22084a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb22084a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb22084a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:00:32.234287
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/00/image_23012025_15_00_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/00/image_23012025_15_00_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/00/image_23012025_15_00_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/15/00/image_23012025_15_00_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/00/image_23012025_15_00_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/00/image_23012025_15_00_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78bd34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78bd34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78bd34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:01:02.965723
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/00/image_23012025_15_00_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/00/image_23012025_15_00_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/00/image_23012025_15_00_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/15/00/image_23012025_15_00_35_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/00/image_23012025_15_00_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/00/image_23012025_15_00_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f821ff438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f821ff438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f821ff438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:01:32.339279
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/01/image_23012025_15_01_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/01/image_23012025_15_01_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/15/01/image_23012025_15_01_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/15/01/image_23012025_15_01_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/01/image_23012025_15_01_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/01/image_23012025_15_01_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8dbc34a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dbc34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dbc34a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:02:02.952426
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/01/image_23012025_15_01_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/01/image_23012025_15_01_46_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/15/01/image_23012025_15_01_40_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/15/01/image_23012025_15_01_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/01/image_23012025_15_01_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/01/image_23012025_15_01_16_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83a774a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83a774a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83a774a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:02:32.443347
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/02/image_23012025_15_02_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/02/image_23012025_15_02_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/02/image_23012025_15_02_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/15/02/image_23012025_15_02_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/02/image_23012025_15_02_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/02/image_23012025_15_02_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e2f9438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e2f9438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e2f9438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:03:03.147102
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/02/image_23012025_15_02_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/02/image_23012025_15_02_46_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/02/image_23012025_15_02_40_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/15/02/image_23012025_15_02_35_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/02/image_23012025_15_02_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/02/image_23012025_15_02_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d00a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d00a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d00a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:03:32.561501
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/03/image_23012025_15_03_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/15/03/image_23012025_15_03_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/15/02/image_23012025_15_03_05_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/15/02/image_23012025_15_02_58_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/02/image_23012025_15_02_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/02/image_23012025_15_02_46_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb10a04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb10a04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb10a04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:04:03.453583
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/03/image_23012025_15_03_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/15/03/image_23012025_15_03_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/15/02/image_23012025_15_03_05_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/15/02/image_23012025_15_02_58_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/02/image_23012025_15_02_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/02/image_23012025_15_02_46_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ead94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ead94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ead94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:04:32.661196
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/04/image_23012025_15_04_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/04/image_23012025_15_04_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/15/04/image_23012025_15_04_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/04/image_23012025_15_04_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/04/image_23012025_15_04_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/04/image_23012025_15_04_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f846404a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f846404a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f846404a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:05:03.468625
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/04/image_23012025_15_04_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/04/image_23012025_15_04_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/15/04/image_23012025_15_04_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/04/image_23012025_15_04_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/04/image_23012025_15_04_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/04/image_23012025_15_04_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ac914a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ac914a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ac914a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:05:32.728365
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/05/image_23012025_15_05_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/05/image_23012025_15_05_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/15/05/image_23012025_15_05_41_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/15/05/image_23012025_15_05_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/05/image_23012025_15_05_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/05/image_23012025_15_05_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa85c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa85c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa85c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:06:02.334935
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/05/image_23012025_15_05_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/05/image_23012025_15_05_46_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/15/05/image_23012025_15_05_41_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/15/05/image_23012025_15_05_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/05/image_23012025_15_05_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/05/image_23012025_15_05_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6c124a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6c124a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6c124a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:06:31.823085
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/06/image_23012025_15_06_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/06/image_23012025_15_06_41_6219.jpg', 2), ('/home/nano/Desktop/images/23012025/15/06/image_23012025_15_06_22_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/15/05/image_23012025_15_06_04_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/15/05/image_23012025_15_05_58_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/05/image_23012025_15_05_52_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f857a3438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f857a3438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f857a3438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:07:02.668509
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/07/image_23012025_15_07_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/06/image_23012025_15_06_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/06/image_23012025_15_06_41_6219.jpg', 2), ('/home/nano/Desktop/images/23012025/15/06/image_23012025_15_06_22_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/15/05/image_23012025_15_06_04_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/15/05/image_23012025_15_05_58_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5e2e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5e2e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5e2e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:07:31.938680
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/07/image_23012025_15_07_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/07/image_23012025_15_07_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/15/07/image_23012025_15_07_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/07/image_23012025_15_07_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/07/image_23012025_15_07_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/07/image_23012025_15_07_16_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf8924a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf8924a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf8924a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:08:02.484811
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/07/image_23012025_15_07_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/07/image_23012025_15_07_46_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/15/07/image_23012025_15_07_41_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/07/image_23012025_15_07_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/07/image_23012025_15_07_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/07/image_23012025_15_07_16_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f886e74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f886e74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f886e74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:08:32.005598
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/08/image_23012025_15_08_46_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/08/image_23012025_15_08_41_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/15/08/image_23012025_15_08_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/15/08/image_23012025_15_08_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/08/image_23012025_15_08_16_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/15/08/image_23012025_15_08_11_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa91554a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa91554a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa91554a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:09:02.985273
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/08/image_23012025_15_08_46_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/08/image_23012025_15_08_41_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/15/08/image_23012025_15_08_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/15/08/image_23012025_15_08_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/08/image_23012025_15_08_16_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/15/08/image_23012025_15_08_11_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e184438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e184438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e184438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:09:32.110442
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/09/image_23012025_15_09_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/15/09/image_23012025_15_09_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/15/09/image_23012025_15_09_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/09/image_23012025_15_09_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/09/image_23012025_15_09_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/09/image_23012025_15_09_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fe6b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fe6b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fe6b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:10:02.711002
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/09/image_23012025_15_09_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/15/09/image_23012025_15_09_47_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/15/09/image_23012025_15_09_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/09/image_23012025_15_09_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/09/image_23012025_15_09_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/09/image_23012025_15_09_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90a764a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90a764a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90a764a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:10:32.209894
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/10/image_23012025_15_10_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/10/image_23012025_15_10_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/10/image_23012025_15_10_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/15/10/image_23012025_15_10_22_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/15/10/image_23012025_15_10_17_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/09/image_23012025_15_10_04_6216.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f778f94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f778f94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f778f94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:11:02.721633
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/10/image_23012025_15_10_41_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/10/image_23012025_15_10_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/10/image_23012025_15_10_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/15/10/image_23012025_15_10_22_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/15/10/image_23012025_15_10_17_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/09/image_23012025_15_10_04_6216.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87d30438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87d30438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87d30438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:11:32.298684
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/11/image_23012025_15_11_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/15/11/image_23012025_15_11_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/11/image_23012025_15_11_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/11/image_23012025_15_11_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/11/image_23012025_15_11_22_5208.jpg', 2), ('/home/nano/Desktop/images/23012025/15/11/image_23012025_15_11_17_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d4d04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d4d04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d4d04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:12:02.799685
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/12/image_23012025_15_12_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/15/11/image_23012025_15_11_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/15/11/image_23012025_15_11_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/11/image_23012025_15_11_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/11/image_23012025_15_11_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/11/image_23012025_15_11_22_5208.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85c804a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85c804a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85c804a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:12:32.383100
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/12/image_23012025_15_12_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/15/12/image_23012025_15_12_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/12/image_23012025_15_12_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/12/image_23012025_15_12_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/12/image_23012025_15_12_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/12/image_23012025_15_12_22_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa260d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa260d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa260d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:13:03.196824
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/12/image_23012025_15_12_52_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/15/12/image_23012025_15_12_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/12/image_23012025_15_12_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/12/image_23012025_15_12_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/12/image_23012025_15_12_28_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/12/image_23012025_15_12_22_5186.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb11ad4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb11ad4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb11ad4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:13:32.530516
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/13/image_23012025_15_13_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/13/image_23012025_15_13_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/13/image_23012025_15_13_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/15/13/image_23012025_15_13_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/13/image_23012025_15_13_22_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/15/13/image_23012025_15_13_17_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a8594a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a8594a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a8594a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:14:03.351260
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/13/image_23012025_15_13_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/13/image_23012025_15_13_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/13/image_23012025_15_13_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/15/13/image_23012025_15_13_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/13/image_23012025_15_13_22_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/15/13/image_23012025_15_13_17_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa25fd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa25fd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa25fd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:14:32.619146
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/14/image_23012025_15_14_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/15/14/image_23012025_15_14_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/14/image_23012025_15_14_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/14/image_23012025_15_14_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/15/14/image_23012025_15_14_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/14/image_23012025_15_14_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f932b44a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f932b44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f932b44a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:15:03.333679
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/14/image_23012025_15_14_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/15/14/image_23012025_15_14_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/14/image_23012025_15_14_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/14/image_23012025_15_14_34_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/15/14/image_23012025_15_14_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/14/image_23012025_15_14_22_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ea844a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ea844a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ea844a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:15:32.736005
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/15/image_23012025_15_15_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/15/15/image_23012025_15_15_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/15/image_23012025_15_15_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/15/image_23012025_15_15_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/15/image_23012025_15_15_22_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/15/14/image_23012025_15_15_04_6215.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78cfd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78cfd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78cfd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:16:02.187377
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/15/image_23012025_15_15_52_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/15/15/image_23012025_15_15_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/15/image_23012025_15_15_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/15/image_23012025_15_15_34_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/15/image_23012025_15_15_22_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/15/14/image_23012025_15_15_04_6215.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e56b438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e56b438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e56b438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:16:31.842616
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/16/image_23012025_15_16_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/15/16/image_23012025_15_16_40_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/15/16/image_23012025_15_16_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/16/image_23012025_15_16_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/16/image_23012025_15_16_22_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/15/16/image_23012025_15_16_17_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fcf1438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fcf1438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fcf1438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:17:02.518330
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/16/image_23012025_15_16_52_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/15/16/image_23012025_15_16_40_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/15/16/image_23012025_15_16_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/16/image_23012025_15_16_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/16/image_23012025_15_16_22_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/15/16/image_23012025_15_16_17_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b0c64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b0c64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b0c64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:17:31.952810
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/17/image_23012025_15_17_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/17/image_23012025_15_17_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/17/image_23012025_15_17_17_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/15/16/image_23012025_15_17_04_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/16/image_23012025_15_16_58_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/15/16/image_23012025_15_16_52_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafd524a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafd524a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafd524a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:18:02.518428
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/17/image_23012025_15_17_47_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/17/image_23012025_15_17_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/17/image_23012025_15_17_17_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/15/16/image_23012025_15_17_04_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/16/image_23012025_15_16_58_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/15/16/image_23012025_15_16_52_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb433a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb433a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb433a4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:18:32.028040
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/18/image_23012025_15_18_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/18/image_23012025_15_18_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/18/image_23012025_15_18_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/18/image_23012025_15_18_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/18/image_23012025_15_18_22_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/15/17/image_23012025_15_17_52_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4187438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4187438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4187438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:19:02.870270
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/18/image_23012025_15_18_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/18/image_23012025_15_18_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/18/image_23012025_15_18_34_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/18/image_23012025_15_18_28_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/18/image_23012025_15_18_22_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/15/17/image_23012025_15_17_52_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7987d438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7987d438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7987d438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:19:32.144701
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/19/image_23012025_15_19_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/19/image_23012025_15_19_34_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/15/19/image_23012025_15_19_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/15/19/image_23012025_15_19_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/19/image_23012025_15_19_17_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/18/image_23012025_15_18_53_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e99e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e99e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e99e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:20:02.638306
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/19/image_23012025_15_19_53_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/19/image_23012025_15_19_34_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/15/19/image_23012025_15_19_28_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/15/19/image_23012025_15_19_23_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/19/image_23012025_15_19_17_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/18/image_23012025_15_18_53_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa03544a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa03544a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa03544a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:20:32.232034
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/20/image_23012025_15_20_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/15/20/image_23012025_15_20_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/15/20/image_23012025_15_20_17_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/20/image_23012025_15_20_10_6212.jpg', 2), ('/home/nano/Desktop/images/23012025/15/19/image_23012025_15_20_04_6222.jpg', 2), ('/home/nano/Desktop/images/23012025/15/19/image_23012025_15_19_58_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84ce74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84ce74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84ce74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:21:03.044889
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/20/image_23012025_15_20_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/15/20/image_23012025_15_20_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/15/20/image_23012025_15_20_17_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/20/image_23012025_15_20_10_6212.jpg', 2), ('/home/nano/Desktop/images/23012025/15/19/image_23012025_15_20_04_6222.jpg', 2), ('/home/nano/Desktop/images/23012025/15/19/image_23012025_15_19_58_5187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8371b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8371b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8371b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:21:32.315293
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/21/image_23012025_15_21_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/21/image_23012025_15_21_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/21/image_23012025_15_21_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/21/image_23012025_15_21_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/15/21/image_23012025_15_21_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/15/21/image_23012025_15_21_23_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9dd214a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dd214a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dd214a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:22:02.867905
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/21/image_23012025_15_21_53_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/21/image_23012025_15_21_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/21/image_23012025_15_21_40_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/21/image_23012025_15_21_34_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/15/21/image_23012025_15_21_28_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/15/21/image_23012025_15_21_23_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb654f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb654f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb654f4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:22:32.419027
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/22/image_23012025_15_22_53_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/15/22/image_23012025_15_22_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/15/22/image_23012025_15_22_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/15/22/image_23012025_15_22_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/15/22/image_23012025_15_22_28_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/15/22/image_23012025_15_22_23_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa44c64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa44c64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa44c64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:23:03.310927
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/22/image_23012025_15_22_53_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/15/22/image_23012025_15_22_46_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/15/22/image_23012025_15_22_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/15/22/image_23012025_15_22_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/15/22/image_23012025_15_22_28_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/15/22/image_23012025_15_22_23_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9c884a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9c884a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9c884a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:23:32.522856
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/23/image_23012025_15_23_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/15/23/image_23012025_15_23_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/23/image_23012025_15_23_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/15/23/image_23012025_15_23_34_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/15/23/image_23012025_15_23_29_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/23/image_23012025_15_23_23_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82b1b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82b1b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82b1b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:24:03.405486
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/23/image_23012025_15_23_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/15/23/image_23012025_15_23_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/23/image_23012025_15_23_40_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/15/23/image_23012025_15_23_34_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/15/23/image_23012025_15_23_29_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/23/image_23012025_15_23_23_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3437438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3437438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3437438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:24:32.601433
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/24/image_23012025_15_24_52_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/15/24/image_23012025_15_24_46_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/15/24/image_23012025_15_24_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/24/image_23012025_15_24_34_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/15/24/image_23012025_15_24_29_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/15/24/image_23012025_15_24_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafe7d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafe7d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafe7d4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:25:03.480332
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/24/image_23012025_15_24_52_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/15/24/image_23012025_15_24_46_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/15/24/image_23012025_15_24_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/24/image_23012025_15_24_34_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/15/24/image_23012025_15_24_29_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/15/24/image_23012025_15_24_22_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bc814a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bc814a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bc814a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:25:32.717039
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/25/image_23012025_15_25_52_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/15/25/image_23012025_15_25_46_6247.jpg', 2), ('/home/nano/Desktop/images/23012025/15/25/image_23012025_15_25_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/15/25/image_23012025_15_25_34_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/15/25/image_23012025_15_25_29_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/15/25/image_23012025_15_25_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88a754a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88a754a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88a754a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:26:02.402159
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/25/image_23012025_15_25_52_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/15/25/image_23012025_15_25_46_6247.jpg', 2), ('/home/nano/Desktop/images/23012025/15/25/image_23012025_15_25_40_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/15/25/image_23012025_15_25_34_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/15/25/image_23012025_15_25_29_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/15/25/image_23012025_15_25_22_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa94184a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa94184a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa94184a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:26:31.797221
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/26/image_23012025_15_26_52_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/15/26/image_23012025_15_26_46_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/15/26/image_23012025_15_26_40_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/15/26/image_23012025_15_26_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/15/26/image_23012025_15_26_29_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/26/image_23012025_15_26_22_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb58be4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb58be4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb58be4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:27:02.687488
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/26/image_23012025_15_26_52_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/15/26/image_23012025_15_26_46_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/15/26/image_23012025_15_26_40_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/15/26/image_23012025_15_26_34_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/15/26/image_23012025_15_26_29_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/26/image_23012025_15_26_22_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7dcd24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dcd24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dcd24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:27:31.911377
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/27/image_23012025_15_27_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/27/image_23012025_15_27_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/15/27/image_23012025_15_27_40_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/15/27/image_23012025_15_27_34_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/15/27/image_23012025_15_27_29_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/15/27/image_23012025_15_27_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f812a04a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f812a04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f812a04a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:28:02.516244
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/27/image_23012025_15_27_52_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/27/image_23012025_15_27_46_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/15/27/image_23012025_15_27_40_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/15/27/image_23012025_15_27_34_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/15/27/image_23012025_15_27_29_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/15/27/image_23012025_15_27_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f982804a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f982804a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f982804a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:28:31.981492
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/28/image_23012025_15_28_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/28/image_23012025_15_28_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/15/28/image_23012025_15_28_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/28/image_23012025_15_28_34_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/15/28/image_23012025_15_28_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/28/image_23012025_15_28_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94d1e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94d1e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94d1e4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:29:03.049939
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/28/image_23012025_15_28_52_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/28/image_23012025_15_28_46_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/15/28/image_23012025_15_28_40_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/28/image_23012025_15_28_34_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/15/28/image_23012025_15_28_29_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/28/image_23012025_15_28_22_6198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9656c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9656c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9656c4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:29:32.086026
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/29/image_23012025_15_29_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/15/29/image_23012025_15_29_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/29/image_23012025_15_29_40_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/15/29/image_23012025_15_29_35_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/15/29/image_23012025_15_29_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/15/29/image_23012025_15_29_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faca424a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faca424a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faca424a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:30:02.620030
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/29/image_23012025_15_29_52_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/15/29/image_23012025_15_29_46_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/29/image_23012025_15_29_40_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/15/29/image_23012025_15_29_35_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/15/29/image_23012025_15_29_28_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/15/29/image_23012025_15_29_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97c89438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97c89438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97c89438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:30:32.197239
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/30/image_23012025_15_30_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/15/30/image_23012025_15_30_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/30/image_23012025_15_30_40_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/15/30/image_23012025_15_30_35_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/15/30/image_23012025_15_30_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/15/30/image_23012025_15_30_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97cd64a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97cd64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97cd64a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:31:03.018716
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/30/image_23012025_15_30_52_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/15/30/image_23012025_15_30_46_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/30/image_23012025_15_30_40_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/15/30/image_23012025_15_30_35_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/15/30/image_23012025_15_30_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/15/30/image_23012025_15_30_22_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f6b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f6b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f6b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:31:32.307246
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/31/image_23012025_15_31_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/15/31/image_23012025_15_31_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/15/31/image_23012025_15_31_41_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/15/31/image_23012025_15_31_35_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/15/31/image_23012025_15_31_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/15/31/image_23012025_15_31_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ff334a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ff334a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ff334a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:32:02.939752
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/31/image_23012025_15_31_52_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/15/31/image_23012025_15_31_46_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/15/31/image_23012025_15_31_41_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/15/31/image_23012025_15_31_35_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/15/31/image_23012025_15_31_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/15/31/image_23012025_15_31_22_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77461438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77461438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77461438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:32:32.389824
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/32/image_23012025_15_32_52_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/32/image_23012025_15_32_46_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/15/32/image_23012025_15_32_41_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/32/image_23012025_15_32_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/32/image_23012025_15_32_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/32/image_23012025_15_32_11_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87ead4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87ead4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87ead4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:33:03.202513
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/32/image_23012025_15_32_52_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/32/image_23012025_15_32_46_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/15/32/image_23012025_15_32_41_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/32/image_23012025_15_32_34_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/32/image_23012025_15_32_22_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/32/image_23012025_15_32_11_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bae74a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bae74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bae74a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:33:32.500839
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/33/image_23012025_15_33_52_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/15/33/image_23012025_15_33_46_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/15/33/image_23012025_15_33_41_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/15/33/image_23012025_15_33_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/33/image_23012025_15_33_28_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/33/image_23012025_15_33_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f916884a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f916884a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f916884a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:34:03.383068
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/33/image_23012025_15_33_52_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/15/33/image_23012025_15_33_46_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/15/33/image_23012025_15_33_41_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/15/33/image_23012025_15_33_34_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/33/image_23012025_15_33_28_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/33/image_23012025_15_33_22_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88e2f438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88e2f438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88e2f438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:34:32.596169
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/34/image_23012025_15_34_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/15/34/image_23012025_15_34_46_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/15/34/image_23012025_15_34_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/15/34/image_23012025_15_34_34_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/15/34/image_23012025_15_34_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/34/image_23012025_15_34_22_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb15cd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb15cd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb15cd4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:35:03.313720
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/34/image_23012025_15_34_52_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/15/34/image_23012025_15_34_46_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/15/34/image_23012025_15_34_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/15/34/image_23012025_15_34_34_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/15/34/image_23012025_15_34_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/34/image_23012025_15_34_22_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f963384a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f963384a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f963384a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:35:32.689075
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/35/image_23012025_15_35_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/35/image_23012025_15_35_46_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/15/35/image_23012025_15_35_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/15/35/image_23012025_15_35_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/15/35/image_23012025_15_35_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/35/image_23012025_15_35_22_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f912584a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f912584a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f912584a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:36:02.275377
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/35/image_23012025_15_35_52_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/35/image_23012025_15_35_46_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/15/35/image_23012025_15_35_41_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/15/35/image_23012025_15_35_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/15/35/image_23012025_15_35_28_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/15/35/image_23012025_15_35_22_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f985794a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f985794a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f985794a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:36:31.795647
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/36/image_23012025_15_36_52_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/15/36/image_23012025_15_36_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/36/image_23012025_15_36_41_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/15/36/image_23012025_15_36_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/15/36/image_23012025_15_36_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/15/36/image_23012025_15_36_17_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb573c438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb573c438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb573c438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:37:02.643220
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/36/image_23012025_15_36_52_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/15/36/image_23012025_15_36_47_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/36/image_23012025_15_36_41_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/15/36/image_23012025_15_36_34_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/15/36/image_23012025_15_36_28_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/15/36/image_23012025_15_36_17_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88d044a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88d044a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88d044a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:37:31.976400
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/37/image_23012025_15_37_52_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/15/37/image_23012025_15_37_47_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/15/37/image_23012025_15_37_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/15/37/image_23012025_15_37_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/15/37/image_23012025_15_37_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/15/37/image_23012025_15_37_22_5178.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e8bc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e8bc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e8bc4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:38:02.541868
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/37/image_23012025_15_37_52_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/15/37/image_23012025_15_37_47_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/15/37/image_23012025_15_37_40_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/15/37/image_23012025_15_37_34_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/15/37/image_23012025_15_37_28_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/15/37/image_23012025_15_37_22_5178.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9023b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9023b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9023b4a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:38:32.075223
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/38/image_23012025_15_38_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/38/image_23012025_15_38_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/38/image_23012025_15_38_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/15/38/image_23012025_15_38_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/15/38/image_23012025_15_38_28_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/15/38/image_23012025_15_38_23_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa72c14a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa72c14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa72c14a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:39:03.161323
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/38/image_23012025_15_38_53_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/15/38/image_23012025_15_38_47_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/38/image_23012025_15_38_40_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/15/38/image_23012025_15_38_34_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/15/38/image_23012025_15_38_28_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/15/38/image_23012025_15_38_23_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d6f24a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d6f24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d6f24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:39:32.193292
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/39/image_23012025_15_39_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/15/39/image_23012025_15_39_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/39/image_23012025_15_39_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/15/39/image_23012025_15_39_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/15/39/image_23012025_15_39_28_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/15/39/image_23012025_15_39_23_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa23a9438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa23a9438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa23a9438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:40:02.782158
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/39/image_23012025_15_39_53_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/15/39/image_23012025_15_39_46_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/39/image_23012025_15_39_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/15/39/image_23012025_15_39_34_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/15/39/image_23012025_15_39_28_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/15/39/image_23012025_15_39_23_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f829b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f829b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f829b94a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
 val : 1 : upload photos already in processing! 
2025-01-23 15:42:03.167642
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_53_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_46_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_40_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_34_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_28_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_23_6196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7faf2ccc50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faf2ccc50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faf2ccc50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:44:32.420419
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/41/image_23012025_15_41_16_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/41/image_23012025_15_41_10_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_41_04_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_58_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_53_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_46_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb0956be0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb0956be0>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb0956be0>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:47:02.399254
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/41/image_23012025_15_41_16_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/41/image_23012025_15_41_10_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_41_04_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_58_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_53_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_46_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f82d3ac50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f82d3ac50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f82d3ac50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:49:32.286968
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/41/image_23012025_15_41_16_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/41/image_23012025_15_41_10_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_41_04_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_58_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_53_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_46_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7d597c50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7d597c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7d597c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:52:03.206741
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/41/image_23012025_15_41_16_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/41/image_23012025_15_41_10_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_41_04_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_58_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_53_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_46_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8c511c50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8c511c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8c511c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:54:32.063860
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/41/image_23012025_15_41_16_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/41/image_23012025_15_41_10_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_41_04_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_58_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_53_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_46_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7adb7c50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7adb7c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7adb7c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:57:03.125125
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:59:03.574064
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/41/image_23012025_15_41_16_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/41/image_23012025_15_41_10_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_41_04_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_58_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_53_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_46_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8cb3ec50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8cb3ec50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8cb3ec50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 16:01:31.958497
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/41/image_23012025_15_41_16_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/41/image_23012025_15_41_10_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_41_04_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_58_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_53_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_46_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7fb1cc50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7fb1cc50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7fb1cc50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 16:04:02.974762
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 15:59:04.071425
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/41/image_23012025_15_41_16_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/41/image_23012025_15_41_10_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_41_04_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_58_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_53_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_46_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1913438>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1913438>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1913438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
 val : 1 : upload photos already in processing! 
2025-01-23 16:06:02.828393
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/15/41/image_23012025_15_41_16_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/15/41/image_23012025_15_41_10_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_41_04_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_58_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_53_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/15/40/image_23012025_15_40_46_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9440ebe0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9440ebe0>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9440ebe0>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 16:08:31.889247
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/16/08/image_23012025_16_08_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/16/08/image_23012025_16_08_48_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/16/08/image_23012025_16_08_42_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/16/08/image_23012025_16_08_36_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/16/08/image_23012025_16_08_31_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/16/08/image_23012025_16_08_25_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f91251be0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f91251be0>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f91251be0>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 16:11:02.790567
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/16/10/image_23012025_16_10_55_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/16/10/image_23012025_16_10_49_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/16/10/image_23012025_16_10_42_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/16/10/image_23012025_16_10_36_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/16/10/image_23012025_16_10_30_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/16/10/image_23012025_16_10_25_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7db95c50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7db95c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7db95c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 16:13:32.438769
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/16/13/image_23012025_16_14_00_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/16/13/image_23012025_16_13_49_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/16/13/image_23012025_16_13_42_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/16/13/image_23012025_16_13_36_6232.jpg', 2), ('/home/nano/Desktop/images/23012025/16/13/image_23012025_16_13_30_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/16/13/image_23012025_16_13_25_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb2c30c50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb2c30c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb2c30c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 16:16:03.239330
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/16/15/image_23012025_16_15_55_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/16/15/image_23012025_16_15_48_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/16/15/image_23012025_16_15_42_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/16/15/image_23012025_16_15_36_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/16/15/image_23012025_16_15_31_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/16/15/image_23012025_16_15_25_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8a1bac50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8a1bac50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8a1bac50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 16:18:31.976144
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/16/18/image_23012025_16_18_55_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/16/18/image_23012025_16_18_49_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/16/18/image_23012025_16_18_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/16/18/image_23012025_16_18_36_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/16/18/image_23012025_16_18_30_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/16/18/image_23012025_16_18_25_6195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7faf3cac88>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faf3cac88>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faf3cac88>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 16:21:03.021520
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/16/20/image_23012025_16_20_55_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/16/20/image_23012025_16_20_49_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/16/20/image_23012025_16_20_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/16/20/image_23012025_16_20_30_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/16/20/image_23012025_16_20_25_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/16/20/image_23012025_16_20_19_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb5bd1c50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb5bd1c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb5bd1c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 16:23:32.510257
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/16/23/image_23012025_16_24_01_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/16/23/image_23012025_16_23_48_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/16/23/image_23012025_16_23_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/16/23/image_23012025_16_23_36_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/16/23/image_23012025_16_23_30_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/16/23/image_23012025_16_23_25_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7c750c50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7c750c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7c750c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 16:26:02.172278
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/16/25/image_23012025_16_25_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/16/25/image_23012025_16_25_48_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/16/25/image_23012025_16_25_42_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/16/25/image_23012025_16_25_36_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/16/25/image_23012025_16_25_31_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/16/25/image_23012025_16_25_25_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f95554c50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f95554c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f95554c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 16:28:32.025808
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/16/28/image_23012025_16_28_55_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/16/28/image_23012025_16_28_49_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/16/28/image_23012025_16_28_42_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/16/28/image_23012025_16_28_36_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/16/28/image_23012025_16_28_30_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/16/28/image_23012025_16_28_25_6192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7faf8c0c50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faf8c0c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faf8c0c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 16:31:03.146467
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/16/30/image_23012025_16_30_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/16/30/image_23012025_16_30_48_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/16/30/image_23012025_16_30_42_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/16/30/image_23012025_16_30_36_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/16/30/image_23012025_16_30_30_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/16/30/image_23012025_16_30_25_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa4144c50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa4144c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa4144c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 16:33:32.599304
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/16/33/image_23012025_16_34_01_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/16/33/image_23012025_16_33_48_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/16/33/image_23012025_16_33_42_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/16/33/image_23012025_16_33_36_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/16/33/image_23012025_16_33_31_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/16/33/image_23012025_16_33_25_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb264cc50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb264cc50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb264cc50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 16:36:02.372390
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/16/35/image_23012025_16_35_54_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/16/35/image_23012025_16_35_48_6210.jpg', 2), ('/home/nano/Desktop/images/23012025/16/35/image_23012025_16_35_42_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/16/35/image_23012025_16_35_37_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/16/35/image_23012025_16_35_31_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/16/35/image_23012025_16_35_24_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8451cc50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8451cc50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8451cc50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 16:38:32.212876
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/16/38/image_23012025_16_38_55_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/16/38/image_23012025_16_38_49_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/16/38/image_23012025_16_38_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/16/38/image_23012025_16_38_36_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/16/38/image_23012025_16_38_30_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/16/38/image_23012025_16_38_25_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f782b8c50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f782b8c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f782b8c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 16:41:03.109909
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/16/40/image_23012025_16_40_55_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/16/40/image_23012025_16_40_48_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/16/40/image_23012025_16_40_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/16/40/image_23012025_16_40_36_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/16/40/image_23012025_16_40_31_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/16/40/image_23012025_16_40_25_6197.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8327ec50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8327ec50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8327ec50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 16:43:32.699993
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/16/43/image_23012025_16_44_00_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/16/43/image_23012025_16_43_48_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/16/43/image_23012025_16_43_42_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/16/43/image_23012025_16_43_37_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/16/43/image_23012025_16_43_31_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/16/43/image_23012025_16_43_24_6190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f80304c50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f80304c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f80304c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 16:46:02.477314
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/16/45/image_23012025_16_45_54_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/16/45/image_23012025_16_45_48_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/16/45/image_23012025_16_45_43_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/16/45/image_23012025_16_45_37_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/16/45/image_23012025_16_45_30_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/16/45/image_23012025_16_45_24_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb05bcc50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb05bcc50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb05bcc50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 16:48:32.190645
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/16/48/image_23012025_16_48_55_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/16/48/image_23012025_16_48_49_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/16/48/image_23012025_16_48_42_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/16/48/image_23012025_16_48_36_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/16/48/image_23012025_16_48_30_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/16/48/image_23012025_16_48_24_5185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa0a23be0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa0a23be0>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa0a23be0>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 16:51:03.161153
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/16/50/image_23012025_16_50_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/16/50/image_23012025_16_50_48_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/16/50/image_23012025_16_50_42_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/16/50/image_23012025_16_50_36_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/16/50/image_23012025_16_50_30_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/16/50/image_23012025_16_50_25_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb20fdc50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb20fdc50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb20fdc50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 16:53:32.665688
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/16/53/image_23012025_16_54_01_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/16/53/image_23012025_16_53_48_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/16/53/image_23012025_16_53_42_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/16/53/image_23012025_16_53_36_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/16/53/image_23012025_16_53_31_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/16/53/image_23012025_16_53_25_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9ba66be0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9ba66be0>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9ba66be0>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 16:56:02.481577
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 16:59:03.143102
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/16/57/image_23012025_16_57_55_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/16/57/image_23012025_16_57_48_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/16/57/image_23012025_16_57_42_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/16/57/image_23012025_16_57_36_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/16/57/image_23012025_16_57_31_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/16/57/image_23012025_16_57_25_6200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f88d77be0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f88d77be0>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f88d77be0>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:01:32.654453
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/01/image_23012025_17_01_54_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/17/01/image_23012025_17_01_48_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/17/01/image_23012025_17_01_43_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/17/01/image_23012025_17_01_37_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/17/01/image_23012025_17_01_30_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/17/01/image_23012025_17_01_24_6187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9802cc50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9802cc50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9802cc50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:04:02.735770
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/03/image_23012025_17_04_00_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/17/03/image_23012025_17_03_49_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/17/03/image_23012025_17_03_43_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/17/03/image_23012025_17_03_36_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/17/03/image_23012025_17_03_30_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/17/03/image_23012025_17_03_24_5182.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7f85dc50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7f85dc50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7f85dc50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:06:32.222105
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/06/image_23012025_17_06_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/17/06/image_23012025_17_06_49_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/17/06/image_23012025_17_06_42_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/17/06/image_23012025_17_06_36_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/17/06/image_23012025_17_06_30_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/17/06/image_23012025_17_06_25_6188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f92d2ac50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f92d2ac50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f92d2ac50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:09:03.589303
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/08/image_23012025_17_08_55_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/17/08/image_23012025_17_08_48_6254.jpg', 2), ('/home/nano/Desktop/images/23012025/17/08/image_23012025_17_08_42_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/17/08/image_23012025_17_08_36_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/17/08/image_23012025_17_08_31_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/17/08/image_23012025_17_08_25_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7bd04c50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7bd04c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7bd04c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:11:32.703824
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/11/image_23012025_17_11_54_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/17/11/image_23012025_17_11_48_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/17/11/image_23012025_17_11_42_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/17/11/image_23012025_17_11_37_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/17/11/image_23012025_17_11_31_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/17/11/image_23012025_17_11_24_6189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f98a3dc50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f98a3dc50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f98a3dc50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:14:02.946460
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/13/image_23012025_17_14_00_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/17/13/image_23012025_17_13_43_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/17/12/image_23012025_17_12_31_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/17/12/image_23012025_17_12_07_6214.jpg', 2), ('/home/nano/Desktop/images/23012025/17/11/image_23012025_17_12_01_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/17/11/image_23012025_17_11_54_6194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f76d56c50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f76d56c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f76d56c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:16:32.407953
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/16/image_23012025_17_16_54_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/17/16/image_23012025_17_16_49_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/17/16/image_23012025_17_16_43_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/17/16/image_23012025_17_16_36_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/17/16/image_23012025_17_16_30_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/17/16/image_23012025_17_16_24_5177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8ded4be0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8ded4be0>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8ded4be0>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:19:03.674094
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/18/image_23012025_17_18_55_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/17/18/image_23012025_17_18_49_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/17/18/image_23012025_17_18_42_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/17/18/image_23012025_17_18_36_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/17/18/image_23012025_17_18_30_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/17/18/image_23012025_17_18_25_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9a3b8c50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9a3b8c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9a3b8c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:21:31.957261
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/21/image_23012025_17_21_55_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/17/21/image_23012025_17_21_48_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/17/21/image_23012025_17_21_42_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/17/21/image_23012025_17_21_36_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/17/21/image_23012025_17_21_31_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/17/21/image_23012025_17_21_25_6191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7c662c50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7c662c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7c662c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:24:03.136956
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/23/image_23012025_17_24_00_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/17/23/image_23012025_17_23_49_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/17/23/image_23012025_17_23_42_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/17/23/image_23012025_17_23_36_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/17/23/image_23012025_17_23_30_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/17/23/image_23012025_17_23_25_6201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb5043c50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb5043c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb5043c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:26:32.472826
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/26/image_23012025_17_26_55_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/17/26/image_23012025_17_26_42_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/17/26/image_23012025_17_26_36_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/17/26/image_23012025_17_26_31_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/17/26/image_23012025_17_26_25_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/17/26/image_23012025_17_26_18_6199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb4fc4c50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb4fc4c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb4fc4c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:29:02.528057
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/28/image_23012025_17_28_55_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/17/28/image_23012025_17_28_48_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/17/28/image_23012025_17_28_42_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/17/28/image_23012025_17_28_36_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/17/28/image_23012025_17_28_31_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/17/28/image_23012025_17_28_25_6242.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f89fbcc50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f89fbcc50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f89fbcc50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:31:31.973531
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/31/image_23012025_17_31_55_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/17/31/image_23012025_17_31_48_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/17/31/image_23012025_17_31_42_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/17/31/image_23012025_17_31_36_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/17/31/image_23012025_17_31_30_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/17/31/image_23012025_17_31_25_6193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_23012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f993b8c50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f993b8c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f993b8c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:34:03.136289
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : AEC_mm_0125_23012025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
533
2506585
533
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/33/image_23012025_17_34_00_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_49_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_42_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_36_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_30_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_25_6200.jpg', 2)]
{'portfolio_id': 19847706, 'actiontaken': ['Created new portfolio'], 'error': 'Photos id not exist !', 'updated_at': 1737650103000}
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/33/image_23012025_17_34_00_5184.jpg', '/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_49_6200.jpg', '/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_42_6195.jpg', '/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_36_6201.jpg', '/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_30_5186.jpg', '/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_25_6200.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/33/image_23012025_17_34_00_5184.jpg
/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_49_6200.jpg
/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_42_6195.jpg
/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_36_6201.jpg
/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_30_5186.jpg
/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_25_6200.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330834422","1330834410","1330834404","1330834407","1330834418","1330834414"],"photo_ids_order":["1330834404","1330834407","1330834410","1330834414","1330834418","1330834422"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9e3e88310652e431c638a88ddcba823f.jpg","text":"TemporaryFile(/tmp/multipartBody6420264259142718218asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650104760,"filename":"image_23012025_17_33_25_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7e1b5a68f3f5acd5192e9d27f8cb414e.jpg","text":"TemporaryFile(/tmp/multipartBody3789338218505019329asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650104760,"filename":"image_23012025_17_33_42_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/43e151801ad89af0fd5d4512c13d8c1b.jpg","text":"TemporaryFile(/tmp/multipartBody4971246439506433720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650104760,"filename":"image_23012025_17_34_00_5184.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4bd48b6b92c6ee9c9336c7a290b02ffd.jpg","text":"TemporaryFile(/tmp/multipartBody1115956943285668721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650104760,"filename":"image_23012025_17_33_49_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bda5a49c3eae17c5b1f2bf9d444d3a83.jpg","text":"TemporaryFile(/tmp/multipartBody4325650906044930232asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650104760,"filename":"image_23012025_17_33_30_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a3744a93fdc69d7c8beea5ae64d4c084.jpg","text":"TemporaryFile(/tmp/multipartBody8451546920597621288asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650104760,"filename":"image_23012025_17_33_36_6201.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330834410","file1":"1330834407","file0":"1330834404","file4":"1330834418","file5":"1330834422","file3":"1330834414"},"map_files_photo_id_array":[{"photo_id":"1330834422","filename":"file5"},{"photo_id":"1330834410","filename":"file2"},{"photo_id":"1330834418","filename":"file4"},{"photo_id":"1330834407","filename":"file1"},{"photo_id":"1330834404","filename":"file0"},{"photo_id":"1330834414","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330834422":["hashtag1","hashtag2"]},{"1330834410":["hashtag1","hashtag2"]},{"1330834404":["hashtag1","hashtag2"]},{"1330834407":["hashtag1","hashtag2"]},{"1330834418":["hashtag1","hashtag2"]},{"1330834414":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330834422, 1330834410, 1330834404, 1330834407, 1330834418, 1330834414)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.317882537841797 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:35:03.175977
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/34/image_23012025_17_34_55_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/17/34/image_23012025_17_34_42_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/17/34/image_23012025_17_34_36_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/17/34/image_23012025_17_34_30_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/17/34/image_23012025_17_34_25_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/17/34/image_23012025_17_34_19_6194.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/34/image_23012025_17_34_55_6194.jpg', '/home/nano/Desktop/images/23012025/17/34/image_23012025_17_34_42_6192.jpg', '/home/nano/Desktop/images/23012025/17/34/image_23012025_17_34_36_6201.jpg', '/home/nano/Desktop/images/23012025/17/34/image_23012025_17_34_30_5190.jpg', '/home/nano/Desktop/images/23012025/17/34/image_23012025_17_34_25_6197.jpg', '/home/nano/Desktop/images/23012025/17/34/image_23012025_17_34_19_6194.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/34/image_23012025_17_34_55_6194.jpg
/home/nano/Desktop/images/23012025/17/34/image_23012025_17_34_42_6192.jpg
/home/nano/Desktop/images/23012025/17/34/image_23012025_17_34_36_6201.jpg
/home/nano/Desktop/images/23012025/17/34/image_23012025_17_34_30_5190.jpg
/home/nano/Desktop/images/23012025/17/34/image_23012025_17_34_25_6197.jpg
/home/nano/Desktop/images/23012025/17/34/image_23012025_17_34_19_6194.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330834458","1330834451","1330834454","1330834448","1330834439","1330834444"],"photo_ids_order":["1330834439","1330834444","1330834448","1330834451","1330834454","1330834458"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/98b03836bc5dcba213efbd4c6be22026.jpg","text":"TemporaryFile(/tmp/multipartBody7778976688275472276asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650163831,"filename":"image_23012025_17_34_19_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5d67441dc1940e4aa6ecabf69460366e.jpg","text":"TemporaryFile(/tmp/multipartBody6141263456072200441asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650163831,"filename":"image_23012025_17_34_30_5190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/51e5b28d46c8f7dfa0bfba98bfcb98d8.jpg","text":"TemporaryFile(/tmp/multipartBody8235791172132126453asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650163831,"filename":"image_23012025_17_34_25_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ac17674070dfd55da23a612c770d30e0.jpg","text":"TemporaryFile(/tmp/multipartBody8341441527827135489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650163831,"filename":"image_23012025_17_34_36_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/525a9056dca9037cb189c05e8a78f36d.jpg","text":"TemporaryFile(/tmp/multipartBody1633252233019365991asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650163831,"filename":"image_23012025_17_34_55_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/be7c6f084924ae2c8cfd8c86efaa2a9c.jpg","text":"TemporaryFile(/tmp/multipartBody7530038795900383983asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650163831,"filename":"image_23012025_17_34_42_6192.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330834448","file1":"1330834444","file0":"1330834439","file4":"1330834454","file5":"1330834458","file3":"1330834451"},"map_files_photo_id_array":[{"photo_id":"1330834458","filename":"file5"},{"photo_id":"1330834448","filename":"file2"},{"photo_id":"1330834454","filename":"file4"},{"photo_id":"1330834444","filename":"file1"},{"photo_id":"1330834439","filename":"file0"},{"photo_id":"1330834451","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330834458":["hashtag1","hashtag2"]},{"1330834451":["hashtag1","hashtag2"]},{"1330834454":["hashtag1","hashtag2"]},{"1330834448":["hashtag1","hashtag2"]},{"1330834439":["hashtag1","hashtag2"]},{"1330834444":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330834458, 1330834451, 1330834454, 1330834448, 1330834439, 1330834444)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.5911967754364 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:36:03.059671
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_55_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_49_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_42_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_36_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_30_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_25_6189.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_55_6187.jpg', '/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_49_6188.jpg', '/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_42_6189.jpg', '/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_36_6188.jpg', '/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_30_5179.jpg', '/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_25_6189.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_55_6187.jpg
/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_49_6188.jpg
/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_42_6189.jpg
/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_36_6188.jpg
/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_30_5179.jpg
/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_25_6189.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.3265247344970703 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:36:32.621251
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_48_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_42_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_36_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_31_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_25_6189.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_55_6188.jpg', '/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_48_6189.jpg', '/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_42_6187.jpg', '/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_36_5180.jpg', '/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_31_6189.jpg', '/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_25_6189.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_55_6188.jpg
/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_48_6189.jpg
/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_42_6187.jpg
/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_36_5180.jpg
/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_31_6189.jpg
/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_25_6189.jpg
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330834515","1330834500","1330834508","1330834511","1330834505","1330834519"],"photo_ids_order":["1330834500","1330834505","1330834508","1330834511","1330834515","1330834519"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8d61bcc32f7539a2dbce978d2424d39c.jpg","text":"TemporaryFile(/tmp/multipartBody9219475548722482252asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650253028,"filename":"image_23012025_17_36_31_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/286e91e144720a0ed4ec6294ea74b77e.jpg","text":"TemporaryFile(/tmp/multipartBody9153064809608708095asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650253028,"filename":"image_23012025_17_36_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/568b62df56421024fe7596a309881e96.jpg","text":"TemporaryFile(/tmp/multipartBody1520314636498942490asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650253028,"filename":"image_23012025_17_36_42_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/84ff7b513ba22a8fe14f18f0ff78be90.jpg","text":"TemporaryFile(/tmp/multipartBody646911001149091572asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650253028,"filename":"image_23012025_17_36_36_5180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/569cd9cc1b648278bc9c9dcee69a386d.jpg","text":"TemporaryFile(/tmp/multipartBody4299124597013298452asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650253028,"filename":"image_23012025_17_36_48_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a3395d513e10f6ebd79d8d09779e5d04.jpg","text":"TemporaryFile(/tmp/multipartBody8674826457437035492asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650253028,"filename":"image_23012025_17_36_25_6189.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330834508","file1":"1330834505","file0":"1330834500","file4":"1330834515","file5":"1330834519","file3":"1330834511"},"map_files_photo_id_array":[{"photo_id":"1330834519","filename":"file5"},{"photo_id":"1330834508","filename":"file2"},{"photo_id":"1330834515","filename":"file4"},{"photo_id":"1330834505","filename":"file1"},{"photo_id":"1330834500","filename":"file0"},{"photo_id":"1330834511","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330834515":["hashtag1","hashtag2"]},{"1330834500":["hashtag1","hashtag2"]},{"1330834508":["hashtag1","hashtag2"]},{"1330834511":["hashtag1","hashtag2"]},{"1330834505":["hashtag1","hashtag2"]},{"1330834519":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330834515, 1330834500, 1330834508, 1330834511, 1330834505, 1330834519)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.411760807037354 secondes ---
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:37:32.742113
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_54_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_48_6185.jpg', 2), ('/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_42_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_36_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_31_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_25_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_54_6188.jpg', '/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_48_6185.jpg', '/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_42_6193.jpg', '/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_36_5181.jpg', '/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_31_6188.jpg', '/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_25_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_54_6188.jpg
/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_48_6185.jpg
/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_42_6193.jpg
/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_36_5181.jpg
/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_31_6188.jpg
/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_25_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330834575","1330834554","1330834557","1330834565","1330834561","1330834570"],"photo_ids_order":["1330834554","1330834557","1330834561","1330834565","1330834570","1330834575"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2abaa9506e405d4ae87f0ec3cafb4bb5.jpg","text":"TemporaryFile(/tmp/multipartBody5634753686261393946asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650313194,"filename":"image_23012025_17_37_25_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1ddd3a6e5d089b2bfdc9300ebd3ba3d3.jpg","text":"TemporaryFile(/tmp/multipartBody6948288762033571110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650313194,"filename":"image_23012025_17_37_54_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/95d31ecc0cbc852f05fc60b16b15ebe2.jpg","text":"TemporaryFile(/tmp/multipartBody7440561471257664069asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650313194,"filename":"image_23012025_17_37_48_6185.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ed86cad2bbe39e79e21d537a3b4fe29e.jpg","text":"TemporaryFile(/tmp/multipartBody8852983432847248633asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650313194,"filename":"image_23012025_17_37_36_5181.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/62b304aa72e0554abc1d34fd20680b35.jpg","text":"TemporaryFile(/tmp/multipartBody5815251197850403313asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650313194,"filename":"image_23012025_17_37_42_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3c1908cf084bd74c7c43a4c2f496f2ec.jpg","text":"TemporaryFile(/tmp/multipartBody6350739412342299777asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650313194,"filename":"image_23012025_17_37_31_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330834561","file1":"1330834557","file0":"1330834554","file4":"1330834570","file5":"1330834575","file3":"1330834565"},"map_files_photo_id_array":[{"photo_id":"1330834575","filename":"file5"},{"photo_id":"1330834561","filename":"file2"},{"photo_id":"1330834570","filename":"file4"},{"photo_id":"1330834557","filename":"file1"},{"photo_id":"1330834554","filename":"file0"},{"photo_id":"1330834565","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330834575":["hashtag1","hashtag2"]},{"1330834554":["hashtag1","hashtag2"]},{"1330834557":["hashtag1","hashtag2"]},{"1330834565":["hashtag1","hashtag2"]},{"1330834561":["hashtag1","hashtag2"]},{"1330834570":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330834575, 1330834554, 1330834557, 1330834565, 1330834561, 1330834570)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.183868646621704 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:38:31.833667
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_54_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_48_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_42_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_37_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_31_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_24_6190.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_54_6191.jpg', '/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_48_6191.jpg', '/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_42_5183.jpg', '/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_37_6197.jpg', '/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_31_6193.jpg', '/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_24_6190.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_54_6191.jpg
/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_48_6191.jpg
/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_42_5183.jpg
/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_37_6197.jpg
/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_31_6193.jpg
/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_24_6190.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330834602","1330834611","1330834605","1330834616","1330834596","1330834621"],"photo_ids_order":["1330834596","1330834602","1330834605","1330834611","1330834616","1330834621"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b2c3b41e8d3c92a8a90058307bd71cea.jpg","text":"TemporaryFile(/tmp/multipartBody7697893903004762391asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650372353,"filename":"image_23012025_17_38_48_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/48e6b8ae97352c6012ca7a602230d23c.jpg","text":"TemporaryFile(/tmp/multipartBody685393066176163197asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650372353,"filename":"image_23012025_17_38_37_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d150d09f1e6023196192f864a2d66424.jpg","text":"TemporaryFile(/tmp/multipartBody4478533104925532646asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650372353,"filename":"image_23012025_17_38_42_5183.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5db00b91e2e1b788b63173644ba1f719.jpg","text":"TemporaryFile(/tmp/multipartBody1942351364894053223asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650372353,"filename":"image_23012025_17_38_31_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c25dcb06a932ab47922b5d17fa3f1184.jpg","text":"TemporaryFile(/tmp/multipartBody685693229666666289asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650372353,"filename":"image_23012025_17_38_54_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/eb6d9f54bafb0d318eff93febee1f07c.jpg","text":"TemporaryFile(/tmp/multipartBody282499484720029088asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650372353,"filename":"image_23012025_17_38_24_6190.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330834605","file1":"1330834602","file0":"1330834596","file4":"1330834616","file5":"1330834621","file3":"1330834611"},"map_files_photo_id_array":[{"photo_id":"1330834621","filename":"file5"},{"photo_id":"1330834605","filename":"file2"},{"photo_id":"1330834616","filename":"file4"},{"photo_id":"1330834602","filename":"file1"},{"photo_id":"1330834596","filename":"file0"},{"photo_id":"1330834611","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330834602":["hashtag1","hashtag2"]},{"1330834611":["hashtag1","hashtag2"]},{"1330834605":["hashtag1","hashtag2"]},{"1330834616":["hashtag1","hashtag2"]},{"1330834596":["hashtag1","hashtag2"]},{"1330834621":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330834602, 1330834611, 1330834605, 1330834616, 1330834596, 1330834621)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.2448627948761 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:39:31.978118
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_55_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_48_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_42_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_36_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_31_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_25_6194.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_55_6198.jpg', '/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_48_6191.jpg', '/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_42_6206.jpg', '/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_36_5186.jpg', '/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_31_6192.jpg', '/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_25_6194.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_55_6198.jpg
/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_48_6191.jpg
/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_42_6206.jpg
/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_36_5186.jpg
/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_31_6192.jpg
/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_25_6194.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330834668","1330834653","1330834661","1330834649","1330834657","1330834666"],"photo_ids_order":["1330834649","1330834653","1330834657","1330834661","1330834666","1330834668"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d4fcf4fd1cb69c01ade96a9d6ac81c46.jpg","text":"TemporaryFile(/tmp/multipartBody1849367962116498262asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650432490,"filename":"image_23012025_17_39_25_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/aa12a5ae31e493efb818cebe0b5b3fb2.jpg","text":"TemporaryFile(/tmp/multipartBody8378489799707255438asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650432490,"filename":"image_23012025_17_39_48_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c4441f5fc497376c1c330029e186ebb1.jpg","text":"TemporaryFile(/tmp/multipartBody8967504155388189296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650432490,"filename":"image_23012025_17_39_36_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/71ba059efe0dd5147a4d711523481828.jpg","text":"TemporaryFile(/tmp/multipartBody1099780111936338059asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650432490,"filename":"image_23012025_17_39_55_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/42c6b9e57b58809a26cf5f52f801380a.jpg","text":"TemporaryFile(/tmp/multipartBody3093624871664989434asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650432490,"filename":"image_23012025_17_39_42_6206.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e6ee75bdbb1bdb3385709e70885f00d5.jpg","text":"TemporaryFile(/tmp/multipartBody6213325956516714780asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650432490,"filename":"image_23012025_17_39_31_6192.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330834657","file1":"1330834653","file0":"1330834649","file4":"1330834666","file5":"1330834668","file3":"1330834661"},"map_files_photo_id_array":[{"photo_id":"1330834668","filename":"file5"},{"photo_id":"1330834657","filename":"file2"},{"photo_id":"1330834666","filename":"file4"},{"photo_id":"1330834653","filename":"file1"},{"photo_id":"1330834649","filename":"file0"},{"photo_id":"1330834661","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330834668":["hashtag1","hashtag2"]},{"1330834653":["hashtag1","hashtag2"]},{"1330834661":["hashtag1","hashtag2"]},{"1330834649":["hashtag1","hashtag2"]},{"1330834657":["hashtag1","hashtag2"]},{"1330834666":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330834668, 1330834653, 1330834661, 1330834649, 1330834657, 1330834666)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.787086963653564 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:40:32.093204
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_48_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_42_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_36_5225.jpg', 2), ('/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_31_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_25_6190.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_55_6188.jpg', '/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_48_6189.jpg', '/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_42_6187.jpg', '/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_36_5225.jpg', '/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_31_6191.jpg', '/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_25_6190.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_55_6188.jpg
/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_48_6189.jpg
/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_42_6187.jpg
/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_36_5225.jpg
/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_31_6191.jpg
/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_25_6190.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330834758","1330834737","1330834742","1330834751","1330834733","1330834747"],"photo_ids_order":["1330834733","1330834737","1330834742","1330834747","1330834751","1330834758"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/123cff3f74db2e7266a1ae29d711b62a.jpg","text":"TemporaryFile(/tmp/multipartBody3524921222989182809asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650492524,"filename":"image_23012025_17_40_25_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d3e4e51b7dbeed11234d2e10c7e73cc3.jpg","text":"TemporaryFile(/tmp/multipartBody4176887102103382807asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650492524,"filename":"image_23012025_17_40_48_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/73ce30baafd32dd27ff98c00341e72db.jpg","text":"TemporaryFile(/tmp/multipartBody2603921654514085441asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650492524,"filename":"image_23012025_17_40_42_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d65d1cf9de93371217906aa8587fb635.jpg","text":"TemporaryFile(/tmp/multipartBody4457574046030759961asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650492524,"filename":"image_23012025_17_40_31_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3ad90b363b6590ac76357e1dd9d16ad0.jpg","text":"TemporaryFile(/tmp/multipartBody1155706802352111085asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650492524,"filename":"image_23012025_17_40_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fe2e7e563198673dbc07f7b4d206d069.jpg","text":"TemporaryFile(/tmp/multipartBody1400545876378600479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650492524,"filename":"image_23012025_17_40_36_5225.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330834742","file1":"1330834737","file0":"1330834733","file4":"1330834751","file5":"1330834758","file3":"1330834747"},"map_files_photo_id_array":[{"photo_id":"1330834758","filename":"file5"},{"photo_id":"1330834742","filename":"file2"},{"photo_id":"1330834751","filename":"file4"},{"photo_id":"1330834737","filename":"file1"},{"photo_id":"1330834733","filename":"file0"},{"photo_id":"1330834747","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330834758":["hashtag1","hashtag2"]},{"1330834737":["hashtag1","hashtag2"]},{"1330834742":["hashtag1","hashtag2"]},{"1330834751":["hashtag1","hashtag2"]},{"1330834733":["hashtag1","hashtag2"]},{"1330834747":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330834758, 1330834737, 1330834742, 1330834751, 1330834733, 1330834747)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.87106442451477 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:41:32.196842
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_54_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_48_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_42_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_36_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_31_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_25_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_54_6196.jpg', '/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_48_6200.jpg', '/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_42_6204.jpg', '/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_36_5179.jpg', '/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_31_6186.jpg', '/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_25_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_54_6196.jpg
/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_48_6200.jpg
/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_42_6204.jpg
/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_36_5179.jpg
/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_31_6186.jpg
/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_25_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330834866","1330834889","1330834880","1330834862","1330834901","1330834896"],"photo_ids_order":["1330834862","1330834866","1330834880","1330834889","1330834896","1330834901"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/66edbbced628c03a7272f6b6b5eaf481.jpg","text":"TemporaryFile(/tmp/multipartBody8328810624358224504asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650552627,"filename":"image_23012025_17_41_48_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8f5ccd629478523c4fd5e1a01a01f684.jpg","text":"TemporaryFile(/tmp/multipartBody7307015776166341419asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650552627,"filename":"image_23012025_17_41_36_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bd3b5582227bf01f0c17764302e0d800.jpg","text":"TemporaryFile(/tmp/multipartBody7811458641300473027asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650552627,"filename":"image_23012025_17_41_42_6204.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/134fe029c55dbb0e90e7de2f7e1bed4e.jpg","text":"TemporaryFile(/tmp/multipartBody751807713837176412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650552627,"filename":"image_23012025_17_41_54_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/81f0bb5d059a698e02c907ef32857e2f.jpg","text":"TemporaryFile(/tmp/multipartBody2424274474504681450asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650552627,"filename":"image_23012025_17_41_25_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e2c9b40850be0ba2601625eaf77a7e8d.jpg","text":"TemporaryFile(/tmp/multipartBody3724997554150413711asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650552627,"filename":"image_23012025_17_41_31_6186.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330834880","file1":"1330834866","file0":"1330834862","file4":"1330834896","file5":"1330834901","file3":"1330834889"},"map_files_photo_id_array":[{"photo_id":"1330834901","filename":"file5"},{"photo_id":"1330834880","filename":"file2"},{"photo_id":"1330834896","filename":"file4"},{"photo_id":"1330834866","filename":"file1"},{"photo_id":"1330834862","filename":"file0"},{"photo_id":"1330834889","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330834866":["hashtag1","hashtag2"]},{"1330834889":["hashtag1","hashtag2"]},{"1330834880":["hashtag1","hashtag2"]},{"1330834862":["hashtag1","hashtag2"]},{"1330834901":["hashtag1","hashtag2"]},{"1330834896":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330834866, 1330834889, 1330834880, 1330834862, 1330834901, 1330834896)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.438402891159058 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:42:32.312946
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_54_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_48_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_42_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_37_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_31_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_24_6192.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_54_6191.jpg', '/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_48_6192.jpg', '/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_42_5180.jpg', '/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_37_6190.jpg', '/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_31_6202.jpg', '/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_24_6192.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_54_6191.jpg
/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_48_6192.jpg
/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_42_5180.jpg
/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_37_6190.jpg
/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_31_6202.jpg
/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_24_6192.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330834968","1330834941","1330834961","1330834975","1330834957","1330834980"],"photo_ids_order":["1330834941","1330834957","1330834961","1330834968","1330834975","1330834980"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5687547bdc39320122327b35006b98b0.jpg","text":"TemporaryFile(/tmp/multipartBody2194709578761055685asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650612835,"filename":"image_23012025_17_42_37_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/928ec9f6f28b9d9399d1c50173c76d38.jpg","text":"TemporaryFile(/tmp/multipartBody5193205604671048066asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650612835,"filename":"image_23012025_17_42_54_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2a24d4ee802d5cd7777536b97a1becfd.jpg","text":"TemporaryFile(/tmp/multipartBody67871871729408827asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650612835,"filename":"image_23012025_17_42_42_5180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b791e23882ddbb7e15d5ef279e39b89c.jpg","text":"TemporaryFile(/tmp/multipartBody7847285804051650081asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650612835,"filename":"image_23012025_17_42_31_6202.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3a41012361879c29354f124215d5c049.jpg","text":"TemporaryFile(/tmp/multipartBody2152891487672045114asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650612835,"filename":"image_23012025_17_42_48_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/81da5dc578d2a5564b5957fc91b53d2c.jpg","text":"TemporaryFile(/tmp/multipartBody697984380979928098asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650612835,"filename":"image_23012025_17_42_24_6192.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330834961","file1":"1330834957","file0":"1330834941","file4":"1330834975","file5":"1330834980","file3":"1330834968"},"map_files_photo_id_array":[{"photo_id":"1330834980","filename":"file5"},{"photo_id":"1330834961","filename":"file2"},{"photo_id":"1330834975","filename":"file4"},{"photo_id":"1330834957","filename":"file1"},{"photo_id":"1330834941","filename":"file0"},{"photo_id":"1330834968","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330834968":["hashtag1","hashtag2"]},{"1330834941":["hashtag1","hashtag2"]},{"1330834961":["hashtag1","hashtag2"]},{"1330834975":["hashtag1","hashtag2"]},{"1330834957":["hashtag1","hashtag2"]},{"1330834980":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330834968, 1330834941, 1330834961, 1330834975, 1330834957, 1330834980)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.292401552200317 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:43:32.416872
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/43/image_23012025_17_44_01_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_48_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_42_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_37_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_31_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_24_6194.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/43/image_23012025_17_44_01_6191.jpg', '/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_48_6198.jpg', '/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_42_5185.jpg', '/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_37_6192.jpg', '/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_31_6192.jpg', '/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_24_6194.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/43/image_23012025_17_44_01_6191.jpg
/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_48_6198.jpg
/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_42_5185.jpg
/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_37_6192.jpg
/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_31_6192.jpg
/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_24_6194.jpg
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330835031","1330835022","1330835018","1330835027","1330835015","1330835044"],"photo_ids_order":["1330835015","1330835018","1330835022","1330835027","1330835031","1330835044"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4c90feeed194949935a66fab6dfd59d2.jpg","text":"TemporaryFile(/tmp/multipartBody1986877639116719447asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650672954,"filename":"image_23012025_17_43_31_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0d6491550d8a45f5ad06affa134a042f.jpg","text":"TemporaryFile(/tmp/multipartBody1385106272255397631asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650672954,"filename":"image_23012025_17_43_42_5185.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8195a50d1df666c146a629bc181a05cf.jpg","text":"TemporaryFile(/tmp/multipartBody2913497936558896642asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650672954,"filename":"image_23012025_17_43_48_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3e40340221ff7fa58a90a45ffc2b3168.jpg","text":"TemporaryFile(/tmp/multipartBody7635077921986761901asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650672954,"filename":"image_23012025_17_43_37_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a0579470ae7b47e8c9f7232011c7e971.jpg","text":"TemporaryFile(/tmp/multipartBody7337288745701779252asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650672954,"filename":"image_23012025_17_44_01_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3241140e6c9dbac523366519956f3782.jpg","text":"TemporaryFile(/tmp/multipartBody4447413777824916372asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650672954,"filename":"image_23012025_17_43_24_6194.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330835022","file1":"1330835018","file0":"1330835015","file4":"1330835031","file5":"1330835044","file3":"1330835027"},"map_files_photo_id_array":[{"photo_id":"1330835044","filename":"file5"},{"photo_id":"1330835022","filename":"file2"},{"photo_id":"1330835031","filename":"file4"},{"photo_id":"1330835018","filename":"file1"},{"photo_id":"1330835015","filename":"file0"},{"photo_id":"1330835027","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330835031":["hashtag1","hashtag2"]},{"1330835022":["hashtag1","hashtag2"]},{"1330835018":["hashtag1","hashtag2"]},{"1330835027":["hashtag1","hashtag2"]},{"1330835015":["hashtag1","hashtag2"]},{"1330835044":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330835031, 1330835022, 1330835018, 1330835027, 1330835015, 1330835044)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 28.88659143447876 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:44:03.362639
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_18_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_12_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_07_6217.jpg', 2), ('/home/nano/Desktop/images/23012025/17/42/image_23012025_17_43_01_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_18_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_12_5181.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_18_6190.jpg', '/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_12_5186.jpg', '/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_07_6217.jpg', '/home/nano/Desktop/images/23012025/17/42/image_23012025_17_43_01_6189.jpg', '/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_18_6191.jpg', '/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_12_5181.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_18_6190.jpg
/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_12_5186.jpg
/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_07_6217.jpg
/home/nano/Desktop/images/23012025/17/42/image_23012025_17_43_01_6189.jpg
/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_18_6191.jpg
/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_12_5181.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330835133","1330835096","1330835087","1330835066","1330835075","1330835104"],"photo_ids_order":["1330835066","1330835075","1330835087","1330835096","1330835104","1330835133"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/75601cbc5ade7fe1af24e1796878c174.jpg","text":"TemporaryFile(/tmp/multipartBody2836308250255934232asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650703932,"filename":"image_23012025_17_42_12_5181.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fb54fb2dd65287c4e0512ae73aaec470.jpg","text":"TemporaryFile(/tmp/multipartBody5216132811386811960asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650703932,"filename":"image_23012025_17_43_01_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/296149bf81794d3df78c24475b83cca0.jpg","text":"TemporaryFile(/tmp/multipartBody442569430100829912asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650703932,"filename":"image_23012025_17_43_07_6217.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/679b0dc87bb8569bdf9e14f65bd745c5.jpg","text":"TemporaryFile(/tmp/multipartBody5017649023469953317asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650703932,"filename":"image_23012025_17_43_18_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4c5824d8296e24d3f3bd0cd0467d2656.jpg","text":"TemporaryFile(/tmp/multipartBody497637653621003810asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650703932,"filename":"image_23012025_17_43_12_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6fa2591dd75afcc85d6a451f6d11de81.jpg","text":"TemporaryFile(/tmp/multipartBody1956547540277952893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650703932,"filename":"image_23012025_17_42_18_6191.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330835087","file1":"1330835075","file0":"1330835066","file4":"1330835104","file5":"1330835133","file3":"1330835096"},"map_files_photo_id_array":[{"photo_id":"1330835133","filename":"file5"},{"photo_id":"1330835087","filename":"file2"},{"photo_id":"1330835104","filename":"file4"},{"photo_id":"1330835075","filename":"file1"},{"photo_id":"1330835066","filename":"file0"},{"photo_id":"1330835096","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330835133":["hashtag1","hashtag2"]},{"1330835096":["hashtag1","hashtag2"]},{"1330835087":["hashtag1","hashtag2"]},{"1330835066":["hashtag1","hashtag2"]},{"1330835075":["hashtag1","hashtag2"]},{"1330835104":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330835133, 1330835096, 1330835087, 1330835066, 1330835075, 1330835104)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.53264021873474 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:45:03.151058
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_48_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_42_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_37_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_31_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_24_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_18_6190.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_48_6193.jpg', '/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_42_5181.jpg', '/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_37_6193.jpg', '/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_31_6197.jpg', '/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_24_6196.jpg', '/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_18_6190.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_48_6193.jpg
/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_42_5181.jpg
/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_37_6193.jpg
/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_31_6197.jpg
/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_24_6196.jpg
/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_18_6190.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330835261","1330835263","1330835265","1330835218","1330835277","1330835229"],"photo_ids_order":["1330835218","1330835229","1330835261","1330835263","1330835265","1330835277"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3617d999426a0470dd3321638ea65a59.jpg","text":"TemporaryFile(/tmp/multipartBody5588907300080336234asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650763751,"filename":"image_23012025_17_44_37_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ce1ad584fa0703e130d2244aeb06a8eb.jpg","text":"TemporaryFile(/tmp/multipartBody359744683633128544asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650763751,"filename":"image_23012025_17_44_31_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/26fdae83a609ba27824653025a63dfbc.jpg","text":"TemporaryFile(/tmp/multipartBody7892379315518339896asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650763751,"filename":"image_23012025_17_44_24_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/32d2851eab7bfb3a68fbe3d9c66b436a.jpg","text":"TemporaryFile(/tmp/multipartBody6208055229099454537asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650763751,"filename":"image_23012025_17_44_48_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/59b6c6d59e35df4a4f8483fe1afabc89.jpg","text":"TemporaryFile(/tmp/multipartBody1012263468174773836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650763751,"filename":"image_23012025_17_44_18_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5bbf578464c52f1a47829593c36c120d.jpg","text":"TemporaryFile(/tmp/multipartBody1673545323678675749asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650763751,"filename":"image_23012025_17_44_42_5181.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330835261","file1":"1330835229","file0":"1330835218","file4":"1330835265","file5":"1330835277","file3":"1330835263"},"map_files_photo_id_array":[{"photo_id":"1330835277","filename":"file5"},{"photo_id":"1330835261","filename":"file2"},{"photo_id":"1330835265","filename":"file4"},{"photo_id":"1330835229","filename":"file1"},{"photo_id":"1330835218","filename":"file0"},{"photo_id":"1330835263","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330835261":["hashtag1","hashtag2"]},{"1330835263":["hashtag1","hashtag2"]},{"1330835265":["hashtag1","hashtag2"]},{"1330835218":["hashtag1","hashtag2"]},{"1330835277":["hashtag1","hashtag2"]},{"1330835229":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330835261, 1330835263, 1330835265, 1330835218, 1330835277, 1330835229)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.991557359695435 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:46:03.147842
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_54_6185.jpg', 2), ('/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_48_5175.jpg', 2), ('/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_43_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_37_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_30_6184.jpg', 2), ('/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_24_6193.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_54_6185.jpg', '/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_48_5175.jpg', '/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_43_6188.jpg', '/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_37_6189.jpg', '/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_30_6184.jpg', '/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_24_6193.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_54_6185.jpg
/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_48_5175.jpg
/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_43_6188.jpg
/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_37_6189.jpg
/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_30_6184.jpg
/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_24_6193.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.3067057132720947 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:46:32.597880
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/46/image_23012025_17_46_18_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/17/46/image_23012025_17_46_13_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/17/46/image_23012025_17_46_07_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/17/45/image_23012025_17_46_00_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_54_6185.jpg', 2), ('/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_48_5175.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/46/image_23012025_17_46_18_5176.jpg', '/home/nano/Desktop/images/23012025/17/46/image_23012025_17_46_13_6187.jpg', '/home/nano/Desktop/images/23012025/17/46/image_23012025_17_46_07_6200.jpg', '/home/nano/Desktop/images/23012025/17/45/image_23012025_17_46_00_6186.jpg', '/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_54_6185.jpg', '/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_48_5175.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/46/image_23012025_17_46_18_5176.jpg
/home/nano/Desktop/images/23012025/17/46/image_23012025_17_46_13_6187.jpg
/home/nano/Desktop/images/23012025/17/46/image_23012025_17_46_07_6200.jpg
/home/nano/Desktop/images/23012025/17/45/image_23012025_17_46_00_6186.jpg
/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_54_6185.jpg
/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_48_5175.jpg
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330835645","1330835630","1330835621","1330835599","1330835602","1330835605"],"photo_ids_order":["1330835599","1330835602","1330835605","1330835621","1330835630","1330835645"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5c219bf7bc37ea58a856dbe1d5049a14.jpg","text":"TemporaryFile(/tmp/multipartBody5276867118323361353asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650853008,"filename":"image_23012025_17_45_48_5175.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8245b1d50f21b97f012a75bbc04aa56b.jpg","text":"TemporaryFile(/tmp/multipartBody2499601826833114463asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650853008,"filename":"image_23012025_17_45_54_6185.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f6064104f8b6daa3b20528d13f277095.jpg","text":"TemporaryFile(/tmp/multipartBody2237184524020485426asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650853008,"filename":"image_23012025_17_46_00_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6967eb93e3545c70e15c981944999466.jpg","text":"TemporaryFile(/tmp/multipartBody5530265959399752043asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650853008,"filename":"image_23012025_17_46_18_5176.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6ed4fa610aaf2a82b6e71e2942f38a7c.jpg","text":"TemporaryFile(/tmp/multipartBody6820564590005523931asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650853008,"filename":"image_23012025_17_46_13_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1907eecf3f4744d80730d2709518fc21.jpg","text":"TemporaryFile(/tmp/multipartBody7372264845601609379asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650853008,"filename":"image_23012025_17_46_07_6200.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330835605","file1":"1330835602","file0":"1330835599","file4":"1330835630","file5":"1330835645","file3":"1330835621"},"map_files_photo_id_array":[{"photo_id":"1330835645","filename":"file5"},{"photo_id":"1330835605","filename":"file2"},{"photo_id":"1330835630","filename":"file4"},{"photo_id":"1330835602","filename":"file1"},{"photo_id":"1330835599","filename":"file0"},{"photo_id":"1330835621","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330835645":["hashtag1","hashtag2"]},{"1330835630":["hashtag1","hashtag2"]},{"1330835621":["hashtag1","hashtag2"]},{"1330835599":["hashtag1","hashtag2"]},{"1330835602":["hashtag1","hashtag2"]},{"1330835605":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330835645, 1330835630, 1330835621, 1330835599, 1330835602, 1330835605)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.511656761169434 secondes ---
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:47:32.706575
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/46/image_23012025_17_46_54_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_43_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_37_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_30_6184.jpg', 2), ('/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_24_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_18_5182.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/46/image_23012025_17_46_54_5179.jpg', '/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_43_6188.jpg', '/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_37_6189.jpg', '/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_30_6184.jpg', '/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_24_6193.jpg', '/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_18_5182.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/46/image_23012025_17_46_54_5179.jpg
/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_43_6188.jpg
/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_37_6189.jpg
/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_30_6184.jpg
/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_24_6193.jpg
/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_18_5182.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330835709","1330835690","1330835732","1330835683","1330835731","1330835679"],"photo_ids_order":["1330835679","1330835683","1330835690","1330835709","1330835731","1330835732"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/abe3353f0cee01c158cdcf9f9e18b303.jpg","text":"TemporaryFile(/tmp/multipartBody6705965850203409192asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650913123,"filename":"image_23012025_17_45_30_6184.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7269fbf9c683e40852a2ab8893935178.jpg","text":"TemporaryFile(/tmp/multipartBody8041943187691496012asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650913123,"filename":"image_23012025_17_45_37_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/30e7bcd0dca3241645251fee7b023ad1.jpg","text":"TemporaryFile(/tmp/multipartBody5937920896780593290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650913123,"filename":"image_23012025_17_45_18_5182.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/14dc660360fc20e04255af4514f4ff96.jpg","text":"TemporaryFile(/tmp/multipartBody6629847811597813944asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650913123,"filename":"image_23012025_17_45_43_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4bd62e551ad87255fa647d6adce34c67.jpg","text":"TemporaryFile(/tmp/multipartBody6358922745552049258asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650913123,"filename":"image_23012025_17_45_24_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/625f85c6177bdbd7556fb2d2fe905acb.jpg","text":"TemporaryFile(/tmp/multipartBody1459664384602140608asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650913123,"filename":"image_23012025_17_46_54_5179.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330835690","file1":"1330835683","file0":"1330835679","file4":"1330835731","file5":"1330835732","file3":"1330835709"},"map_files_photo_id_array":[{"photo_id":"1330835732","filename":"file5"},{"photo_id":"1330835690","filename":"file2"},{"photo_id":"1330835731","filename":"file4"},{"photo_id":"1330835683","filename":"file1"},{"photo_id":"1330835679","filename":"file0"},{"photo_id":"1330835709","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330835709":["hashtag1","hashtag2"]},{"1330835690":["hashtag1","hashtag2"]},{"1330835732":["hashtag1","hashtag2"]},{"1330835683":["hashtag1","hashtag2"]},{"1330835731":["hashtag1","hashtag2"]},{"1330835679":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330835709, 1330835690, 1330835732, 1330835683, 1330835731, 1330835679)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.64553451538086 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:48:31.828199
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_13_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_07_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_54_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_12_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_07_6214.jpg', 2), ('/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_54_6193.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_13_6194.jpg', '/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_07_6209.jpg', '/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_54_6190.jpg', '/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_12_5182.jpg', '/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_07_6214.jpg', '/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_54_6193.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_13_6194.jpg
/home/nano/Desktop/images/23012025/17/45/image_23012025_17_45_07_6209.jpg
/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_54_6190.jpg
/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_12_5182.jpg
/home/nano/Desktop/images/23012025/17/44/image_23012025_17_44_07_6214.jpg
/home/nano/Desktop/images/23012025/17/43/image_23012025_17_43_54_6193.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330835808","1330835789","1330835780","1330835777","1330835812","1330835803"],"photo_ids_order":["1330835777","1330835780","1330835789","1330835803","1330835808","1330835812"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f80ee9362c732da059547e198e619e00.jpg","text":"TemporaryFile(/tmp/multipartBody604212264004775010asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650972409,"filename":"image_23012025_17_44_07_6214.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/30e82b8c6c57bcbf7c038cb854161be6.jpg","text":"TemporaryFile(/tmp/multipartBody3142452703772934413asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650972409,"filename":"image_23012025_17_44_54_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/439d8d134bbbe44d9cc552a985fde4fd.jpg","text":"TemporaryFile(/tmp/multipartBody2251926719259119160asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650972409,"filename":"image_23012025_17_45_07_6209.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f43bc9ac4d4b3b419a8e7aa0d1c85adf.jpg","text":"TemporaryFile(/tmp/multipartBody7488801315141443576asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650972409,"filename":"image_23012025_17_45_13_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b59dc9cd5e8ddde33eae6ac4e1bc7d2a.jpg","text":"TemporaryFile(/tmp/multipartBody474021827982895426asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650972409,"filename":"image_23012025_17_43_54_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/16388d26d0b477f61f2df781feb1ef45.jpg","text":"TemporaryFile(/tmp/multipartBody5825438807400325338asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737650972409,"filename":"image_23012025_17_44_12_5182.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330835789","file1":"1330835780","file0":"1330835777","file4":"1330835808","file5":"1330835812","file3":"1330835803"},"map_files_photo_id_array":[{"photo_id":"1330835812","filename":"file5"},{"photo_id":"1330835789","filename":"file2"},{"photo_id":"1330835808","filename":"file4"},{"photo_id":"1330835780","filename":"file1"},{"photo_id":"1330835777","filename":"file0"},{"photo_id":"1330835803","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330835808":["hashtag1","hashtag2"]},{"1330835789":["hashtag1","hashtag2"]},{"1330835780":["hashtag1","hashtag2"]},{"1330835777":["hashtag1","hashtag2"]},{"1330835812":["hashtag1","hashtag2"]},{"1330835803":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330835808, 1330835789, 1330835780, 1330835777, 1330835812, 1330835803)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.247325658798218 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:49:31.913141
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/49/image_23012025_17_49_55_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/17/47/image_23012025_17_47_43_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_07_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/17/41/image_23012025_17_42_01_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_18_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_12_6191.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/49/image_23012025_17_49_55_6190.jpg', '/home/nano/Desktop/images/23012025/17/47/image_23012025_17_47_43_6190.jpg', '/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_07_6199.jpg', '/home/nano/Desktop/images/23012025/17/41/image_23012025_17_42_01_6186.jpg', '/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_18_6188.jpg', '/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_12_6191.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/49/image_23012025_17_49_55_6190.jpg
/home/nano/Desktop/images/23012025/17/47/image_23012025_17_47_43_6190.jpg
/home/nano/Desktop/images/23012025/17/42/image_23012025_17_42_07_6199.jpg
/home/nano/Desktop/images/23012025/17/41/image_23012025_17_42_01_6186.jpg
/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_18_6188.jpg
/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_12_6191.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330835951","1330835969","1330835956","1330835965","1330835947","1330835961"],"photo_ids_order":["1330835947","1330835951","1330835956","1330835961","1330835965","1330835969"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e4ba04e0df3913e963923b9ad9d14e0e.jpg","text":"TemporaryFile(/tmp/multipartBody6575559885369237526asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651032361,"filename":"image_23012025_17_47_43_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/777278c26117eb7438b9fe7b1e0d2585.jpg","text":"TemporaryFile(/tmp/multipartBody4039122408599151990asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651032361,"filename":"image_23012025_17_41_12_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f50677de5aa252872bfce8e5e6132d7a.jpg","text":"TemporaryFile(/tmp/multipartBody8072348309815375759asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651032361,"filename":"image_23012025_17_42_07_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1bd354e6824579504e1a58364e6e64cd.jpg","text":"TemporaryFile(/tmp/multipartBody8618422364439977914asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651032361,"filename":"image_23012025_17_41_18_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4cde2bc11f8ad550c8ca379a8ff034fe.jpg","text":"TemporaryFile(/tmp/multipartBody3923581165954164168asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651032361,"filename":"image_23012025_17_49_55_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/be893bec2d109ca2ae12dace033a6552.jpg","text":"TemporaryFile(/tmp/multipartBody2180512786895294222asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651032361,"filename":"image_23012025_17_42_01_6186.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330835956","file1":"1330835951","file0":"1330835947","file4":"1330835965","file5":"1330835969","file3":"1330835961"},"map_files_photo_id_array":[{"photo_id":"1330835969","filename":"file5"},{"photo_id":"1330835956","filename":"file2"},{"photo_id":"1330835965","filename":"file4"},{"photo_id":"1330835951","filename":"file1"},{"photo_id":"1330835947","filename":"file0"},{"photo_id":"1330835961","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330835951":["hashtag1","hashtag2"]},{"1330835969":["hashtag1","hashtag2"]},{"1330835956":["hashtag1","hashtag2"]},{"1330835965":["hashtag1","hashtag2"]},{"1330835947":["hashtag1","hashtag2"]},{"1330835961":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330835951, 1330835969, 1330835956, 1330835965, 1330835947, 1330835961)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.788315296173096 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:50:32.015172
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/50/image_23012025_17_50_42_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/17/50/image_23012025_17_50_06_6213.jpg', 2), ('/home/nano/Desktop/images/23012025/17/49/image_23012025_17_50_00_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_06_5202.jpg', 2), ('/home/nano/Desktop/images/23012025/17/40/image_23012025_17_41_01_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_18_6184.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/50/image_23012025_17_50_42_6190.jpg', '/home/nano/Desktop/images/23012025/17/50/image_23012025_17_50_06_6213.jpg', '/home/nano/Desktop/images/23012025/17/49/image_23012025_17_50_00_5180.jpg', '/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_06_5202.jpg', '/home/nano/Desktop/images/23012025/17/40/image_23012025_17_41_01_6188.jpg', '/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_18_6184.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/50/image_23012025_17_50_42_6190.jpg
/home/nano/Desktop/images/23012025/17/50/image_23012025_17_50_06_6213.jpg
/home/nano/Desktop/images/23012025/17/49/image_23012025_17_50_00_5180.jpg
/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_06_5202.jpg
/home/nano/Desktop/images/23012025/17/40/image_23012025_17_41_01_6188.jpg
/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_18_6184.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.37368059158325195 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:51:02.694275
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/50/image_23012025_17_50_42_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/17/50/image_23012025_17_50_06_6213.jpg', 2), ('/home/nano/Desktop/images/23012025/17/49/image_23012025_17_50_00_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_06_5202.jpg', 2), ('/home/nano/Desktop/images/23012025/17/40/image_23012025_17_41_01_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_18_6184.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/50/image_23012025_17_50_42_6190.jpg', '/home/nano/Desktop/images/23012025/17/50/image_23012025_17_50_06_6213.jpg', '/home/nano/Desktop/images/23012025/17/49/image_23012025_17_50_00_5180.jpg', '/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_06_5202.jpg', '/home/nano/Desktop/images/23012025/17/40/image_23012025_17_41_01_6188.jpg', '/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_18_6184.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/50/image_23012025_17_50_42_6190.jpg
/home/nano/Desktop/images/23012025/17/50/image_23012025_17_50_06_6213.jpg
/home/nano/Desktop/images/23012025/17/49/image_23012025_17_50_00_5180.jpg
/home/nano/Desktop/images/23012025/17/41/image_23012025_17_41_06_5202.jpg
/home/nano/Desktop/images/23012025/17/40/image_23012025_17_41_01_6188.jpg
/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_18_6184.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330836092","1330836085","1330836088","1330836096","1330836099","1330836080"],"photo_ids_order":["1330836080","1330836085","1330836088","1330836092","1330836096","1330836099"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e3b63c1421c1ae25a254de9a34a9ee6d.jpg","text":"TemporaryFile(/tmp/multipartBody2518632545518744280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651123220,"filename":"image_23012025_17_41_06_5202.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2cf5b8c08af57e5753271a61f3f67c22.jpg","text":"TemporaryFile(/tmp/multipartBody7423018020032676839asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651123220,"filename":"image_23012025_17_50_06_6213.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0c1c90772d9d2f1de4b871c398e736b7.jpg","text":"TemporaryFile(/tmp/multipartBody604480080489141821asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651123220,"filename":"image_23012025_17_50_00_5180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/eb6c90b164a9cec8ce70d9bbb5f7714d.jpg","text":"TemporaryFile(/tmp/multipartBody558132274262395198asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651123220,"filename":"image_23012025_17_41_01_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5a62eaf743508168a7605292d3477665.jpg","text":"TemporaryFile(/tmp/multipartBody2642884141845518720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651123220,"filename":"image_23012025_17_40_18_6184.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0d9eb36862771f162f524a6f37bf47e3.jpg","text":"TemporaryFile(/tmp/multipartBody5499762232178444835asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651123220,"filename":"image_23012025_17_50_42_6190.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330836088","file1":"1330836085","file0":"1330836080","file4":"1330836096","file5":"1330836099","file3":"1330836092"},"map_files_photo_id_array":[{"photo_id":"1330836099","filename":"file5"},{"photo_id":"1330836088","filename":"file2"},{"photo_id":"1330836096","filename":"file4"},{"photo_id":"1330836085","filename":"file1"},{"photo_id":"1330836080","filename":"file0"},{"photo_id":"1330836092","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330836092":["hashtag1","hashtag2"]},{"1330836085":["hashtag1","hashtag2"]},{"1330836088":["hashtag1","hashtag2"]},{"1330836096":["hashtag1","hashtag2"]},{"1330836099":["hashtag1","hashtag2"]},{"1330836080":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330836092, 1330836085, 1330836088, 1330836096, 1330836099, 1330836080)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.94133687019348 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:52:02.802788
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/50/image_23012025_17_50_55_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_12_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_06_5245.jpg', 2), ('/home/nano/Desktop/images/23012025/17/39/image_23012025_17_40_01_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_18_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_12_6192.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/50/image_23012025_17_50_55_6189.jpg', '/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_12_6190.jpg', '/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_06_5245.jpg', '/home/nano/Desktop/images/23012025/17/39/image_23012025_17_40_01_6192.jpg', '/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_18_6192.jpg', '/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_12_6192.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/50/image_23012025_17_50_55_6189.jpg
/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_12_6190.jpg
/home/nano/Desktop/images/23012025/17/40/image_23012025_17_40_06_5245.jpg
/home/nano/Desktop/images/23012025/17/39/image_23012025_17_40_01_6192.jpg
/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_18_6192.jpg
/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_12_6192.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330836170","1330836158","1330836212","1330836218","1330836193","1330836189"],"photo_ids_order":["1330836158","1330836170","1330836189","1330836193","1330836212","1330836218"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/119d245681790c5c4a78cad912eeab82.jpg","text":"TemporaryFile(/tmp/multipartBody8707043039064317138asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651183286,"filename":"image_23012025_17_40_12_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/29189430e9e05635e6c393282e6946c0.jpg","text":"TemporaryFile(/tmp/multipartBody5854142255168315425asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651183286,"filename":"image_23012025_17_50_55_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e19918ff63aebdbfeb388cb6615752da.jpg","text":"TemporaryFile(/tmp/multipartBody6968560735166167795asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651183286,"filename":"image_23012025_17_39_18_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/56099b4117de7e4b112444a9267a2622.jpg","text":"TemporaryFile(/tmp/multipartBody3038234084642886475asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651183286,"filename":"image_23012025_17_39_12_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/894bfb411d544fdd5f1dff3691c7668e.jpg","text":"TemporaryFile(/tmp/multipartBody2699900950826182173asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651183286,"filename":"image_23012025_17_40_01_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5806a9d3cf5a7c336e4dca6550e36fa8.jpg","text":"TemporaryFile(/tmp/multipartBody6150428095684945952asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651183286,"filename":"image_23012025_17_40_06_5245.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330836189","file1":"1330836170","file0":"1330836158","file4":"1330836212","file5":"1330836218","file3":"1330836193"},"map_files_photo_id_array":[{"photo_id":"1330836218","filename":"file5"},{"photo_id":"1330836189","filename":"file2"},{"photo_id":"1330836212","filename":"file4"},{"photo_id":"1330836170","filename":"file1"},{"photo_id":"1330836158","filename":"file0"},{"photo_id":"1330836193","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330836170":["hashtag1","hashtag2"]},{"1330836158":["hashtag1","hashtag2"]},{"1330836212":["hashtag1","hashtag2"]},{"1330836218":["hashtag1","hashtag2"]},{"1330836193":["hashtag1","hashtag2"]},{"1330836189":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330836170, 1330836158, 1330836212, 1330836218, 1330836193, 1330836189)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.635396242141724 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:53:03.011731
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/53/image_23012025_17_54_01_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/17/52/image_23012025_17_52_18_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/17/52/image_23012025_17_52_06_5226.jpg', 2), ('/home/nano/Desktop/images/23012025/17/51/image_23012025_17_51_31_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_06_5428.jpg', 2), ('/home/nano/Desktop/images/23012025/17/38/image_23012025_17_39_01_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/53/image_23012025_17_54_01_6197.jpg', '/home/nano/Desktop/images/23012025/17/52/image_23012025_17_52_18_6190.jpg', '/home/nano/Desktop/images/23012025/17/52/image_23012025_17_52_06_5226.jpg', '/home/nano/Desktop/images/23012025/17/51/image_23012025_17_51_31_6190.jpg', '/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_06_5428.jpg', '/home/nano/Desktop/images/23012025/17/38/image_23012025_17_39_01_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/53/image_23012025_17_54_01_6197.jpg
/home/nano/Desktop/images/23012025/17/52/image_23012025_17_52_18_6190.jpg
/home/nano/Desktop/images/23012025/17/52/image_23012025_17_52_06_5226.jpg
/home/nano/Desktop/images/23012025/17/51/image_23012025_17_51_31_6190.jpg
/home/nano/Desktop/images/23012025/17/39/image_23012025_17_39_06_5428.jpg
/home/nano/Desktop/images/23012025/17/38/image_23012025_17_39_01_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330836281","1330836275","1330836260","1330836254","1330836265","1330836270"],"photo_ids_order":["1330836254","1330836260","1330836265","1330836270","1330836275","1330836281"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b59be652ed7c8e7fec5ae5ff7380a737.jpg","text":"TemporaryFile(/tmp/multipartBody4576161753968311378asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651243508,"filename":"image_23012025_17_39_01_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/760313aa16d20a5f37cab7818e6686ce.jpg","text":"TemporaryFile(/tmp/multipartBody8836915649070899926asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651243508,"filename":"image_23012025_17_39_06_5428.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4c6a044ecec493a10790d711f18f44bd.jpg","text":"TemporaryFile(/tmp/multipartBody8136773916059927714asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651243508,"filename":"image_23012025_17_52_18_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f4215eaeeff1031084328ec1d5df0e2a.jpg","text":"TemporaryFile(/tmp/multipartBody5690223491595003913asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651243508,"filename":"image_23012025_17_54_01_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/feb39b6fd9b7f07ec3304f6fcf94ef6c.jpg","text":"TemporaryFile(/tmp/multipartBody5189685628385696799asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651243508,"filename":"image_23012025_17_52_06_5226.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fd2092148c69a7e00b9f3d1018d8c24d.jpg","text":"TemporaryFile(/tmp/multipartBody9116583331215232416asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651243508,"filename":"image_23012025_17_51_31_6190.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330836265","file1":"1330836260","file0":"1330836254","file4":"1330836275","file5":"1330836281","file3":"1330836270"},"map_files_photo_id_array":[{"photo_id":"1330836281","filename":"file5"},{"photo_id":"1330836265","filename":"file2"},{"photo_id":"1330836275","filename":"file4"},{"photo_id":"1330836260","filename":"file1"},{"photo_id":"1330836254","filename":"file0"},{"photo_id":"1330836270","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330836281":["hashtag1","hashtag2"]},{"1330836275":["hashtag1","hashtag2"]},{"1330836260":["hashtag1","hashtag2"]},{"1330836254":["hashtag1","hashtag2"]},{"1330836265":["hashtag1","hashtag2"]},{"1330836270":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330836281, 1330836275, 1330836260, 1330836254, 1330836265, 1330836270)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.816456079483032 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:54:03.147180
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_18_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_12_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_07_6214.jpg', 2), ('/home/nano/Desktop/images/23012025/17/37/image_23012025_17_38_01_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_18_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_12_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_18_6193.jpg', '/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_12_5179.jpg', '/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_07_6214.jpg', '/home/nano/Desktop/images/23012025/17/37/image_23012025_17_38_01_6188.jpg', '/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_18_6192.jpg', '/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_12_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_18_6193.jpg
/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_12_5179.jpg
/home/nano/Desktop/images/23012025/17/38/image_23012025_17_38_07_6214.jpg
/home/nano/Desktop/images/23012025/17/37/image_23012025_17_38_01_6188.jpg
/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_18_6192.jpg
/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_12_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330836314","1330836340","1330836327","1330836321","1330836309","1330836318"],"photo_ids_order":["1330836309","1330836314","1330836318","1330836321","1330836327","1330836340"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7bf03a342f9bf94ab0a38d11644498c7.jpg","text":"TemporaryFile(/tmp/multipartBody7494629681377958052asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651303636,"filename":"image_23012025_17_38_12_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f526be1a2257eecea05a7506da94ebd2.jpg","text":"TemporaryFile(/tmp/multipartBody8470225675015402449asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651303636,"filename":"image_23012025_17_37_12_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/aafa508d8f28808af4eb1c429033bb40.jpg","text":"TemporaryFile(/tmp/multipartBody7087898275595571937asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651303636,"filename":"image_23012025_17_37_18_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f3c0550dd8a6df3d788f58dd4680ff14.jpg","text":"TemporaryFile(/tmp/multipartBody5085944266534317560asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651303636,"filename":"image_23012025_17_38_01_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7eeb2235a6a35a7c8206e557862a7c60.jpg","text":"TemporaryFile(/tmp/multipartBody2710520542620245533asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651303636,"filename":"image_23012025_17_38_18_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4a8d3e9832a5df9c8c1d0ad9ea58e12f.jpg","text":"TemporaryFile(/tmp/multipartBody1240102469368437246asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651303636,"filename":"image_23012025_17_38_07_6214.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330836318","file1":"1330836314","file0":"1330836309","file4":"1330836327","file5":"1330836340","file3":"1330836321"},"map_files_photo_id_array":[{"photo_id":"1330836340","filename":"file5"},{"photo_id":"1330836318","filename":"file2"},{"photo_id":"1330836327","filename":"file4"},{"photo_id":"1330836314","filename":"file1"},{"photo_id":"1330836309","filename":"file0"},{"photo_id":"1330836321","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330836314":["hashtag1","hashtag2"]},{"1330836340":["hashtag1","hashtag2"]},{"1330836327":["hashtag1","hashtag2"]},{"1330836321":["hashtag1","hashtag2"]},{"1330836309":["hashtag1","hashtag2"]},{"1330836318":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330836314, 1330836340, 1330836327, 1330836321, 1330836309, 1330836318)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.05844736099243 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:55:03.186668
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/54/image_23012025_17_54_42_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/17/54/image_23012025_17_54_37_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/17/52/image_23012025_17_52_48_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_06_5196.jpg', 2), ('/home/nano/Desktop/images/23012025/17/36/image_23012025_17_37_01_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_18_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/54/image_23012025_17_54_42_5180.jpg', '/home/nano/Desktop/images/23012025/17/54/image_23012025_17_54_37_6190.jpg', '/home/nano/Desktop/images/23012025/17/52/image_23012025_17_52_48_6190.jpg', '/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_06_5196.jpg', '/home/nano/Desktop/images/23012025/17/36/image_23012025_17_37_01_6194.jpg', '/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_18_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/54/image_23012025_17_54_42_5180.jpg
/home/nano/Desktop/images/23012025/17/54/image_23012025_17_54_37_6190.jpg
/home/nano/Desktop/images/23012025/17/52/image_23012025_17_52_48_6190.jpg
/home/nano/Desktop/images/23012025/17/37/image_23012025_17_37_06_5196.jpg
/home/nano/Desktop/images/23012025/17/36/image_23012025_17_37_01_6194.jpg
/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_18_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330836407","1330836427","1330836415","1330836418","1330836412","1330836402"],"photo_ids_order":["1330836402","1330836407","1330836412","1330836415","1330836418","1330836427"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b8d3cd8b7142232c1d0e11360819cc46.jpg","text":"TemporaryFile(/tmp/multipartBody6907291927524949653asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651363621,"filename":"image_23012025_17_54_37_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d8c601a45ddc5d0a23b9ce300a209e8f.jpg","text":"TemporaryFile(/tmp/multipartBody7188171013187981214asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651363621,"filename":"image_23012025_17_36_18_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6a1b95906e007c340422b5a8120497e8.jpg","text":"TemporaryFile(/tmp/multipartBody1808824788393630237asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651363621,"filename":"image_23012025_17_37_06_5196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7ddcc2e9468d23a1139b7b379eaa6409.jpg","text":"TemporaryFile(/tmp/multipartBody3664611190895305001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651363621,"filename":"image_23012025_17_37_01_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1121a4cead72e1ebda11475295eb9cfd.jpg","text":"TemporaryFile(/tmp/multipartBody4117705639716686582asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651363621,"filename":"image_23012025_17_52_48_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bfdc30d36a0ec87f7120624863c17039.jpg","text":"TemporaryFile(/tmp/multipartBody8489847089606115588asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651363621,"filename":"image_23012025_17_54_42_5180.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330836412","file1":"1330836407","file0":"1330836402","file4":"1330836418","file5":"1330836427","file3":"1330836415"},"map_files_photo_id_array":[{"photo_id":"1330836427","filename":"file5"},{"photo_id":"1330836412","filename":"file2"},{"photo_id":"1330836418","filename":"file4"},{"photo_id":"1330836407","filename":"file1"},{"photo_id":"1330836402","filename":"file0"},{"photo_id":"1330836415","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330836407":["hashtag1","hashtag2"]},{"1330836427":["hashtag1","hashtag2"]},{"1330836415":["hashtag1","hashtag2"]},{"1330836418":["hashtag1","hashtag2"]},{"1330836412":["hashtag1","hashtag2"]},{"1330836402":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330836407, 1330836427, 1330836415, 1330836418, 1330836412, 1330836402)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.70233988761902 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:56:03.221629
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/55/image_23012025_17_55_48_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/17/55/image_23012025_17_55_37_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/17/55/image_23012025_17_55_24_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/17/55/image_23012025_17_55_12_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/17/55/image_23012025_17_55_07_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/17/54/image_23012025_17_55_01_6189.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/55/image_23012025_17_55_48_5182.jpg', '/home/nano/Desktop/images/23012025/17/55/image_23012025_17_55_37_6196.jpg', '/home/nano/Desktop/images/23012025/17/55/image_23012025_17_55_24_6189.jpg', '/home/nano/Desktop/images/23012025/17/55/image_23012025_17_55_12_5186.jpg', '/home/nano/Desktop/images/23012025/17/55/image_23012025_17_55_07_6194.jpg', '/home/nano/Desktop/images/23012025/17/54/image_23012025_17_55_01_6189.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/55/image_23012025_17_55_48_5182.jpg
/home/nano/Desktop/images/23012025/17/55/image_23012025_17_55_37_6196.jpg
/home/nano/Desktop/images/23012025/17/55/image_23012025_17_55_24_6189.jpg
/home/nano/Desktop/images/23012025/17/55/image_23012025_17_55_12_5186.jpg
/home/nano/Desktop/images/23012025/17/55/image_23012025_17_55_07_6194.jpg
/home/nano/Desktop/images/23012025/17/54/image_23012025_17_55_01_6189.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330836476","1330836484","1330836472","1330836466","1330836491","1330836470"],"photo_ids_order":["1330836466","1330836470","1330836472","1330836476","1330836484","1330836491"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/efbb5ca6644328e530a8c3ddb80a86ce.jpg","text":"TemporaryFile(/tmp/multipartBody4136481672247743465asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651423729,"filename":"image_23012025_17_55_12_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/206f55363f732ff56dec19892afaba00.jpg","text":"TemporaryFile(/tmp/multipartBody1372738565290540920asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651423729,"filename":"image_23012025_17_55_07_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c497fd9656ff9478a0016b91ba00f387.jpg","text":"TemporaryFile(/tmp/multipartBody160756310965521547asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651423729,"filename":"image_23012025_17_55_24_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6b9402de01a2e755449743b2139d7062.jpg","text":"TemporaryFile(/tmp/multipartBody5165352377883522095asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651423729,"filename":"image_23012025_17_55_48_5182.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/85f17edcd8845a6a6e2b85c318f98977.jpg","text":"TemporaryFile(/tmp/multipartBody8585324250802046008asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651423729,"filename":"image_23012025_17_55_01_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0e412630a584f30fff9715221432a44f.jpg","text":"TemporaryFile(/tmp/multipartBody4263610907259715580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651423729,"filename":"image_23012025_17_55_37_6196.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330836472","file1":"1330836470","file0":"1330836466","file4":"1330836484","file5":"1330836491","file3":"1330836476"},"map_files_photo_id_array":[{"photo_id":"1330836491","filename":"file5"},{"photo_id":"1330836472","filename":"file2"},{"photo_id":"1330836484","filename":"file4"},{"photo_id":"1330836470","filename":"file1"},{"photo_id":"1330836466","filename":"file0"},{"photo_id":"1330836476","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330836476":["hashtag1","hashtag2"]},{"1330836484":["hashtag1","hashtag2"]},{"1330836472":["hashtag1","hashtag2"]},{"1330836466":["hashtag1","hashtag2"]},{"1330836491":["hashtag1","hashtag2"]},{"1330836470":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330836476, 1330836484, 1330836472, 1330836466, 1330836491, 1330836470)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.61622166633606 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:57:03.482110
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/56/image_23012025_17_56_18_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/17/55/image_23012025_17_56_00_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_12_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_06_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/17/35/image_23012025_17_36_00_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_55_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/56/image_23012025_17_56_18_5180.jpg', '/home/nano/Desktop/images/23012025/17/55/image_23012025_17_56_00_6190.jpg', '/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_12_6188.jpg', '/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_06_6190.jpg', '/home/nano/Desktop/images/23012025/17/35/image_23012025_17_36_00_5177.jpg', '/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_55_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/56/image_23012025_17_56_18_5180.jpg
/home/nano/Desktop/images/23012025/17/55/image_23012025_17_56_00_6190.jpg
/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_12_6188.jpg
/home/nano/Desktop/images/23012025/17/36/image_23012025_17_36_06_6190.jpg
/home/nano/Desktop/images/23012025/17/35/image_23012025_17_36_00_5177.jpg
/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_55_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330836583","1330836574","1330836568","1330836601","1330836588","1330836606"],"photo_ids_order":["1330836568","1330836574","1330836583","1330836588","1330836601","1330836606"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a7a4864146cc80c8edc61e9af42a5e35.jpg","text":"TemporaryFile(/tmp/multipartBody715418072174738343asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651483955,"filename":"image_23012025_17_36_12_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cadb006b86f0811d48feee72005d0959.jpg","text":"TemporaryFile(/tmp/multipartBody4549114747441088567asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651483955,"filename":"image_23012025_17_56_00_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/850b7d9c4344b391d9adefe5227c6fd4.jpg","text":"TemporaryFile(/tmp/multipartBody9066461759243127848asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651483955,"filename":"image_23012025_17_56_18_5180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ea2adcc4e7b1fc678339cd04cec5638f.jpg","text":"TemporaryFile(/tmp/multipartBody1004210324761873633asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651483955,"filename":"image_23012025_17_36_00_5177.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5e5e329cfdb7272fdcb904f5a2b8c4d8.jpg","text":"TemporaryFile(/tmp/multipartBody9121297801552490741asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651483955,"filename":"image_23012025_17_36_06_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2de8ca01229067e581b3e75d9cce70cc.jpg","text":"TemporaryFile(/tmp/multipartBody4866721745889241909asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651483955,"filename":"image_23012025_17_35_55_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330836583","file1":"1330836574","file0":"1330836568","file4":"1330836601","file5":"1330836606","file3":"1330836588"},"map_files_photo_id_array":[{"photo_id":"1330836606","filename":"file5"},{"photo_id":"1330836583","filename":"file2"},{"photo_id":"1330836601","filename":"file4"},{"photo_id":"1330836574","filename":"file1"},{"photo_id":"1330836568","filename":"file0"},{"photo_id":"1330836588","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330836583":["hashtag1","hashtag2"]},{"1330836574":["hashtag1","hashtag2"]},{"1330836568":["hashtag1","hashtag2"]},{"1330836601":["hashtag1","hashtag2"]},{"1330836588":["hashtag1","hashtag2"]},{"1330836606":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330836583, 1330836574, 1330836568, 1330836601, 1330836588, 1330836606)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.1840181350708 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 17:59:03.636921
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/57/image_23012025_17_57_30_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/17/57/image_23012025_17_57_24_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/17/57/image_23012025_17_57_07_6217.jpg', 2), ('/home/nano/Desktop/images/23012025/17/56/image_23012025_17_57_00_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_49_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_42_6189.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/57/image_23012025_17_57_30_6189.jpg', '/home/nano/Desktop/images/23012025/17/57/image_23012025_17_57_24_6191.jpg', '/home/nano/Desktop/images/23012025/17/57/image_23012025_17_57_07_6217.jpg', '/home/nano/Desktop/images/23012025/17/56/image_23012025_17_57_00_6189.jpg', '/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_49_6188.jpg', '/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_42_6189.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/57/image_23012025_17_57_30_6189.jpg
/home/nano/Desktop/images/23012025/17/57/image_23012025_17_57_24_6191.jpg
/home/nano/Desktop/images/23012025/17/57/image_23012025_17_57_07_6217.jpg
/home/nano/Desktop/images/23012025/17/56/image_23012025_17_57_00_6189.jpg
/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_49_6188.jpg
/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_42_6189.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330836857","1330836793","1330836798","1330836867","1330836804","1330836807"],"photo_ids_order":["1330836793","1330836798","1330836804","1330836807","1330836857","1330836867"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/53902e93edd145fa5cac6b1922c0df98.jpg","text":"TemporaryFile(/tmp/multipartBody8274652972569508116asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651604118,"filename":"image_23012025_17_35_49_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5df7132f55772346cebdb438f95f1161.jpg","text":"TemporaryFile(/tmp/multipartBody7860991874551333849asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651604118,"filename":"image_23012025_17_57_30_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/739ff0749d3c0a65fc8ff3d20e19977c.jpg","text":"TemporaryFile(/tmp/multipartBody2137398743661667739asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651604118,"filename":"image_23012025_17_57_24_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/70e59f8bc1c0faf462c5724bff858f10.jpg","text":"TemporaryFile(/tmp/multipartBody1318552126027909055asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651604118,"filename":"image_23012025_17_35_42_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c0ab906792a69d44ed6a344f20fe136f.jpg","text":"TemporaryFile(/tmp/multipartBody7298993225541111303asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651604118,"filename":"image_23012025_17_57_07_6217.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cc87040523fec0ab6287964108b21f73.jpg","text":"TemporaryFile(/tmp/multipartBody7767441668075448169asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651604118,"filename":"image_23012025_17_57_00_6189.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330836804","file1":"1330836798","file0":"1330836793","file4":"1330836857","file5":"1330836867","file3":"1330836807"},"map_files_photo_id_array":[{"photo_id":"1330836867","filename":"file5"},{"photo_id":"1330836804","filename":"file2"},{"photo_id":"1330836857","filename":"file4"},{"photo_id":"1330836798","filename":"file1"},{"photo_id":"1330836793","filename":"file0"},{"photo_id":"1330836807","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330836857":["hashtag1","hashtag2"]},{"1330836793":["hashtag1","hashtag2"]},{"1330836798":["hashtag1","hashtag2"]},{"1330836867":["hashtag1","hashtag2"]},{"1330836804":["hashtag1","hashtag2"]},{"1330836807":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330836857, 1330836793, 1330836798, 1330836867, 1330836804, 1330836807)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.167821884155273 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:00:03.110484
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/59/image_23012025_17_59_49_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/17/59/image_23012025_17_59_30_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/17/59/image_23012025_17_59_19_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/17/59/image_23012025_17_59_13_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/17/59/image_23012025_17_59_06_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/17/58/image_23012025_17_58_49_6189.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/59/image_23012025_17_59_49_6190.jpg', '/home/nano/Desktop/images/23012025/17/59/image_23012025_17_59_30_6201.jpg', '/home/nano/Desktop/images/23012025/17/59/image_23012025_17_59_19_6190.jpg', '/home/nano/Desktop/images/23012025/17/59/image_23012025_17_59_13_6189.jpg', '/home/nano/Desktop/images/23012025/17/59/image_23012025_17_59_06_6201.jpg', '/home/nano/Desktop/images/23012025/17/58/image_23012025_17_58_49_6189.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/59/image_23012025_17_59_49_6190.jpg
/home/nano/Desktop/images/23012025/17/59/image_23012025_17_59_30_6201.jpg
/home/nano/Desktop/images/23012025/17/59/image_23012025_17_59_19_6190.jpg
/home/nano/Desktop/images/23012025/17/59/image_23012025_17_59_13_6189.jpg
/home/nano/Desktop/images/23012025/17/59/image_23012025_17_59_06_6201.jpg
/home/nano/Desktop/images/23012025/17/58/image_23012025_17_58_49_6189.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330836950","1330836938","1330836932","1330836935","1330836940","1330836943"],"photo_ids_order":["1330836932","1330836935","1330836938","1330836940","1330836943","1330836950"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0cac0415fc8c76dba66b6857c0dc6aab.jpg","text":"TemporaryFile(/tmp/multipartBody4153093050401140593asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651663598,"filename":"image_23012025_17_58_49_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7cf08a6dd9600d71f85ea8c8b28f7163.jpg","text":"TemporaryFile(/tmp/multipartBody6278809473801423884asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651663598,"filename":"image_23012025_17_59_19_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4419e2c28cac90bddaa4f99e8906ead3.jpg","text":"TemporaryFile(/tmp/multipartBody2716903321717191420asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651663598,"filename":"image_23012025_17_59_49_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c6bc1ca2c2c30f989c3b7ceef605b2a9.jpg","text":"TemporaryFile(/tmp/multipartBody5306576346337232912asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651663598,"filename":"image_23012025_17_59_30_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/85361ab05226a718d2d4ce75aeae25a3.jpg","text":"TemporaryFile(/tmp/multipartBody3566044542426582205asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651663598,"filename":"image_23012025_17_59_13_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f43546b23c20273fdf811c8d1cde16ba.jpg","text":"TemporaryFile(/tmp/multipartBody6107051086253715796asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651663598,"filename":"image_23012025_17_59_06_6201.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330836938","file1":"1330836935","file0":"1330836932","file4":"1330836943","file5":"1330836950","file3":"1330836940"},"map_files_photo_id_array":[{"photo_id":"1330836950","filename":"file5"},{"photo_id":"1330836938","filename":"file2"},{"photo_id":"1330836943","filename":"file4"},{"photo_id":"1330836935","filename":"file1"},{"photo_id":"1330836932","filename":"file0"},{"photo_id":"1330836940","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330836950":["hashtag1","hashtag2"]},{"1330836938":["hashtag1","hashtag2"]},{"1330836932":["hashtag1","hashtag2"]},{"1330836935":["hashtag1","hashtag2"]},{"1330836940":["hashtag1","hashtag2"]},{"1330836943":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330836950, 1330836938, 1330836932, 1330836935, 1330836940, 1330836943)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.9755539894104 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:01:02.517042
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/00/image_23012025_18_00_36_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/18/00/image_23012025_18_00_13_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/18/00/image_23012025_18_00_06_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/17/59/image_23012025_18_00_00_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/17/58/image_23012025_17_58_43_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/17/58/image_23012025_17_58_36_6190.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/00/image_23012025_18_00_36_6193.jpg', '/home/nano/Desktop/images/23012025/18/00/image_23012025_18_00_13_6195.jpg', '/home/nano/Desktop/images/23012025/18/00/image_23012025_18_00_06_6199.jpg', '/home/nano/Desktop/images/23012025/17/59/image_23012025_18_00_00_6195.jpg', '/home/nano/Desktop/images/23012025/17/58/image_23012025_17_58_43_6190.jpg', '/home/nano/Desktop/images/23012025/17/58/image_23012025_17_58_36_6190.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/00/image_23012025_18_00_36_6193.jpg
/home/nano/Desktop/images/23012025/18/00/image_23012025_18_00_13_6195.jpg
/home/nano/Desktop/images/23012025/18/00/image_23012025_18_00_06_6199.jpg
/home/nano/Desktop/images/23012025/17/59/image_23012025_18_00_00_6195.jpg
/home/nano/Desktop/images/23012025/17/58/image_23012025_17_58_43_6190.jpg
/home/nano/Desktop/images/23012025/17/58/image_23012025_17_58_36_6190.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330836998","1330837018","1330837003","1330837041","1330837023","1330837064"],"photo_ids_order":["1330836998","1330837003","1330837018","1330837023","1330837041","1330837064"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/06fae593cc879deaab505c74ca7ba3d3.jpg","text":"TemporaryFile(/tmp/multipartBody5848075092849115921asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651723011,"filename":"image_23012025_18_00_36_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/dd09dcefc5a811ddfd05687bded363c4.jpg","text":"TemporaryFile(/tmp/multipartBody4628981092950051545asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651723011,"filename":"image_23012025_18_00_06_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0c86ad530aebd13d05fe6a3e644c4f35.jpg","text":"TemporaryFile(/tmp/multipartBody7820114347557285141asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651723011,"filename":"image_23012025_18_00_13_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/012e710ba46e74904ca61c3296b6c919.jpg","text":"TemporaryFile(/tmp/multipartBody5930415740689284802asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651723011,"filename":"image_23012025_17_58_43_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d715942c8fff828bc2f58b8b05991208.jpg","text":"TemporaryFile(/tmp/multipartBody5971253859837907759asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651723011,"filename":"image_23012025_18_00_00_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/867959cf3f4d6f0a02f5317cb22167c8.jpg","text":"TemporaryFile(/tmp/multipartBody7616051860882606033asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651723011,"filename":"image_23012025_17_58_36_6190.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330837018","file1":"1330837003","file0":"1330836998","file4":"1330837041","file5":"1330837064","file3":"1330837023"},"map_files_photo_id_array":[{"photo_id":"1330837064","filename":"file5"},{"photo_id":"1330837018","filename":"file2"},{"photo_id":"1330837041","filename":"file4"},{"photo_id":"1330837003","filename":"file1"},{"photo_id":"1330836998","filename":"file0"},{"photo_id":"1330837023","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330836998":["hashtag1","hashtag2"]},{"1330837018":["hashtag1","hashtag2"]},{"1330837003":["hashtag1","hashtag2"]},{"1330837041":["hashtag1","hashtag2"]},{"1330837023":["hashtag1","hashtag2"]},{"1330837064":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330836998, 1330837018, 1330837003, 1330837041, 1330837023, 1330837064)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.779139280319214 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:02:02.550148
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/01/image_23012025_18_01_36_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/18/01/image_23012025_18_01_19_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/01/image_23012025_18_01_12_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/18/01/image_23012025_18_01_06_6216.jpg', 2), ('/home/nano/Desktop/images/23012025/18/00/image_23012025_18_00_42_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/17/58/image_23012025_17_58_19_6189.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/01/image_23012025_18_01_36_6192.jpg', '/home/nano/Desktop/images/23012025/18/01/image_23012025_18_01_19_6190.jpg', '/home/nano/Desktop/images/23012025/18/01/image_23012025_18_01_12_6196.jpg', '/home/nano/Desktop/images/23012025/18/01/image_23012025_18_01_06_6216.jpg', '/home/nano/Desktop/images/23012025/18/00/image_23012025_18_00_42_6189.jpg', '/home/nano/Desktop/images/23012025/17/58/image_23012025_17_58_19_6189.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/01/image_23012025_18_01_36_6192.jpg
/home/nano/Desktop/images/23012025/18/01/image_23012025_18_01_19_6190.jpg
/home/nano/Desktop/images/23012025/18/01/image_23012025_18_01_12_6196.jpg
/home/nano/Desktop/images/23012025/18/01/image_23012025_18_01_06_6216.jpg
/home/nano/Desktop/images/23012025/18/00/image_23012025_18_00_42_6189.jpg
/home/nano/Desktop/images/23012025/17/58/image_23012025_17_58_19_6189.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330837492","1330837106","1330837477","1330837371","1330837488","1330837167"],"photo_ids_order":["1330837106","1330837167","1330837371","1330837477","1330837488","1330837492"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d8493396bac6d58970557260711cb381.jpg","text":"TemporaryFile(/tmp/multipartBody7411523255493584253asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651783123,"filename":"image_23012025_17_58_19_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/19bda643750a82c9ea86e59f9f7c65ba.jpg","text":"TemporaryFile(/tmp/multipartBody6690086925081171041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651783123,"filename":"image_23012025_18_01_36_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8cad0e25ffd5cf69cab1bf0d2a15de6b.jpg","text":"TemporaryFile(/tmp/multipartBody7477102621511203936asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651783123,"filename":"image_23012025_18_01_06_6216.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3a677841743bcffaef60402a2e653921.jpg","text":"TemporaryFile(/tmp/multipartBody2337990128880127896asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651783123,"filename":"image_23012025_18_01_12_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/eee2b29e9411dd0b809e901538620877.jpg","text":"TemporaryFile(/tmp/multipartBody3693218202512491271asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651783123,"filename":"image_23012025_18_00_42_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/738c9132daa632df96a259e36abb4c96.jpg","text":"TemporaryFile(/tmp/multipartBody1864788110916435995asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651783123,"filename":"image_23012025_18_01_19_6190.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330837371","file1":"1330837167","file0":"1330837106","file4":"1330837488","file5":"1330837492","file3":"1330837477"},"map_files_photo_id_array":[{"photo_id":"1330837492","filename":"file5"},{"photo_id":"1330837371","filename":"file2"},{"photo_id":"1330837488","filename":"file4"},{"photo_id":"1330837167","filename":"file1"},{"photo_id":"1330837106","filename":"file0"},{"photo_id":"1330837477","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330837492":["hashtag1","hashtag2"]},{"1330837106":["hashtag1","hashtag2"]},{"1330837477":["hashtag1","hashtag2"]},{"1330837371":["hashtag1","hashtag2"]},{"1330837488":["hashtag1","hashtag2"]},{"1330837167":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330837492, 1330837106, 1330837477, 1330837371, 1330837488, 1330837167)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.73829221725464 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:03:02.640915
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/02/image_23012025_18_02_55_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/18/02/image_23012025_18_02_42_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/18/02/image_23012025_18_02_06_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/18/01/image_23012025_18_01_42_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/17/58/image_23012025_17_58_13_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/17/58/image_23012025_17_58_06_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/02/image_23012025_18_02_55_6191.jpg', '/home/nano/Desktop/images/23012025/18/02/image_23012025_18_02_42_6191.jpg', '/home/nano/Desktop/images/23012025/18/02/image_23012025_18_02_06_6198.jpg', '/home/nano/Desktop/images/23012025/18/01/image_23012025_18_01_42_6190.jpg', '/home/nano/Desktop/images/23012025/17/58/image_23012025_17_58_13_6197.jpg', '/home/nano/Desktop/images/23012025/17/58/image_23012025_17_58_06_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/02/image_23012025_18_02_55_6191.jpg
/home/nano/Desktop/images/23012025/18/02/image_23012025_18_02_42_6191.jpg
/home/nano/Desktop/images/23012025/18/02/image_23012025_18_02_06_6198.jpg
/home/nano/Desktop/images/23012025/18/01/image_23012025_18_01_42_6190.jpg
/home/nano/Desktop/images/23012025/17/58/image_23012025_17_58_13_6197.jpg
/home/nano/Desktop/images/23012025/17/58/image_23012025_17_58_06_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330837675","1330837692","1330837671","1330837680","1330837685","1330837667"],"photo_ids_order":["1330837667","1330837671","1330837675","1330837680","1330837685","1330837692"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/24ed065d4dbde2dc5dd77979bddcb0ca.jpg","text":"TemporaryFile(/tmp/multipartBody7108314663193160153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651843124,"filename":"image_23012025_18_02_06_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b6a6920b4e881a187287321942860fe7.jpg","text":"TemporaryFile(/tmp/multipartBody1606071113546241841asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651843124,"filename":"image_23012025_17_58_06_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/68b60f7d829958a2305e2a389add197c.jpg","text":"TemporaryFile(/tmp/multipartBody7445874431274364968asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651843124,"filename":"image_23012025_18_02_42_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f8e49a54469261c5affa47b01a88d072.jpg","text":"TemporaryFile(/tmp/multipartBody6857115262886717811asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651843124,"filename":"image_23012025_18_01_42_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ae7814b16faa2e6c4fcf431e75466872.jpg","text":"TemporaryFile(/tmp/multipartBody1180872927740741475asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651843124,"filename":"image_23012025_17_58_13_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f3333265caff3f6b3eff94512cab2dd1.jpg","text":"TemporaryFile(/tmp/multipartBody8734557791519733413asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651843124,"filename":"image_23012025_18_02_55_6191.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330837675","file1":"1330837671","file0":"1330837667","file4":"1330837685","file5":"1330837692","file3":"1330837680"},"map_files_photo_id_array":[{"photo_id":"1330837692","filename":"file5"},{"photo_id":"1330837675","filename":"file2"},{"photo_id":"1330837685","filename":"file4"},{"photo_id":"1330837671","filename":"file1"},{"photo_id":"1330837667","filename":"file0"},{"photo_id":"1330837680","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330837675":["hashtag1","hashtag2"]},{"1330837692":["hashtag1","hashtag2"]},{"1330837671":["hashtag1","hashtag2"]},{"1330837680":["hashtag1","hashtag2"]},{"1330837685":["hashtag1","hashtag2"]},{"1330837667":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330837675, 1330837692, 1330837671, 1330837680, 1330837685, 1330837667)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.493099689483643 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:04:03.057453
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/03/image_23012025_18_04_00_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/18/03/image_23012025_18_03_06_5421.jpg', 2), ('/home/nano/Desktop/images/23012025/18/02/image_23012025_18_03_01_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/17/57/image_23012025_17_57_37_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_36_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_30_5179.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/03/image_23012025_18_04_00_5180.jpg', '/home/nano/Desktop/images/23012025/18/03/image_23012025_18_03_06_5421.jpg', '/home/nano/Desktop/images/23012025/18/02/image_23012025_18_03_01_6189.jpg', '/home/nano/Desktop/images/23012025/17/57/image_23012025_17_57_37_6191.jpg', '/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_36_6188.jpg', '/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_30_5179.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/03/image_23012025_18_04_00_5180.jpg
/home/nano/Desktop/images/23012025/18/03/image_23012025_18_03_06_5421.jpg
/home/nano/Desktop/images/23012025/18/02/image_23012025_18_03_01_6189.jpg
/home/nano/Desktop/images/23012025/17/57/image_23012025_17_57_37_6191.jpg
/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_36_6188.jpg
/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_30_5179.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330837783","1330837802","1330837786","1330837795","1330837791","1330837799"],"photo_ids_order":["1330837783","1330837786","1330837791","1330837795","1330837799","1330837802"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e66349d5596b1f1a2b8f2acd00e63ce6.jpg","text":"TemporaryFile(/tmp/multipartBody5739604859422425359asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651903453,"filename":"image_23012025_18_04_00_5180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6ab67d2359ad661a83628966d93ebecc.jpg","text":"TemporaryFile(/tmp/multipartBody5294158459590666473asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651903453,"filename":"image_23012025_17_35_30_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8237965382ade8861c2808bdfca31a3b.jpg","text":"TemporaryFile(/tmp/multipartBody1151620720725081864asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651903453,"filename":"image_23012025_18_03_06_5421.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/850c430c359c4f2f69cc3a1d206906b5.jpg","text":"TemporaryFile(/tmp/multipartBody4205359492879435636asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651903453,"filename":"image_23012025_17_57_37_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1fe05b396a7abcd29f13f9458a6a6033.jpg","text":"TemporaryFile(/tmp/multipartBody3087393952786921080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651903453,"filename":"image_23012025_18_03_01_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/32516d9d0ca74ca8acd1623af4aa1147.jpg","text":"TemporaryFile(/tmp/multipartBody8560162728839785699asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651903453,"filename":"image_23012025_17_35_36_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330837791","file1":"1330837786","file0":"1330837783","file4":"1330837799","file5":"1330837802","file3":"1330837795"},"map_files_photo_id_array":[{"photo_id":"1330837802","filename":"file5"},{"photo_id":"1330837791","filename":"file2"},{"photo_id":"1330837799","filename":"file4"},{"photo_id":"1330837786","filename":"file1"},{"photo_id":"1330837783","filename":"file0"},{"photo_id":"1330837795","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330837783":["hashtag1","hashtag2"]},{"1330837802":["hashtag1","hashtag2"]},{"1330837786":["hashtag1","hashtag2"]},{"1330837795":["hashtag1","hashtag2"]},{"1330837791":["hashtag1","hashtag2"]},{"1330837799":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330837783, 1330837802, 1330837786, 1330837795, 1330837791, 1330837799)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.95830464363098 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:05:02.884572
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/04/image_23012025_18_04_49_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/18/04/image_23012025_18_04_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/18/04/image_23012025_18_04_36_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/18/04/image_23012025_18_04_25_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/18/03/image_23012025_18_03_12_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_25_6189.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/04/image_23012025_18_04_49_6191.jpg', '/home/nano/Desktop/images/23012025/18/04/image_23012025_18_04_42_6196.jpg', '/home/nano/Desktop/images/23012025/18/04/image_23012025_18_04_36_6201.jpg', '/home/nano/Desktop/images/23012025/18/04/image_23012025_18_04_25_6195.jpg', '/home/nano/Desktop/images/23012025/18/03/image_23012025_18_03_12_6191.jpg', '/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_25_6189.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/04/image_23012025_18_04_49_6191.jpg
/home/nano/Desktop/images/23012025/18/04/image_23012025_18_04_42_6196.jpg
/home/nano/Desktop/images/23012025/18/04/image_23012025_18_04_36_6201.jpg
/home/nano/Desktop/images/23012025/18/04/image_23012025_18_04_25_6195.jpg
/home/nano/Desktop/images/23012025/18/03/image_23012025_18_03_12_6191.jpg
/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_25_6189.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330837894","1330837911","1330837905","1330837908","1330837898","1330837902"],"photo_ids_order":["1330837894","1330837898","1330837902","1330837905","1330837908","1330837911"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/58156bc60802829718894c1180753670.jpg","text":"TemporaryFile(/tmp/multipartBody2502607316963034353asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651963334,"filename":"image_23012025_18_04_49_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f8d60c0af5877dd0d1037e1568f8c589.jpg","text":"TemporaryFile(/tmp/multipartBody7776204811076252313asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651963334,"filename":"image_23012025_17_35_25_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a04fa18b0265afe850e95a11f688377d.jpg","text":"TemporaryFile(/tmp/multipartBody6229887672643768081asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651963334,"filename":"image_23012025_18_04_25_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0d3ae40069b71e3b07a70bd8fddda36e.jpg","text":"TemporaryFile(/tmp/multipartBody1086383592141596945asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651963334,"filename":"image_23012025_18_03_12_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6735bf1cf73d29467cbb4cdce09b542c.jpg","text":"TemporaryFile(/tmp/multipartBody7720212700203002724asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651963334,"filename":"image_23012025_18_04_42_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/902f4a4c569995dbad8a515d44ad2601.jpg","text":"TemporaryFile(/tmp/multipartBody4823967372477248229asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737651963334,"filename":"image_23012025_18_04_36_6201.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330837902","file1":"1330837898","file0":"1330837894","file4":"1330837908","file5":"1330837911","file3":"1330837905"},"map_files_photo_id_array":[{"photo_id":"1330837911","filename":"file5"},{"photo_id":"1330837902","filename":"file2"},{"photo_id":"1330837908","filename":"file4"},{"photo_id":"1330837898","filename":"file1"},{"photo_id":"1330837894","filename":"file0"},{"photo_id":"1330837905","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330837894":["hashtag1","hashtag2"]},{"1330837911":["hashtag1","hashtag2"]},{"1330837905":["hashtag1","hashtag2"]},{"1330837908":["hashtag1","hashtag2"]},{"1330837898":["hashtag1","hashtag2"]},{"1330837902":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330837894, 1330837911, 1330837905, 1330837908, 1330837898, 1330837902)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.6982524394989 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:06:02.661581
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_19_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_12_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_06_6215.jpg', 2), ('/home/nano/Desktop/images/23012025/17/34/image_23012025_17_35_00_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/17/34/image_23012025_17_34_12_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/17/34/image_23012025_17_34_06_6215.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_19_6192.jpg', '/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_12_6196.jpg', '/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_06_6215.jpg', '/home/nano/Desktop/images/23012025/17/34/image_23012025_17_35_00_5178.jpg', '/home/nano/Desktop/images/23012025/17/34/image_23012025_17_34_12_6201.jpg', '/home/nano/Desktop/images/23012025/17/34/image_23012025_17_34_06_6215.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_19_6192.jpg
/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_12_6196.jpg
/home/nano/Desktop/images/23012025/17/35/image_23012025_17_35_06_6215.jpg
/home/nano/Desktop/images/23012025/17/34/image_23012025_17_35_00_5178.jpg
/home/nano/Desktop/images/23012025/17/34/image_23012025_17_34_12_6201.jpg
/home/nano/Desktop/images/23012025/17/34/image_23012025_17_34_06_6215.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330837963","1330837966","1330837959","1330837947","1330837952","1330837961"],"photo_ids_order":["1330837947","1330837952","1330837959","1330837961","1330837963","1330837966"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5c95fd8e4758ef98bdac48276e8c5fc1.jpg","text":"TemporaryFile(/tmp/multipartBody1161261992144679784asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652023183,"filename":"image_23012025_17_34_12_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bbdcebf519ae27b19e51b3a42c8856e9.jpg","text":"TemporaryFile(/tmp/multipartBody6389056137689835779asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652023183,"filename":"image_23012025_17_34_06_6215.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/486052b35f6793578bf714ccc09b0aae.jpg","text":"TemporaryFile(/tmp/multipartBody3758540194742664397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652023183,"filename":"image_23012025_17_35_06_6215.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fe60b4e8656f2988ee78bf7052605b04.jpg","text":"TemporaryFile(/tmp/multipartBody5231107059298180362asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652023183,"filename":"image_23012025_17_35_19_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/aeaa398755999a65f3baf4ed87303182.jpg","text":"TemporaryFile(/tmp/multipartBody7040781415612591847asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652023183,"filename":"image_23012025_17_35_12_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/abaa5df1c4a15feec621e2792005af65.jpg","text":"TemporaryFile(/tmp/multipartBody3230971354618226529asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652023183,"filename":"image_23012025_17_35_00_5178.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330837959","file1":"1330837952","file0":"1330837947","file4":"1330837963","file5":"1330837966","file3":"1330837961"},"map_files_photo_id_array":[{"photo_id":"1330837966","filename":"file5"},{"photo_id":"1330837959","filename":"file2"},{"photo_id":"1330837963","filename":"file4"},{"photo_id":"1330837952","filename":"file1"},{"photo_id":"1330837947","filename":"file0"},{"photo_id":"1330837961","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330837963":["hashtag1","hashtag2"]},{"1330837966":["hashtag1","hashtag2"]},{"1330837959":["hashtag1","hashtag2"]},{"1330837947":["hashtag1","hashtag2"]},{"1330837952":["hashtag1","hashtag2"]},{"1330837961":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330837963, 1330837966, 1330837959, 1330837947, 1330837952, 1330837961)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.41045379638672 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:07:02.913601
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_55_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_19_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_12_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_06_6210.jpg', 2), ('/home/nano/Desktop/images/23012025/17/32/image_23012025_17_33_00_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_55_6198.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_55_6196.jpg', '/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_19_6201.jpg', '/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_12_6193.jpg', '/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_06_6210.jpg', '/home/nano/Desktop/images/23012025/17/32/image_23012025_17_33_00_5192.jpg', '/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_55_6198.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_55_6196.jpg
/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_19_6201.jpg
/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_12_6193.jpg
/home/nano/Desktop/images/23012025/17/33/image_23012025_17_33_06_6210.jpg
/home/nano/Desktop/images/23012025/17/32/image_23012025_17_33_00_5192.jpg
/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_55_6198.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330838079","1330838106","1330838109","1330838099","1330838093","1330838102"],"photo_ids_order":["1330838079","1330838093","1330838099","1330838102","1330838106","1330838109"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e879bb09dad50c4ca282cc5f0b189d67.jpg","text":"TemporaryFile(/tmp/multipartBody3003182062469454612asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652083593,"filename":"image_23012025_17_33_55_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ef89f1b598e4e2a5227e1a91204dc91e.jpg","text":"TemporaryFile(/tmp/multipartBody2504307760204762948asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652083593,"filename":"image_23012025_17_33_00_5192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a88134f2d56914cd84add53c8dadedf8.jpg","text":"TemporaryFile(/tmp/multipartBody3378870952561908798asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652083593,"filename":"image_23012025_17_32_55_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/581f6c0f541a3c24910bff99478525b0.jpg","text":"TemporaryFile(/tmp/multipartBody3791238493884065871asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652083593,"filename":"image_23012025_17_33_12_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a8a4db6196d67f43412d66620135e834.jpg","text":"TemporaryFile(/tmp/multipartBody4910366222470041448asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652083593,"filename":"image_23012025_17_33_19_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fc2e2d8975c80f1bebc8d1a209d46b36.jpg","text":"TemporaryFile(/tmp/multipartBody7305818368431109898asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652083593,"filename":"image_23012025_17_33_06_6210.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330838099","file1":"1330838093","file0":"1330838079","file4":"1330838106","file5":"1330838109","file3":"1330838102"},"map_files_photo_id_array":[{"photo_id":"1330838109","filename":"file5"},{"photo_id":"1330838099","filename":"file2"},{"photo_id":"1330838106","filename":"file4"},{"photo_id":"1330838093","filename":"file1"},{"photo_id":"1330838079","filename":"file0"},{"photo_id":"1330838102","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330838079":["hashtag1","hashtag2"]},{"1330838106":["hashtag1","hashtag2"]},{"1330838109":["hashtag1","hashtag2"]},{"1330838099":["hashtag1","hashtag2"]},{"1330838093":["hashtag1","hashtag2"]},{"1330838102":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330838079, 1330838106, 1330838109, 1330838099, 1330838093, 1330838102)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.075096607208252 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:08:02.959464
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/07/image_23012025_18_07_48_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/07/image_23012025_18_07_42_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/18/07/image_23012025_18_07_36_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/18/04/image_23012025_18_05_00_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_49_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_42_6192.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/07/image_23012025_18_07_48_6190.jpg', '/home/nano/Desktop/images/23012025/18/07/image_23012025_18_07_42_6189.jpg', '/home/nano/Desktop/images/23012025/18/07/image_23012025_18_07_36_5179.jpg', '/home/nano/Desktop/images/23012025/18/04/image_23012025_18_05_00_5191.jpg', '/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_49_6195.jpg', '/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_42_6192.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/07/image_23012025_18_07_48_6190.jpg
/home/nano/Desktop/images/23012025/18/07/image_23012025_18_07_42_6189.jpg
/home/nano/Desktop/images/23012025/18/07/image_23012025_18_07_36_5179.jpg
/home/nano/Desktop/images/23012025/18/04/image_23012025_18_05_00_5191.jpg
/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_49_6195.jpg
/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_42_6192.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330838148","1330838145","1330838153","1330838141","1330838135","1330838138"],"photo_ids_order":["1330838135","1330838138","1330838141","1330838145","1330838148","1330838153"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6dbeb682c65a9dec711bb64ef3d79606.jpg","text":"TemporaryFile(/tmp/multipartBody6178438652978564670asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652143403,"filename":"image_23012025_17_32_49_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ec25b0735d59319079b7d19d519c1737.jpg","text":"TemporaryFile(/tmp/multipartBody6425663141175209445asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652143403,"filename":"image_23012025_18_05_00_5191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7766a2cea91c74955a0a67aa47f5aa5e.jpg","text":"TemporaryFile(/tmp/multipartBody8391487214590003025asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652143403,"filename":"image_23012025_17_32_42_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f74e796c116851f8fba6a1e8c5a37849.jpg","text":"TemporaryFile(/tmp/multipartBody3535553289628447168asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652143403,"filename":"image_23012025_18_07_36_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/75d16a4122dc540c90e9fd09d7b435bc.jpg","text":"TemporaryFile(/tmp/multipartBody7357355351254049216asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652143403,"filename":"image_23012025_18_07_48_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f1e1e839f0623157bd1cbfbdb3e8d26a.jpg","text":"TemporaryFile(/tmp/multipartBody4686981296256277532asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652143403,"filename":"image_23012025_18_07_42_6189.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330838141","file1":"1330838138","file0":"1330838135","file4":"1330838148","file5":"1330838153","file3":"1330838145"},"map_files_photo_id_array":[{"photo_id":"1330838153","filename":"file5"},{"photo_id":"1330838141","filename":"file2"},{"photo_id":"1330838148","filename":"file4"},{"photo_id":"1330838138","filename":"file1"},{"photo_id":"1330838135","filename":"file0"},{"photo_id":"1330838145","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330838148":["hashtag1","hashtag2"]},{"1330838145":["hashtag1","hashtag2"]},{"1330838153":["hashtag1","hashtag2"]},{"1330838141":["hashtag1","hashtag2"]},{"1330838135":["hashtag1","hashtag2"]},{"1330838138":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330838148, 1330838145, 1330838153, 1330838141, 1330838135, 1330838138)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.856868267059326 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:09:03.461848
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/08/image_23012025_18_08_42_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/18/08/image_23012025_18_08_24_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/08/image_23012025_18_08_18_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/07/image_23012025_18_08_01_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_36_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_30_5186.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/08/image_23012025_18_08_42_5180.jpg', '/home/nano/Desktop/images/23012025/18/08/image_23012025_18_08_24_6190.jpg', '/home/nano/Desktop/images/23012025/18/08/image_23012025_18_08_18_6190.jpg', '/home/nano/Desktop/images/23012025/18/07/image_23012025_18_08_01_6191.jpg', '/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_36_6199.jpg', '/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_30_5186.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/08/image_23012025_18_08_42_5180.jpg
/home/nano/Desktop/images/23012025/18/08/image_23012025_18_08_24_6190.jpg
/home/nano/Desktop/images/23012025/18/08/image_23012025_18_08_18_6190.jpg
/home/nano/Desktop/images/23012025/18/07/image_23012025_18_08_01_6191.jpg
/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_36_6199.jpg
/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_30_5186.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330838209","1330838193","1330838238","1330838232","1330838205","1330838213"],"photo_ids_order":["1330838193","1330838205","1330838209","1330838213","1330838232","1330838238"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/adee7bc9fc835faf0d20b58be6050545.jpg","text":"TemporaryFile(/tmp/multipartBody5319244032335994614asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652203930,"filename":"image_23012025_18_08_18_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fb5bb47d79e6f4ed76ff64cd26962ea3.jpg","text":"TemporaryFile(/tmp/multipartBody465403493259351903asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652203930,"filename":"image_23012025_18_08_42_5180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4724e54dac4da2cbe82e8048108231a0.jpg","text":"TemporaryFile(/tmp/multipartBody2151620782698273278asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652203930,"filename":"image_23012025_17_32_30_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/158dd629ea5e18382954a18722c37168.jpg","text":"TemporaryFile(/tmp/multipartBody7988003706848902508asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652203930,"filename":"image_23012025_17_32_36_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3656039e00a030b99e4b14006b7f7fe3.jpg","text":"TemporaryFile(/tmp/multipartBody4887461398342634031asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652203930,"filename":"image_23012025_18_08_24_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/78193f439ce59b47516cd86c5cccc3e9.jpg","text":"TemporaryFile(/tmp/multipartBody7482850542326348916asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652203930,"filename":"image_23012025_18_08_01_6191.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330838209","file1":"1330838205","file0":"1330838193","file4":"1330838232","file5":"1330838238","file3":"1330838213"},"map_files_photo_id_array":[{"photo_id":"1330838238","filename":"file5"},{"photo_id":"1330838209","filename":"file2"},{"photo_id":"1330838232","filename":"file4"},{"photo_id":"1330838205","filename":"file1"},{"photo_id":"1330838193","filename":"file0"},{"photo_id":"1330838213","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330838209":["hashtag1","hashtag2"]},{"1330838193":["hashtag1","hashtag2"]},{"1330838238":["hashtag1","hashtag2"]},{"1330838232":["hashtag1","hashtag2"]},{"1330838205":["hashtag1","hashtag2"]},{"1330838213":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330838209, 1330838193, 1330838238, 1330838232, 1330838205, 1330838213)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.25723886489868 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:10:03.319043
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/09/image_23012025_18_09_42_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/18/09/image_23012025_18_09_37_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/09/image_23012025_18_09_31_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/09/image_23012025_18_09_18_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/08/image_23012025_18_09_01_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_25_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/09/image_23012025_18_09_42_5180.jpg', '/home/nano/Desktop/images/23012025/18/09/image_23012025_18_09_37_6190.jpg', '/home/nano/Desktop/images/23012025/18/09/image_23012025_18_09_31_6190.jpg', '/home/nano/Desktop/images/23012025/18/09/image_23012025_18_09_18_6190.jpg', '/home/nano/Desktop/images/23012025/18/08/image_23012025_18_09_01_6190.jpg', '/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_25_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/09/image_23012025_18_09_42_5180.jpg
/home/nano/Desktop/images/23012025/18/09/image_23012025_18_09_37_6190.jpg
/home/nano/Desktop/images/23012025/18/09/image_23012025_18_09_31_6190.jpg
/home/nano/Desktop/images/23012025/18/09/image_23012025_18_09_18_6190.jpg
/home/nano/Desktop/images/23012025/18/08/image_23012025_18_09_01_6190.jpg
/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_25_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330838284","1330838329","1330838302","1330838280","1330838319","1330838288"],"photo_ids_order":["1330838280","1330838284","1330838288","1330838302","1330838319","1330838329"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c8dd91279805e470d1d10844c25452e7.jpg","text":"TemporaryFile(/tmp/multipartBody8803579307529378517asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652263982,"filename":"image_23012025_18_09_37_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c4fc19be7583fa2e7b20fc31d56b45e6.jpg","text":"TemporaryFile(/tmp/multipartBody2221300520066206435asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652263982,"filename":"image_23012025_17_32_25_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/05433b0681cbc33a8be0944624a8cb50.jpg","text":"TemporaryFile(/tmp/multipartBody5496014709949000331asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652263982,"filename":"image_23012025_18_09_18_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/849438a0e6ad07d5f46293a502a9601b.jpg","text":"TemporaryFile(/tmp/multipartBody3566540310325420561asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652263982,"filename":"image_23012025_18_09_42_5180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2426c07405481a3f117350708653f181.jpg","text":"TemporaryFile(/tmp/multipartBody5338807879853569428asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652263982,"filename":"image_23012025_18_09_01_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/75571a133b345441750076126b0776ad.jpg","text":"TemporaryFile(/tmp/multipartBody3645465638134523009asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652263982,"filename":"image_23012025_18_09_31_6190.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330838288","file1":"1330838284","file0":"1330838280","file4":"1330838319","file5":"1330838329","file3":"1330838302"},"map_files_photo_id_array":[{"photo_id":"1330838329","filename":"file5"},{"photo_id":"1330838288","filename":"file2"},{"photo_id":"1330838319","filename":"file4"},{"photo_id":"1330838284","filename":"file1"},{"photo_id":"1330838280","filename":"file0"},{"photo_id":"1330838302","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330838284":["hashtag1","hashtag2"]},{"1330838329":["hashtag1","hashtag2"]},{"1330838302":["hashtag1","hashtag2"]},{"1330838280":["hashtag1","hashtag2"]},{"1330838319":["hashtag1","hashtag2"]},{"1330838288":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330838284, 1330838329, 1330838302, 1330838280, 1330838319, 1330838288)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.142984867095947 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:11:02.442158
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/09/image_23012025_18_10_01_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_19_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_13_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_06_5428.jpg', 2), ('/home/nano/Desktop/images/23012025/17/31/image_23012025_17_32_01_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/17/31/image_23012025_17_31_55_6194.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/09/image_23012025_18_10_01_6190.jpg', '/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_19_6192.jpg', '/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_13_6191.jpg', '/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_06_5428.jpg', '/home/nano/Desktop/images/23012025/17/31/image_23012025_17_32_01_6196.jpg', '/home/nano/Desktop/images/23012025/17/31/image_23012025_17_31_55_6194.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/09/image_23012025_18_10_01_6190.jpg
/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_19_6192.jpg
/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_13_6191.jpg
/home/nano/Desktop/images/23012025/17/32/image_23012025_17_32_06_5428.jpg
/home/nano/Desktop/images/23012025/17/31/image_23012025_17_32_01_6196.jpg
/home/nano/Desktop/images/23012025/17/31/image_23012025_17_31_55_6194.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330838515","1330838529","1330838522","1330838531","1330838519","1330838534"],"photo_ids_order":["1330838515","1330838519","1330838522","1330838529","1330838531","1330838534"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/239fa60e22ec04d4c793af63d50a3215.jpg","text":"TemporaryFile(/tmp/multipartBody4651037260259606410asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652323022,"filename":"image_23012025_18_10_01_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6299bd3640ca8e6b60e6708b3ba278b4.jpg","text":"TemporaryFile(/tmp/multipartBody3450185843645677602asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652323022,"filename":"image_23012025_17_32_06_5428.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a2354f9978ae5fefd386ce358ae1c203.jpg","text":"TemporaryFile(/tmp/multipartBody1361711111267599330asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652323022,"filename":"image_23012025_17_32_13_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/50f81304f9a5f9cb01fa79123120a104.jpg","text":"TemporaryFile(/tmp/multipartBody988999059787749055asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652323022,"filename":"image_23012025_17_32_01_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b85bbd3688e9fa2fceb83a0a470ac62a.jpg","text":"TemporaryFile(/tmp/multipartBody5966653527424233695asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652323022,"filename":"image_23012025_17_32_19_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2b5758246e8a370a3792c7069db73e33.jpg","text":"TemporaryFile(/tmp/multipartBody6581676758131147272asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652323022,"filename":"image_23012025_17_31_55_6194.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330838522","file1":"1330838519","file0":"1330838515","file4":"1330838531","file5":"1330838534","file3":"1330838529"},"map_files_photo_id_array":[{"photo_id":"1330838534","filename":"file5"},{"photo_id":"1330838522","filename":"file2"},{"photo_id":"1330838531","filename":"file4"},{"photo_id":"1330838519","filename":"file1"},{"photo_id":"1330838515","filename":"file0"},{"photo_id":"1330838529","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330838515":["hashtag1","hashtag2"]},{"1330838529":["hashtag1","hashtag2"]},{"1330838522":["hashtag1","hashtag2"]},{"1330838531":["hashtag1","hashtag2"]},{"1330838519":["hashtag1","hashtag2"]},{"1330838534":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330838515, 1330838529, 1330838522, 1330838531, 1330838519, 1330838534)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.07858657836914 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:12:02.505148
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/11/image_23012025_18_11_54_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/18/11/image_23012025_18_11_48_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/18/11/image_23012025_18_11_37_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/11/image_23012025_18_11_30_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/11/image_23012025_18_11_24_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/18/11/image_23012025_18_11_13_6194.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/11/image_23012025_18_11_54_6191.jpg', '/home/nano/Desktop/images/23012025/18/11/image_23012025_18_11_48_5179.jpg', '/home/nano/Desktop/images/23012025/18/11/image_23012025_18_11_37_6190.jpg', '/home/nano/Desktop/images/23012025/18/11/image_23012025_18_11_30_6190.jpg', '/home/nano/Desktop/images/23012025/18/11/image_23012025_18_11_24_6192.jpg', '/home/nano/Desktop/images/23012025/18/11/image_23012025_18_11_13_6194.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/11/image_23012025_18_11_54_6191.jpg
/home/nano/Desktop/images/23012025/18/11/image_23012025_18_11_48_5179.jpg
/home/nano/Desktop/images/23012025/18/11/image_23012025_18_11_37_6190.jpg
/home/nano/Desktop/images/23012025/18/11/image_23012025_18_11_30_6190.jpg
/home/nano/Desktop/images/23012025/18/11/image_23012025_18_11_24_6192.jpg
/home/nano/Desktop/images/23012025/18/11/image_23012025_18_11_13_6194.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330838674","1330838653","1330838672","1330838675","1330838669","1330838677"],"photo_ids_order":["1330838653","1330838669","1330838672","1330838674","1330838675","1330838677"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/737cea9185d23b47d5e7256c65e919ce.jpg","text":"TemporaryFile(/tmp/multipartBody8263587321096075859asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652382978,"filename":"image_23012025_18_11_30_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/34608b80fb940dfd31f9ffaddb7f3817.jpg","text":"TemporaryFile(/tmp/multipartBody5026990499231104304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652382978,"filename":"image_23012025_18_11_54_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/62e77aec04aabaf8a62ed534407fcb31.jpg","text":"TemporaryFile(/tmp/multipartBody6385570887285012391asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652382978,"filename":"image_23012025_18_11_37_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/65c7339b1b59237d4f34e46a29052595.jpg","text":"TemporaryFile(/tmp/multipartBody653791703580592998asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652382978,"filename":"image_23012025_18_11_24_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ccf1b1eb319bc4a49aab3e90a78d8dc9.jpg","text":"TemporaryFile(/tmp/multipartBody2054188346905110492asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652382978,"filename":"image_23012025_18_11_48_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1aac6923a2f04251fa3dd5eb991cbac8.jpg","text":"TemporaryFile(/tmp/multipartBody7368514123545476174asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652382978,"filename":"image_23012025_18_11_13_6194.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330838672","file1":"1330838669","file0":"1330838653","file4":"1330838675","file5":"1330838677","file3":"1330838674"},"map_files_photo_id_array":[{"photo_id":"1330838677","filename":"file5"},{"photo_id":"1330838672","filename":"file2"},{"photo_id":"1330838675","filename":"file4"},{"photo_id":"1330838669","filename":"file1"},{"photo_id":"1330838653","filename":"file0"},{"photo_id":"1330838674","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330838674":["hashtag1","hashtag2"]},{"1330838653":["hashtag1","hashtag2"]},{"1330838672":["hashtag1","hashtag2"]},{"1330838675":["hashtag1","hashtag2"]},{"1330838669":["hashtag1","hashtag2"]},{"1330838677":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330838674, 1330838653, 1330838672, 1330838675, 1330838669, 1330838677)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.727431535720825 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:13:02.708266
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/12/image_23012025_18_12_49_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/18/12/image_23012025_18_12_43_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/18/12/image_23012025_18_12_36_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/12/image_23012025_18_12_24_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/12/image_23012025_18_12_18_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/18/12/image_23012025_18_12_13_6190.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/12/image_23012025_18_12_49_6195.jpg', '/home/nano/Desktop/images/23012025/18/12/image_23012025_18_12_43_6191.jpg', '/home/nano/Desktop/images/23012025/18/12/image_23012025_18_12_36_6190.jpg', '/home/nano/Desktop/images/23012025/18/12/image_23012025_18_12_24_6190.jpg', '/home/nano/Desktop/images/23012025/18/12/image_23012025_18_12_18_5180.jpg', '/home/nano/Desktop/images/23012025/18/12/image_23012025_18_12_13_6190.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/12/image_23012025_18_12_49_6195.jpg
/home/nano/Desktop/images/23012025/18/12/image_23012025_18_12_43_6191.jpg
/home/nano/Desktop/images/23012025/18/12/image_23012025_18_12_36_6190.jpg
/home/nano/Desktop/images/23012025/18/12/image_23012025_18_12_24_6190.jpg
/home/nano/Desktop/images/23012025/18/12/image_23012025_18_12_18_5180.jpg
/home/nano/Desktop/images/23012025/18/12/image_23012025_18_12_13_6190.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330838791","1330838806","1330838821","1330838786","1330838774","1330838813"],"photo_ids_order":["1330838774","1330838786","1330838791","1330838806","1330838813","1330838821"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/51cca3f3a4666faf2691109415735502.jpg","text":"TemporaryFile(/tmp/multipartBody8406406944386277129asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652443204,"filename":"image_23012025_18_12_36_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e9429566d12aa39f9cafb202c0e32825.jpg","text":"TemporaryFile(/tmp/multipartBody8567861944149669629asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652443204,"filename":"image_23012025_18_12_24_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8f5465a947ddbf5c54224cd1317fd96e.jpg","text":"TemporaryFile(/tmp/multipartBody2869967911620898945asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652443204,"filename":"image_23012025_18_12_13_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/efcf8deb72640186e8914512e05d54db.jpg","text":"TemporaryFile(/tmp/multipartBody2968561046547485572asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652443204,"filename":"image_23012025_18_12_43_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5ddc3995b53b6d06bad7d462acef072b.jpg","text":"TemporaryFile(/tmp/multipartBody3014452830315045482asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652443204,"filename":"image_23012025_18_12_49_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/53fb5f67c9c4f7977faa53f045d78f69.jpg","text":"TemporaryFile(/tmp/multipartBody6618544424720431653asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652443204,"filename":"image_23012025_18_12_18_5180.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330838791","file1":"1330838786","file0":"1330838774","file4":"1330838813","file5":"1330838821","file3":"1330838806"},"map_files_photo_id_array":[{"photo_id":"1330838821","filename":"file5"},{"photo_id":"1330838791","filename":"file2"},{"photo_id":"1330838813","filename":"file4"},{"photo_id":"1330838786","filename":"file1"},{"photo_id":"1330838774","filename":"file0"},{"photo_id":"1330838806","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330838791":["hashtag1","hashtag2"]},{"1330838806":["hashtag1","hashtag2"]},{"1330838821":["hashtag1","hashtag2"]},{"1330838786":["hashtag1","hashtag2"]},{"1330838774":["hashtag1","hashtag2"]},{"1330838813":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330838791, 1330838806, 1330838821, 1330838786, 1330838774, 1330838813)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.888184309005737 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:14:02.728057
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/13/image_23012025_18_14_00_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/18/13/image_23012025_18_13_49_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/13/image_23012025_18_13_43_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/12/image_23012025_18_13_00_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/18/12/image_23012025_18_12_07_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/18/11/image_23012025_18_12_00_6189.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/13/image_23012025_18_14_00_6192.jpg', '/home/nano/Desktop/images/23012025/18/13/image_23012025_18_13_49_6190.jpg', '/home/nano/Desktop/images/23012025/18/13/image_23012025_18_13_43_6190.jpg', '/home/nano/Desktop/images/23012025/18/12/image_23012025_18_13_00_6193.jpg', '/home/nano/Desktop/images/23012025/18/12/image_23012025_18_12_07_6199.jpg', '/home/nano/Desktop/images/23012025/18/11/image_23012025_18_12_00_6189.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/13/image_23012025_18_14_00_6192.jpg
/home/nano/Desktop/images/23012025/18/13/image_23012025_18_13_49_6190.jpg
/home/nano/Desktop/images/23012025/18/13/image_23012025_18_13_43_6190.jpg
/home/nano/Desktop/images/23012025/18/12/image_23012025_18_13_00_6193.jpg
/home/nano/Desktop/images/23012025/18/12/image_23012025_18_12_07_6199.jpg
/home/nano/Desktop/images/23012025/18/11/image_23012025_18_12_00_6189.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330838898","1330838919","1330838901","1330838891","1330838909","1330838906"],"photo_ids_order":["1330838891","1330838898","1330838901","1330838906","1330838909","1330838919"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/beb75968fea241f68f3ffebf584b25f3.jpg","text":"TemporaryFile(/tmp/multipartBody6064114287466471612asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652503154,"filename":"image_23012025_18_13_49_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5503fad361bac4b4f6baf29c06c62b08.jpg","text":"TemporaryFile(/tmp/multipartBody2539875145256195128asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652503154,"filename":"image_23012025_18_12_00_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7b946e8d2c652fa947d5907d04e96e59.jpg","text":"TemporaryFile(/tmp/multipartBody6508786443732870796asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652503154,"filename":"image_23012025_18_13_43_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b8e32e5a114708530db25af94f759b8e.jpg","text":"TemporaryFile(/tmp/multipartBody7266180267249878744asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652503154,"filename":"image_23012025_18_14_00_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1540db9def1e61f6eea1e9a09d7edbbc.jpg","text":"TemporaryFile(/tmp/multipartBody4330313179731863503asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652503154,"filename":"image_23012025_18_12_07_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a8aaf1308566dc04115c0ab98716cf91.jpg","text":"TemporaryFile(/tmp/multipartBody1660762173534905046asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652503154,"filename":"image_23012025_18_13_00_6193.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330838901","file1":"1330838898","file0":"1330838891","file4":"1330838909","file5":"1330838919","file3":"1330838906"},"map_files_photo_id_array":[{"photo_id":"1330838919","filename":"file5"},{"photo_id":"1330838901","filename":"file2"},{"photo_id":"1330838909","filename":"file4"},{"photo_id":"1330838898","filename":"file1"},{"photo_id":"1330838891","filename":"file0"},{"photo_id":"1330838906","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330838898":["hashtag1","hashtag2"]},{"1330838919":["hashtag1","hashtag2"]},{"1330838901":["hashtag1","hashtag2"]},{"1330838891":["hashtag1","hashtag2"]},{"1330838909":["hashtag1","hashtag2"]},{"1330838906":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330838898, 1330838919, 1330838901, 1330838891, 1330838909, 1330838906)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.908114433288574 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:15:03.296073
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/14/image_23012025_18_14_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/18/14/image_23012025_18_14_49_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/14/image_23012025_18_14_42_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/14/image_23012025_18_14_30_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/18/14/image_23012025_18_14_24_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/18/13/image_23012025_18_13_54_5180.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/14/image_23012025_18_14_55_6188.jpg', '/home/nano/Desktop/images/23012025/18/14/image_23012025_18_14_49_6190.jpg', '/home/nano/Desktop/images/23012025/18/14/image_23012025_18_14_42_6190.jpg', '/home/nano/Desktop/images/23012025/18/14/image_23012025_18_14_30_6194.jpg', '/home/nano/Desktop/images/23012025/18/14/image_23012025_18_14_24_5180.jpg', '/home/nano/Desktop/images/23012025/18/13/image_23012025_18_13_54_5180.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/14/image_23012025_18_14_55_6188.jpg
/home/nano/Desktop/images/23012025/18/14/image_23012025_18_14_49_6190.jpg
/home/nano/Desktop/images/23012025/18/14/image_23012025_18_14_42_6190.jpg
/home/nano/Desktop/images/23012025/18/14/image_23012025_18_14_30_6194.jpg
/home/nano/Desktop/images/23012025/18/14/image_23012025_18_14_24_5180.jpg
/home/nano/Desktop/images/23012025/18/13/image_23012025_18_13_54_5180.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330839112","1330839106","1330839115","1330839042","1330839123","1330839119"],"photo_ids_order":["1330839042","1330839106","1330839112","1330839115","1330839119","1330839123"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0f87778d9dad46192be80fbd708bbd91.jpg","text":"TemporaryFile(/tmp/multipartBody3693211156143662415asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652563835,"filename":"image_23012025_18_14_42_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8a121f3318aef78850fa761f29316aa5.jpg","text":"TemporaryFile(/tmp/multipartBody8596456811101471996asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652563835,"filename":"image_23012025_18_14_49_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/76359ae33c3f84c0ddbae14ddbb50dfb.jpg","text":"TemporaryFile(/tmp/multipartBody3026448050203246687asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652563835,"filename":"image_23012025_18_14_30_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c1595e8bcdae73eed8dc1a056be864e3.jpg","text":"TemporaryFile(/tmp/multipartBody3989316870747343592asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652563835,"filename":"image_23012025_18_14_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8b366f4c8eefbe537250e5139a50eec7.jpg","text":"TemporaryFile(/tmp/multipartBody7539649712507034241asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652563835,"filename":"image_23012025_18_13_54_5180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8407ec778e363a1f372a5aa5ca8ae5e7.jpg","text":"TemporaryFile(/tmp/multipartBody2748903385685925185asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652563835,"filename":"image_23012025_18_14_24_5180.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330839112","file1":"1330839106","file0":"1330839042","file4":"1330839119","file5":"1330839123","file3":"1330839115"},"map_files_photo_id_array":[{"photo_id":"1330839123","filename":"file5"},{"photo_id":"1330839112","filename":"file2"},{"photo_id":"1330839119","filename":"file4"},{"photo_id":"1330839106","filename":"file1"},{"photo_id":"1330839042","filename":"file0"},{"photo_id":"1330839115","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330839112":["hashtag1","hashtag2"]},{"1330839106":["hashtag1","hashtag2"]},{"1330839115":["hashtag1","hashtag2"]},{"1330839042":["hashtag1","hashtag2"]},{"1330839123":["hashtag1","hashtag2"]},{"1330839119":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330839112, 1330839106, 1330839115, 1330839042, 1330839123, 1330839119)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.84910774230957 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:16:02.342712
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/15/image_23012025_18_15_36_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/15/image_23012025_18_15_30_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/18/15/image_23012025_18_15_25_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/18/15/image_23012025_18_15_19_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/15/image_23012025_18_15_06_6212.jpg', 2), ('/home/nano/Desktop/images/23012025/18/14/image_23012025_18_15_00_5180.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/15/image_23012025_18_15_36_6190.jpg', '/home/nano/Desktop/images/23012025/18/15/image_23012025_18_15_30_5180.jpg', '/home/nano/Desktop/images/23012025/18/15/image_23012025_18_15_25_6189.jpg', '/home/nano/Desktop/images/23012025/18/15/image_23012025_18_15_19_6190.jpg', '/home/nano/Desktop/images/23012025/18/15/image_23012025_18_15_06_6212.jpg', '/home/nano/Desktop/images/23012025/18/14/image_23012025_18_15_00_5180.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/15/image_23012025_18_15_36_6190.jpg
/home/nano/Desktop/images/23012025/18/15/image_23012025_18_15_30_5180.jpg
/home/nano/Desktop/images/23012025/18/15/image_23012025_18_15_25_6189.jpg
/home/nano/Desktop/images/23012025/18/15/image_23012025_18_15_19_6190.jpg
/home/nano/Desktop/images/23012025/18/15/image_23012025_18_15_06_6212.jpg
/home/nano/Desktop/images/23012025/18/14/image_23012025_18_15_00_5180.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330839301","1330839307","1330839273","1330839303","1330839266","1330839298"],"photo_ids_order":["1330839266","1330839273","1330839298","1330839301","1330839303","1330839307"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a4e8a946129d78741f6360beb6132049.jpg","text":"TemporaryFile(/tmp/multipartBody8075270417413970969asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652622864,"filename":"image_23012025_18_15_19_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/785fcd7445ac714bd2580eebf822ec06.jpg","text":"TemporaryFile(/tmp/multipartBody3048422928773988716asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652622864,"filename":"image_23012025_18_15_00_5180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3fd64fef058e23c58417a05c6ed239b1.jpg","text":"TemporaryFile(/tmp/multipartBody8066601387276965273asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652622864,"filename":"image_23012025_18_15_30_5180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/371f95b0a2f33f5f22c13c05ac520507.jpg","text":"TemporaryFile(/tmp/multipartBody6842984453797747176asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652622864,"filename":"image_23012025_18_15_06_6212.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/943ed6d469d294b2302c5e4b5446dd7b.jpg","text":"TemporaryFile(/tmp/multipartBody569857905534503038asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652622864,"filename":"image_23012025_18_15_36_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b182ae9433a1adfd9a317edf6f9b6cef.jpg","text":"TemporaryFile(/tmp/multipartBody3919870780221626669asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652622864,"filename":"image_23012025_18_15_25_6189.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330839298","file1":"1330839273","file0":"1330839266","file4":"1330839303","file5":"1330839307","file3":"1330839301"},"map_files_photo_id_array":[{"photo_id":"1330839307","filename":"file5"},{"photo_id":"1330839298","filename":"file2"},{"photo_id":"1330839303","filename":"file4"},{"photo_id":"1330839273","filename":"file1"},{"photo_id":"1330839266","filename":"file0"},{"photo_id":"1330839301","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330839301":["hashtag1","hashtag2"]},{"1330839307":["hashtag1","hashtag2"]},{"1330839273":["hashtag1","hashtag2"]},{"1330839303":["hashtag1","hashtag2"]},{"1330839266":["hashtag1","hashtag2"]},{"1330839298":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330839301, 1330839307, 1330839273, 1330839303, 1330839266, 1330839298)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.209437370300293 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:17:02.398452
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/16/image_23012025_18_16_55_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/18/16/image_23012025_18_16_48_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/18/16/image_23012025_18_16_42_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/18/16/image_23012025_18_16_36_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/16/image_23012025_18_16_25_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/16/image_23012025_18_16_19_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/16/image_23012025_18_16_55_6186.jpg', '/home/nano/Desktop/images/23012025/18/16/image_23012025_18_16_48_6186.jpg', '/home/nano/Desktop/images/23012025/18/16/image_23012025_18_16_42_6187.jpg', '/home/nano/Desktop/images/23012025/18/16/image_23012025_18_16_36_6190.jpg', '/home/nano/Desktop/images/23012025/18/16/image_23012025_18_16_25_6190.jpg', '/home/nano/Desktop/images/23012025/18/16/image_23012025_18_16_19_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/16/image_23012025_18_16_55_6186.jpg
/home/nano/Desktop/images/23012025/18/16/image_23012025_18_16_48_6186.jpg
/home/nano/Desktop/images/23012025/18/16/image_23012025_18_16_42_6187.jpg
/home/nano/Desktop/images/23012025/18/16/image_23012025_18_16_36_6190.jpg
/home/nano/Desktop/images/23012025/18/16/image_23012025_18_16_25_6190.jpg
/home/nano/Desktop/images/23012025/18/16/image_23012025_18_16_19_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330839393","1330839339","1330839354","1330839333","1330839408","1330839419"],"photo_ids_order":["1330839333","1330839339","1330839354","1330839393","1330839408","1330839419"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/22de8ba5e2925b34fedc923b996f1a99.jpg","text":"TemporaryFile(/tmp/multipartBody5330896486819108409asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652682851,"filename":"image_23012025_18_16_36_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4f8b089504abe814f8bfc6b6f1e4e4ec.jpg","text":"TemporaryFile(/tmp/multipartBody9141372414853720040asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652682851,"filename":"image_23012025_18_16_48_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2745f1c70e327e8a3fbd6c674943a03b.jpg","text":"TemporaryFile(/tmp/multipartBody7527218242408374898asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652682851,"filename":"image_23012025_18_16_42_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7c646ad03554a9ec858ea8fa17510b08.jpg","text":"TemporaryFile(/tmp/multipartBody1291276489783346768asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652682851,"filename":"image_23012025_18_16_55_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9032b6bbf4de6b9abc47d1a3ec480257.jpg","text":"TemporaryFile(/tmp/multipartBody3932472959500953062asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652682851,"filename":"image_23012025_18_16_25_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/67753904103afbd8d6f03f6192417f24.jpg","text":"TemporaryFile(/tmp/multipartBody6252403281184709137asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652682851,"filename":"image_23012025_18_16_19_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330839354","file1":"1330839339","file0":"1330839333","file4":"1330839408","file5":"1330839419","file3":"1330839393"},"map_files_photo_id_array":[{"photo_id":"1330839419","filename":"file5"},{"photo_id":"1330839354","filename":"file2"},{"photo_id":"1330839408","filename":"file4"},{"photo_id":"1330839339","filename":"file1"},{"photo_id":"1330839333","filename":"file0"},{"photo_id":"1330839393","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330839393":["hashtag1","hashtag2"]},{"1330839339":["hashtag1","hashtag2"]},{"1330839354":["hashtag1","hashtag2"]},{"1330839333":["hashtag1","hashtag2"]},{"1330839408":["hashtag1","hashtag2"]},{"1330839419":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330839393, 1330839339, 1330839354, 1330839333, 1330839408, 1330839419)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.24000096321106 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:18:02.398837
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/17/image_23012025_18_17_55_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/18/17/image_23012025_18_17_49_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/18/17/image_23012025_18_17_42_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/18/17/image_23012025_18_17_36_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/18/17/image_23012025_18_17_30_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/18/17/image_23012025_18_17_25_6186.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/17/image_23012025_18_17_55_6187.jpg', '/home/nano/Desktop/images/23012025/18/17/image_23012025_18_17_49_6188.jpg', '/home/nano/Desktop/images/23012025/18/17/image_23012025_18_17_42_6187.jpg', '/home/nano/Desktop/images/23012025/18/17/image_23012025_18_17_36_6191.jpg', '/home/nano/Desktop/images/23012025/18/17/image_23012025_18_17_30_5177.jpg', '/home/nano/Desktop/images/23012025/18/17/image_23012025_18_17_25_6186.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/17/image_23012025_18_17_55_6187.jpg
/home/nano/Desktop/images/23012025/18/17/image_23012025_18_17_49_6188.jpg
/home/nano/Desktop/images/23012025/18/17/image_23012025_18_17_42_6187.jpg
/home/nano/Desktop/images/23012025/18/17/image_23012025_18_17_36_6191.jpg
/home/nano/Desktop/images/23012025/18/17/image_23012025_18_17_30_5177.jpg
/home/nano/Desktop/images/23012025/18/17/image_23012025_18_17_25_6186.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330839505","1330839489","1330839513","1330839493","1330839532","1330839511"],"photo_ids_order":["1330839489","1330839493","1330839505","1330839511","1330839513","1330839532"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f99af19d91a3a2e489acc2ec4f6b16d2.jpg","text":"TemporaryFile(/tmp/multipartBody3162977208334590134asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652742758,"filename":"image_23012025_18_17_42_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fbdb9604b667b46e29d521c44bd72f9e.jpg","text":"TemporaryFile(/tmp/multipartBody4985881470234654739asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652742758,"filename":"image_23012025_18_17_55_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/464d2550653ca0e933e980aa88fb1e2d.jpg","text":"TemporaryFile(/tmp/multipartBody7694062547636200283asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652742758,"filename":"image_23012025_18_17_30_5177.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/89c2f827c6e59967942d063be6d87279.jpg","text":"TemporaryFile(/tmp/multipartBody2383020964412464638asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652742758,"filename":"image_23012025_18_17_49_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bf374318769dac456143a79ea8d73820.jpg","text":"TemporaryFile(/tmp/multipartBody5619072801191286745asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652742758,"filename":"image_23012025_18_17_25_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d92d4c67138b6ccc1cff13fb6d949b83.jpg","text":"TemporaryFile(/tmp/multipartBody5065191326517839568asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652742758,"filename":"image_23012025_18_17_36_6191.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330839505","file1":"1330839493","file0":"1330839489","file4":"1330839513","file5":"1330839532","file3":"1330839511"},"map_files_photo_id_array":[{"photo_id":"1330839532","filename":"file5"},{"photo_id":"1330839505","filename":"file2"},{"photo_id":"1330839513","filename":"file4"},{"photo_id":"1330839493","filename":"file1"},{"photo_id":"1330839489","filename":"file0"},{"photo_id":"1330839511","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330839505":["hashtag1","hashtag2"]},{"1330839489":["hashtag1","hashtag2"]},{"1330839513":["hashtag1","hashtag2"]},{"1330839493":["hashtag1","hashtag2"]},{"1330839532":["hashtag1","hashtag2"]},{"1330839511":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330839505, 1330839489, 1330839513, 1330839493, 1330839532, 1330839511)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.82772946357727 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:19:02.947346
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/18/image_23012025_18_18_55_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/18/18/image_23012025_18_18_48_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/18/18/image_23012025_18_18_42_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/18/18/image_23012025_18_18_36_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/18/18/image_23012025_18_18_30_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/18/image_23012025_18_18_25_6191.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/18/image_23012025_18_18_55_6194.jpg', '/home/nano/Desktop/images/23012025/18/18/image_23012025_18_18_48_6193.jpg', '/home/nano/Desktop/images/23012025/18/18/image_23012025_18_18_42_6192.jpg', '/home/nano/Desktop/images/23012025/18/18/image_23012025_18_18_36_6194.jpg', '/home/nano/Desktop/images/23012025/18/18/image_23012025_18_18_30_5190.jpg', '/home/nano/Desktop/images/23012025/18/18/image_23012025_18_18_25_6191.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/18/image_23012025_18_18_55_6194.jpg
/home/nano/Desktop/images/23012025/18/18/image_23012025_18_18_48_6193.jpg
/home/nano/Desktop/images/23012025/18/18/image_23012025_18_18_42_6192.jpg
/home/nano/Desktop/images/23012025/18/18/image_23012025_18_18_36_6194.jpg
/home/nano/Desktop/images/23012025/18/18/image_23012025_18_18_30_5190.jpg
/home/nano/Desktop/images/23012025/18/18/image_23012025_18_18_25_6191.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330839570","1330839578","1330839580","1330839574","1330839583","1330839586"],"photo_ids_order":["1330839570","1330839574","1330839578","1330839580","1330839583","1330839586"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/20b1c6b6e5bd4c1b9ee91265fea2e1aa.jpg","text":"TemporaryFile(/tmp/multipartBody2726591431332879858asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652803567,"filename":"image_23012025_18_18_55_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e2c8686b408319e4e44bc34a2247f885.jpg","text":"TemporaryFile(/tmp/multipartBody5902974532969750728asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652803567,"filename":"image_23012025_18_18_42_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d0db10384f53f1d551e58a108905eafb.jpg","text":"TemporaryFile(/tmp/multipartBody3153912367210365121asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652803567,"filename":"image_23012025_18_18_36_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c431b5c72452142a53fe7fd2c43c1efe.jpg","text":"TemporaryFile(/tmp/multipartBody2127267445752291890asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652803567,"filename":"image_23012025_18_18_48_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/24b88b032c4ca98937be72b906ac4e3c.jpg","text":"TemporaryFile(/tmp/multipartBody1295239794057619645asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652803567,"filename":"image_23012025_18_18_30_5190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/177feb083612bdda33c2b9930dd8bc8c.jpg","text":"TemporaryFile(/tmp/multipartBody8336391964261117059asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652803567,"filename":"image_23012025_18_18_25_6191.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330839578","file1":"1330839574","file0":"1330839570","file4":"1330839583","file5":"1330839586","file3":"1330839580"},"map_files_photo_id_array":[{"photo_id":"1330839586","filename":"file5"},{"photo_id":"1330839578","filename":"file2"},{"photo_id":"1330839583","filename":"file4"},{"photo_id":"1330839574","filename":"file1"},{"photo_id":"1330839570","filename":"file0"},{"photo_id":"1330839580","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330839570":["hashtag1","hashtag2"]},{"1330839578":["hashtag1","hashtag2"]},{"1330839580":["hashtag1","hashtag2"]},{"1330839574":["hashtag1","hashtag2"]},{"1330839583":["hashtag1","hashtag2"]},{"1330839586":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330839570, 1330839578, 1330839580, 1330839574, 1330839583, 1330839586)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.046428203582764 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:20:02.658849
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/19/image_23012025_18_19_55_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/18/19/image_23012025_18_19_49_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/18/19/image_23012025_18_19_42_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/18/19/image_23012025_18_19_36_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/18/19/image_23012025_18_19_30_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/18/19/image_23012025_18_19_25_6209.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/19/image_23012025_18_19_55_6191.jpg', '/home/nano/Desktop/images/23012025/18/19/image_23012025_18_19_49_6193.jpg', '/home/nano/Desktop/images/23012025/18/19/image_23012025_18_19_42_6192.jpg', '/home/nano/Desktop/images/23012025/18/19/image_23012025_18_19_36_6202.jpg', '/home/nano/Desktop/images/23012025/18/19/image_23012025_18_19_30_5192.jpg', '/home/nano/Desktop/images/23012025/18/19/image_23012025_18_19_25_6209.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/19/image_23012025_18_19_55_6191.jpg
/home/nano/Desktop/images/23012025/18/19/image_23012025_18_19_49_6193.jpg
/home/nano/Desktop/images/23012025/18/19/image_23012025_18_19_42_6192.jpg
/home/nano/Desktop/images/23012025/18/19/image_23012025_18_19_36_6202.jpg
/home/nano/Desktop/images/23012025/18/19/image_23012025_18_19_30_5192.jpg
/home/nano/Desktop/images/23012025/18/19/image_23012025_18_19_25_6209.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330839640","1330839622","1330839642","1330839629","1330839614","1330839637"],"photo_ids_order":["1330839614","1330839622","1330839629","1330839637","1330839640","1330839642"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9eb95778d5100e780c01414c02e1bd13.jpg","text":"TemporaryFile(/tmp/multipartBody7115008482608081399asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652863185,"filename":"image_23012025_18_19_30_5192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c9588855377d9f6760b094a923f51a43.jpg","text":"TemporaryFile(/tmp/multipartBody396695301357279744asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652863185,"filename":"image_23012025_18_19_49_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fabb34827340ca88972ad3d25e42d3e5.jpg","text":"TemporaryFile(/tmp/multipartBody3643573685672902580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652863185,"filename":"image_23012025_18_19_25_6209.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1f8e75ec6b479b0405cf6deab91371a5.jpg","text":"TemporaryFile(/tmp/multipartBody4145707413851109218asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652863185,"filename":"image_23012025_18_19_42_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/49303777203587a16e80e4b9ad61bfa2.jpg","text":"TemporaryFile(/tmp/multipartBody4942829720540546050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652863185,"filename":"image_23012025_18_19_55_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/db0f7cecf8eceb0eebeec6278d8e4f01.jpg","text":"TemporaryFile(/tmp/multipartBody5939126626261992623asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652863185,"filename":"image_23012025_18_19_36_6202.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330839629","file1":"1330839622","file0":"1330839614","file4":"1330839640","file5":"1330839642","file3":"1330839637"},"map_files_photo_id_array":[{"photo_id":"1330839642","filename":"file5"},{"photo_id":"1330839629","filename":"file2"},{"photo_id":"1330839640","filename":"file4"},{"photo_id":"1330839622","filename":"file1"},{"photo_id":"1330839614","filename":"file0"},{"photo_id":"1330839637","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330839640":["hashtag1","hashtag2"]},{"1330839622":["hashtag1","hashtag2"]},{"1330839642":["hashtag1","hashtag2"]},{"1330839629":["hashtag1","hashtag2"]},{"1330839614":["hashtag1","hashtag2"]},{"1330839637":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330839640, 1330839622, 1330839642, 1330839629, 1330839614, 1330839637)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.064358234405518 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:21:02.992772
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/20/image_23012025_18_20_55_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/18/20/image_23012025_18_20_49_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/18/20/image_23012025_18_20_42_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/18/20/image_23012025_18_20_36_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/18/20/image_23012025_18_20_30_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/18/20/image_23012025_18_20_25_6194.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/20/image_23012025_18_20_55_6201.jpg', '/home/nano/Desktop/images/23012025/18/20/image_23012025_18_20_49_6200.jpg', '/home/nano/Desktop/images/23012025/18/20/image_23012025_18_20_42_6194.jpg', '/home/nano/Desktop/images/23012025/18/20/image_23012025_18_20_36_6196.jpg', '/home/nano/Desktop/images/23012025/18/20/image_23012025_18_20_30_5184.jpg', '/home/nano/Desktop/images/23012025/18/20/image_23012025_18_20_25_6194.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/20/image_23012025_18_20_55_6201.jpg
/home/nano/Desktop/images/23012025/18/20/image_23012025_18_20_49_6200.jpg
/home/nano/Desktop/images/23012025/18/20/image_23012025_18_20_42_6194.jpg
/home/nano/Desktop/images/23012025/18/20/image_23012025_18_20_36_6196.jpg
/home/nano/Desktop/images/23012025/18/20/image_23012025_18_20_30_5184.jpg
/home/nano/Desktop/images/23012025/18/20/image_23012025_18_20_25_6194.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330839721","1330839732","1330839729","1330839702","1330839726","1330839734"],"photo_ids_order":["1330839702","1330839721","1330839726","1330839729","1330839732","1330839734"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/749586322099b9c4798420f9d40d1a19.jpg","text":"TemporaryFile(/tmp/multipartBody8478759153257704577asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652923640,"filename":"image_23012025_18_20_49_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/df9ce8044218f97aee53b3e0c11715e8.jpg","text":"TemporaryFile(/tmp/multipartBody9183817231171628641asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652923640,"filename":"image_23012025_18_20_30_5184.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5da8723721427a450cf7238bc2001c53.jpg","text":"TemporaryFile(/tmp/multipartBody8090675798213525739asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652923640,"filename":"image_23012025_18_20_36_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6f6cb9f7963a0953d630bbe5626a9650.jpg","text":"TemporaryFile(/tmp/multipartBody6562312910716661596asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652923640,"filename":"image_23012025_18_20_55_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4a91999fa35186b22714242da5b018d5.jpg","text":"TemporaryFile(/tmp/multipartBody9025510845545326215asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652923640,"filename":"image_23012025_18_20_42_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2c8bb1ee6922ff9e0f40e3ab853ba8aa.jpg","text":"TemporaryFile(/tmp/multipartBody8496390956979168323asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652923640,"filename":"image_23012025_18_20_25_6194.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330839726","file1":"1330839721","file0":"1330839702","file4":"1330839732","file5":"1330839734","file3":"1330839729"},"map_files_photo_id_array":[{"photo_id":"1330839734","filename":"file5"},{"photo_id":"1330839726","filename":"file2"},{"photo_id":"1330839732","filename":"file4"},{"photo_id":"1330839721","filename":"file1"},{"photo_id":"1330839702","filename":"file0"},{"photo_id":"1330839729","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330839721":["hashtag1","hashtag2"]},{"1330839732":["hashtag1","hashtag2"]},{"1330839729":["hashtag1","hashtag2"]},{"1330839702":["hashtag1","hashtag2"]},{"1330839726":["hashtag1","hashtag2"]},{"1330839734":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330839721, 1330839732, 1330839729, 1330839702, 1330839726, 1330839734)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.37193489074707 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:22:02.847416
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/21/image_23012025_18_21_55_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/18/21/image_23012025_18_21_49_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/18/21/image_23012025_18_21_42_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/18/21/image_23012025_18_21_36_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/18/21/image_23012025_18_21_30_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/18/21/image_23012025_18_21_25_6192.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/21/image_23012025_18_21_55_6189.jpg', '/home/nano/Desktop/images/23012025/18/21/image_23012025_18_21_49_6191.jpg', '/home/nano/Desktop/images/23012025/18/21/image_23012025_18_21_42_6200.jpg', '/home/nano/Desktop/images/23012025/18/21/image_23012025_18_21_36_6202.jpg', '/home/nano/Desktop/images/23012025/18/21/image_23012025_18_21_30_5187.jpg', '/home/nano/Desktop/images/23012025/18/21/image_23012025_18_21_25_6192.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/21/image_23012025_18_21_55_6189.jpg
/home/nano/Desktop/images/23012025/18/21/image_23012025_18_21_49_6191.jpg
/home/nano/Desktop/images/23012025/18/21/image_23012025_18_21_42_6200.jpg
/home/nano/Desktop/images/23012025/18/21/image_23012025_18_21_36_6202.jpg
/home/nano/Desktop/images/23012025/18/21/image_23012025_18_21_30_5187.jpg
/home/nano/Desktop/images/23012025/18/21/image_23012025_18_21_25_6192.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330839814","1330839819","1330839809","1330839784","1330839823","1330839817"],"photo_ids_order":["1330839784","1330839809","1330839814","1330839817","1330839819","1330839823"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6d941aa2a1bd02d654b95546296f509c.jpg","text":"TemporaryFile(/tmp/multipartBody996624560652762475asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652983486,"filename":"image_23012025_18_21_42_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/111394e1e3b79912f3dbeabe15739426.jpg","text":"TemporaryFile(/tmp/multipartBody5787616353420502872asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652983486,"filename":"image_23012025_18_21_30_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1433731793bb53f7c05c979499387f68.jpg","text":"TemporaryFile(/tmp/multipartBody5257562927410510193asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652983486,"filename":"image_23012025_18_21_49_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d049cfeb3d92cfecf17ae18779aa78ec.jpg","text":"TemporaryFile(/tmp/multipartBody2485123039451856210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652983486,"filename":"image_23012025_18_21_55_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/919d383ac59d6b41751360f300232ff4.jpg","text":"TemporaryFile(/tmp/multipartBody859142552943811214asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652983486,"filename":"image_23012025_18_21_25_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1b6d88d3d129fe1e33177b0b9c32b881.jpg","text":"TemporaryFile(/tmp/multipartBody6214621900867354878asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737652983486,"filename":"image_23012025_18_21_36_6202.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330839814","file1":"1330839809","file0":"1330839784","file4":"1330839819","file5":"1330839823","file3":"1330839817"},"map_files_photo_id_array":[{"photo_id":"1330839823","filename":"file5"},{"photo_id":"1330839814","filename":"file2"},{"photo_id":"1330839819","filename":"file4"},{"photo_id":"1330839809","filename":"file1"},{"photo_id":"1330839784","filename":"file0"},{"photo_id":"1330839817","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330839814":["hashtag1","hashtag2"]},{"1330839819":["hashtag1","hashtag2"]},{"1330839809":["hashtag1","hashtag2"]},{"1330839784":["hashtag1","hashtag2"]},{"1330839823":["hashtag1","hashtag2"]},{"1330839817":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330839814, 1330839819, 1330839809, 1330839784, 1330839823, 1330839817)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.20752716064453 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:23:03.068841
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/22/image_23012025_18_22_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/18/22/image_23012025_18_22_48_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/18/22/image_23012025_18_22_42_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/18/22/image_23012025_18_22_36_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/18/22/image_23012025_18_22_30_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/18/22/image_23012025_18_22_25_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/22/image_23012025_18_22_55_6188.jpg', '/home/nano/Desktop/images/23012025/18/22/image_23012025_18_22_48_6188.jpg', '/home/nano/Desktop/images/23012025/18/22/image_23012025_18_22_42_6187.jpg', '/home/nano/Desktop/images/23012025/18/22/image_23012025_18_22_36_6192.jpg', '/home/nano/Desktop/images/23012025/18/22/image_23012025_18_22_30_5177.jpg', '/home/nano/Desktop/images/23012025/18/22/image_23012025_18_22_25_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/22/image_23012025_18_22_55_6188.jpg
/home/nano/Desktop/images/23012025/18/22/image_23012025_18_22_48_6188.jpg
/home/nano/Desktop/images/23012025/18/22/image_23012025_18_22_42_6187.jpg
/home/nano/Desktop/images/23012025/18/22/image_23012025_18_22_36_6192.jpg
/home/nano/Desktop/images/23012025/18/22/image_23012025_18_22_30_5177.jpg
/home/nano/Desktop/images/23012025/18/22/image_23012025_18_22_25_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330839885","1330839879","1330839870","1330839867","1330839862","1330839856"],"photo_ids_order":["1330839856","1330839862","1330839867","1330839870","1330839879","1330839885"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/181ac217a19350b3a8a01e112a179d6d.jpg","text":"TemporaryFile(/tmp/multipartBody2951176342406058668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653043547,"filename":"image_23012025_18_22_25_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/54794dd95008600d7862a00c38f0526b.jpg","text":"TemporaryFile(/tmp/multipartBody8288624827226190103asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653043547,"filename":"image_23012025_18_22_30_5177.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ecb378cd0e657196f6fc86f0139a1759.jpg","text":"TemporaryFile(/tmp/multipartBody8380812888771428719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653043547,"filename":"image_23012025_18_22_36_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b5c848cb57494b61cee038e1a29659d4.jpg","text":"TemporaryFile(/tmp/multipartBody5260279947228950723asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653043547,"filename":"image_23012025_18_22_42_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f7ac621f810eea647ca1a5a8dc7f5a31.jpg","text":"TemporaryFile(/tmp/multipartBody6400106516746334975asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653043547,"filename":"image_23012025_18_22_48_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fb896ca37320b135b7e34edaa8fa4756.jpg","text":"TemporaryFile(/tmp/multipartBody247584898880883275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653043547,"filename":"image_23012025_18_22_55_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330839867","file1":"1330839862","file0":"1330839856","file4":"1330839879","file5":"1330839885","file3":"1330839870"},"map_files_photo_id_array":[{"photo_id":"1330839885","filename":"file5"},{"photo_id":"1330839867","filename":"file2"},{"photo_id":"1330839879","filename":"file4"},{"photo_id":"1330839862","filename":"file1"},{"photo_id":"1330839856","filename":"file0"},{"photo_id":"1330839870","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330839885":["hashtag1","hashtag2"]},{"1330839879":["hashtag1","hashtag2"]},{"1330839870":["hashtag1","hashtag2"]},{"1330839867":["hashtag1","hashtag2"]},{"1330839862":["hashtag1","hashtag2"]},{"1330839856":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330839885, 1330839879, 1330839870, 1330839867, 1330839862, 1330839856)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.29912042617798 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:24:03.363612
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/23/image_23012025_18_24_01_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/18/23/image_23012025_18_23_48_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/18/23/image_23012025_18_23_42_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/18/23/image_23012025_18_23_36_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/18/23/image_23012025_18_23_31_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/18/23/image_23012025_18_23_25_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/23/image_23012025_18_24_01_6189.jpg', '/home/nano/Desktop/images/23012025/18/23/image_23012025_18_23_48_6187.jpg', '/home/nano/Desktop/images/23012025/18/23/image_23012025_18_23_42_6188.jpg', '/home/nano/Desktop/images/23012025/18/23/image_23012025_18_23_36_5178.jpg', '/home/nano/Desktop/images/23012025/18/23/image_23012025_18_23_31_6188.jpg', '/home/nano/Desktop/images/23012025/18/23/image_23012025_18_23_25_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/23/image_23012025_18_24_01_6189.jpg
/home/nano/Desktop/images/23012025/18/23/image_23012025_18_23_48_6187.jpg
/home/nano/Desktop/images/23012025/18/23/image_23012025_18_23_42_6188.jpg
/home/nano/Desktop/images/23012025/18/23/image_23012025_18_23_36_5178.jpg
/home/nano/Desktop/images/23012025/18/23/image_23012025_18_23_31_6188.jpg
/home/nano/Desktop/images/23012025/18/23/image_23012025_18_23_25_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330839910","1330839930","1330839918","1330839926","1330839914","1330839922"],"photo_ids_order":["1330839910","1330839914","1330839918","1330839922","1330839926","1330839930"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e5c1d8c9cd61effa19019a826ccff116.jpg","text":"TemporaryFile(/tmp/multipartBody6450823536474544477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653103801,"filename":"image_23012025_18_24_01_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/32dec819b067109ad9c9ef6a21fc5ce6.jpg","text":"TemporaryFile(/tmp/multipartBody4234093102349002580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653103801,"filename":"image_23012025_18_23_25_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ebecbd44a6f3c0d248bc4f5d00ebc9e4.jpg","text":"TemporaryFile(/tmp/multipartBody8261729672792144275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653103801,"filename":"image_23012025_18_23_42_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e8d21f08fea5ddb0e256128622350f46.jpg","text":"TemporaryFile(/tmp/multipartBody1367545067076038359asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653103801,"filename":"image_23012025_18_23_31_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/564e87ecbfec0664827639348372989e.jpg","text":"TemporaryFile(/tmp/multipartBody1377677136319712200asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653103801,"filename":"image_23012025_18_23_48_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bf57993ac97e7c539d7bb27af31227c8.jpg","text":"TemporaryFile(/tmp/multipartBody1854325531523909250asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653103801,"filename":"image_23012025_18_23_36_5178.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330839918","file1":"1330839914","file0":"1330839910","file4":"1330839926","file5":"1330839930","file3":"1330839922"},"map_files_photo_id_array":[{"photo_id":"1330839930","filename":"file5"},{"photo_id":"1330839918","filename":"file2"},{"photo_id":"1330839926","filename":"file4"},{"photo_id":"1330839914","filename":"file1"},{"photo_id":"1330839910","filename":"file0"},{"photo_id":"1330839922","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330839910":["hashtag1","hashtag2"]},{"1330839930":["hashtag1","hashtag2"]},{"1330839918":["hashtag1","hashtag2"]},{"1330839926":["hashtag1","hashtag2"]},{"1330839914":["hashtag1","hashtag2"]},{"1330839922":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330839910, 1330839930, 1330839918, 1330839926, 1330839914, 1330839922)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.30480170249939 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:25:03.444204
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/24/image_23012025_18_24_54_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/18/24/image_23012025_18_24_48_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/18/24/image_23012025_18_24_42_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/18/24/image_23012025_18_24_37_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/18/24/image_23012025_18_24_31_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/18/24/image_23012025_18_24_24_6194.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/24/image_23012025_18_24_54_6189.jpg', '/home/nano/Desktop/images/23012025/18/24/image_23012025_18_24_48_6191.jpg', '/home/nano/Desktop/images/23012025/18/24/image_23012025_18_24_42_5181.jpg', '/home/nano/Desktop/images/23012025/18/24/image_23012025_18_24_37_6189.jpg', '/home/nano/Desktop/images/23012025/18/24/image_23012025_18_24_31_6189.jpg', '/home/nano/Desktop/images/23012025/18/24/image_23012025_18_24_24_6194.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/24/image_23012025_18_24_54_6189.jpg
/home/nano/Desktop/images/23012025/18/24/image_23012025_18_24_48_6191.jpg
/home/nano/Desktop/images/23012025/18/24/image_23012025_18_24_42_5181.jpg
/home/nano/Desktop/images/23012025/18/24/image_23012025_18_24_37_6189.jpg
/home/nano/Desktop/images/23012025/18/24/image_23012025_18_24_31_6189.jpg
/home/nano/Desktop/images/23012025/18/24/image_23012025_18_24_24_6194.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330839984","1330839987","1330840012","1330839979","1330839994","1330839973"],"photo_ids_order":["1330839973","1330839979","1330839984","1330839987","1330839994","1330840012"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d4c14fb2991d73d79fe1850b5fc3a655.jpg","text":"TemporaryFile(/tmp/multipartBody7994925687508479199asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653163899,"filename":"image_23012025_18_24_42_5181.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/313460e68c69f5494ffdab75f4033ae2.jpg","text":"TemporaryFile(/tmp/multipartBody4095267708381366092asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653163899,"filename":"image_23012025_18_24_37_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e9f3ebea47aacd4a62fdb2052068f4af.jpg","text":"TemporaryFile(/tmp/multipartBody2499825304788628029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653163899,"filename":"image_23012025_18_24_24_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/450247978227fa9f44cadd2481021a7e.jpg","text":"TemporaryFile(/tmp/multipartBody5450287615913196280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653163899,"filename":"image_23012025_18_24_48_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/81d286f3a46c4677f6bdc31c00c98e7d.jpg","text":"TemporaryFile(/tmp/multipartBody5338863730108723363asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653163899,"filename":"image_23012025_18_24_31_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4e10459b2fd9273586bf385df3d844e8.jpg","text":"TemporaryFile(/tmp/multipartBody8923077508857111842asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653163899,"filename":"image_23012025_18_24_54_6189.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330839984","file1":"1330839979","file0":"1330839973","file4":"1330839994","file5":"1330840012","file3":"1330839987"},"map_files_photo_id_array":[{"photo_id":"1330840012","filename":"file5"},{"photo_id":"1330839984","filename":"file2"},{"photo_id":"1330839994","filename":"file4"},{"photo_id":"1330839979","filename":"file1"},{"photo_id":"1330839973","filename":"file0"},{"photo_id":"1330839987","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330839984":["hashtag1","hashtag2"]},{"1330839987":["hashtag1","hashtag2"]},{"1330840012":["hashtag1","hashtag2"]},{"1330839979":["hashtag1","hashtag2"]},{"1330839994":["hashtag1","hashtag2"]},{"1330839973":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330839984, 1330839987, 1330840012, 1330839979, 1330839994, 1330839973)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.62834048271179 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:26:02.350836
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/25/image_23012025_18_25_54_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/18/25/image_23012025_18_25_48_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/18/25/image_23012025_18_25_42_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/18/25/image_23012025_18_25_37_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/18/25/image_23012025_18_25_31_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/18/25/image_23012025_18_25_24_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/25/image_23012025_18_25_54_6187.jpg', '/home/nano/Desktop/images/23012025/18/25/image_23012025_18_25_48_6192.jpg', '/home/nano/Desktop/images/23012025/18/25/image_23012025_18_25_42_5186.jpg', '/home/nano/Desktop/images/23012025/18/25/image_23012025_18_25_37_6192.jpg', '/home/nano/Desktop/images/23012025/18/25/image_23012025_18_25_31_6191.jpg', '/home/nano/Desktop/images/23012025/18/25/image_23012025_18_25_24_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/25/image_23012025_18_25_54_6187.jpg
/home/nano/Desktop/images/23012025/18/25/image_23012025_18_25_48_6192.jpg
/home/nano/Desktop/images/23012025/18/25/image_23012025_18_25_42_5186.jpg
/home/nano/Desktop/images/23012025/18/25/image_23012025_18_25_37_6192.jpg
/home/nano/Desktop/images/23012025/18/25/image_23012025_18_25_31_6191.jpg
/home/nano/Desktop/images/23012025/18/25/image_23012025_18_25_24_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330840075","1330840060","1330840057","1330840068","1330840070","1330840064"],"photo_ids_order":["1330840057","1330840060","1330840064","1330840068","1330840070","1330840075"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f95a30dcd7c55e24a34af82c73d108d9.jpg","text":"TemporaryFile(/tmp/multipartBody126430205319463181asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653222888,"filename":"image_23012025_18_25_24_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fcdb5e0b31f31edfaaa758fb2f22759f.jpg","text":"TemporaryFile(/tmp/multipartBody7525927435673024084asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653222888,"filename":"image_23012025_18_25_48_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f5e535dd434f8dbcec09b59a61dd08a5.jpg","text":"TemporaryFile(/tmp/multipartBody8695667078430506362asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653222888,"filename":"image_23012025_18_25_54_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2c0967ad2ece1b81c48a0c8c1cc7b0a0.jpg","text":"TemporaryFile(/tmp/multipartBody455952849483573606asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653222888,"filename":"image_23012025_18_25_37_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/dcaf75d0876be09adf35dbaee8594855.jpg","text":"TemporaryFile(/tmp/multipartBody2547788129578508902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653222888,"filename":"image_23012025_18_25_31_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f9ba15d18991964063ee8b9f0fa6fdea.jpg","text":"TemporaryFile(/tmp/multipartBody7792307706611066715asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653222888,"filename":"image_23012025_18_25_42_5186.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330840064","file1":"1330840060","file0":"1330840057","file4":"1330840070","file5":"1330840075","file3":"1330840068"},"map_files_photo_id_array":[{"photo_id":"1330840075","filename":"file5"},{"photo_id":"1330840064","filename":"file2"},{"photo_id":"1330840070","filename":"file4"},{"photo_id":"1330840060","filename":"file1"},{"photo_id":"1330840057","filename":"file0"},{"photo_id":"1330840068","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330840075":["hashtag1","hashtag2"]},{"1330840060":["hashtag1","hashtag2"]},{"1330840057":["hashtag1","hashtag2"]},{"1330840068":["hashtag1","hashtag2"]},{"1330840070":["hashtag1","hashtag2"]},{"1330840064":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330840075, 1330840060, 1330840057, 1330840068, 1330840070, 1330840064)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.434312105178833 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:27:02.561321
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/26/image_23012025_18_26_54_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/18/26/image_23012025_18_26_48_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/18/26/image_23012025_18_26_43_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/18/26/image_23012025_18_26_37_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/18/26/image_23012025_18_26_31_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/18/26/image_23012025_18_26_24_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/26/image_23012025_18_26_54_6193.jpg', '/home/nano/Desktop/images/23012025/18/26/image_23012025_18_26_48_5182.jpg', '/home/nano/Desktop/images/23012025/18/26/image_23012025_18_26_43_6196.jpg', '/home/nano/Desktop/images/23012025/18/26/image_23012025_18_26_37_6187.jpg', '/home/nano/Desktop/images/23012025/18/26/image_23012025_18_26_31_6187.jpg', '/home/nano/Desktop/images/23012025/18/26/image_23012025_18_26_24_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/26/image_23012025_18_26_54_6193.jpg
/home/nano/Desktop/images/23012025/18/26/image_23012025_18_26_48_5182.jpg
/home/nano/Desktop/images/23012025/18/26/image_23012025_18_26_43_6196.jpg
/home/nano/Desktop/images/23012025/18/26/image_23012025_18_26_37_6187.jpg
/home/nano/Desktop/images/23012025/18/26/image_23012025_18_26_31_6187.jpg
/home/nano/Desktop/images/23012025/18/26/image_23012025_18_26_24_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330840162","1330840120","1330840123","1330840126","1330840155","1330840128"],"photo_ids_order":["1330840120","1330840123","1330840126","1330840128","1330840155","1330840162"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/88a8fd3da5ab9c39836d4a4c39b3a61c.jpg","text":"TemporaryFile(/tmp/multipartBody9038501668230519674asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653282990,"filename":"image_23012025_18_26_24_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/944b930832470c2b437afc896b32740a.jpg","text":"TemporaryFile(/tmp/multipartBody5237727880796976822asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653282990,"filename":"image_23012025_18_26_54_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d19e32efece4ce73f3300ac428025294.jpg","text":"TemporaryFile(/tmp/multipartBody3841137376719174858asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653282990,"filename":"image_23012025_18_26_48_5182.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b1183d958a4398527d8530c328ccfeea.jpg","text":"TemporaryFile(/tmp/multipartBody7396047799050109912asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653282990,"filename":"image_23012025_18_26_43_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6f2a271bbe577b99bcd580ba2e2c5a70.jpg","text":"TemporaryFile(/tmp/multipartBody134470987640104690asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653282990,"filename":"image_23012025_18_26_31_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d88afacbe4eb6b3d71642ac4871cc6f8.jpg","text":"TemporaryFile(/tmp/multipartBody9119159897877679154asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653282990,"filename":"image_23012025_18_26_37_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330840126","file1":"1330840123","file0":"1330840120","file4":"1330840155","file5":"1330840162","file3":"1330840128"},"map_files_photo_id_array":[{"photo_id":"1330840162","filename":"file5"},{"photo_id":"1330840126","filename":"file2"},{"photo_id":"1330840155","filename":"file4"},{"photo_id":"1330840123","filename":"file1"},{"photo_id":"1330840120","filename":"file0"},{"photo_id":"1330840128","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330840162":["hashtag1","hashtag2"]},{"1330840120":["hashtag1","hashtag2"]},{"1330840123":["hashtag1","hashtag2"]},{"1330840126":["hashtag1","hashtag2"]},{"1330840155":["hashtag1","hashtag2"]},{"1330840128":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330840162, 1330840120, 1330840123, 1330840126, 1330840155, 1330840128)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.156479358673096 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:28:02.297639
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/27/image_23012025_18_27_54_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/18/27/image_23012025_18_27_48_5175.jpg', 2), ('/home/nano/Desktop/images/23012025/18/27/image_23012025_18_27_43_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/18/27/image_23012025_18_27_37_6185.jpg', 2), ('/home/nano/Desktop/images/23012025/18/27/image_23012025_18_27_30_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/18/27/image_23012025_18_27_24_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/27/image_23012025_18_27_54_6187.jpg', '/home/nano/Desktop/images/23012025/18/27/image_23012025_18_27_48_5175.jpg', '/home/nano/Desktop/images/23012025/18/27/image_23012025_18_27_43_6187.jpg', '/home/nano/Desktop/images/23012025/18/27/image_23012025_18_27_37_6185.jpg', '/home/nano/Desktop/images/23012025/18/27/image_23012025_18_27_30_6187.jpg', '/home/nano/Desktop/images/23012025/18/27/image_23012025_18_27_24_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/27/image_23012025_18_27_54_6187.jpg
/home/nano/Desktop/images/23012025/18/27/image_23012025_18_27_48_5175.jpg
/home/nano/Desktop/images/23012025/18/27/image_23012025_18_27_43_6187.jpg
/home/nano/Desktop/images/23012025/18/27/image_23012025_18_27_37_6185.jpg
/home/nano/Desktop/images/23012025/18/27/image_23012025_18_27_30_6187.jpg
/home/nano/Desktop/images/23012025/18/27/image_23012025_18_27_24_6195.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.2790522575378418 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:28:32.042952
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_54_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_48_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_43_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_37_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_30_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_24_6193.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_54_6197.jpg', '/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_48_5184.jpg', '/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_43_6190.jpg', '/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_37_6198.jpg', '/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_30_6193.jpg', '/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_24_6193.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_54_6197.jpg
/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_48_5184.jpg
/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_43_6190.jpg
/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_37_6198.jpg
/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_30_6193.jpg
/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_24_6193.jpg
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330840288","1330840261","1330840293","1330840284","1330840248","1330840295"],"photo_ids_order":["1330840248","1330840261","1330840284","1330840288","1330840293","1330840295"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f31e47ddfa3cd50ec5d7c98baae71b42.jpg","text":"TemporaryFile(/tmp/multipartBody176075281616316205asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653372648,"filename":"image_23012025_18_28_37_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bcafceedf8a4d8bbb748b3d3846540cf.jpg","text":"TemporaryFile(/tmp/multipartBody4175582401420299378asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653372648,"filename":"image_23012025_18_28_48_5184.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/751c5f6fe3786b37b0e6a88d017679ad.jpg","text":"TemporaryFile(/tmp/multipartBody8130889068009966525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653372648,"filename":"image_23012025_18_28_30_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4e38f77a91b5f68e20b2ab24bbc4c139.jpg","text":"TemporaryFile(/tmp/multipartBody8210703488672341093asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653372648,"filename":"image_23012025_18_28_43_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/67f86c9bef7c2b42aa5648448e11ab1a.jpg","text":"TemporaryFile(/tmp/multipartBody1154893840753096226asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653372648,"filename":"image_23012025_18_28_54_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/add1714388bed3e4e94e1da501eab8d4.jpg","text":"TemporaryFile(/tmp/multipartBody3605266688167978724asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653372648,"filename":"image_23012025_18_28_24_6193.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330840284","file1":"1330840261","file0":"1330840248","file4":"1330840293","file5":"1330840295","file3":"1330840288"},"map_files_photo_id_array":[{"photo_id":"1330840295","filename":"file5"},{"photo_id":"1330840284","filename":"file2"},{"photo_id":"1330840293","filename":"file4"},{"photo_id":"1330840261","filename":"file1"},{"photo_id":"1330840248","filename":"file0"},{"photo_id":"1330840288","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330840288":["hashtag1","hashtag2"]},{"1330840261":["hashtag1","hashtag2"]},{"1330840293":["hashtag1","hashtag2"]},{"1330840284":["hashtag1","hashtag2"]},{"1330840248":["hashtag1","hashtag2"]},{"1330840295":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330840288, 1330840261, 1330840293, 1330840284, 1330840248, 1330840295)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 28.828745365142822 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:29:03.172640
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_18_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_13_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_07_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/18/27/image_23012025_18_28_00_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/18/27/image_23012025_18_27_54_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/18/27/image_23012025_18_27_48_5175.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_18_5181.jpg', '/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_13_6187.jpg', '/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_07_6197.jpg', '/home/nano/Desktop/images/23012025/18/27/image_23012025_18_28_00_6188.jpg', '/home/nano/Desktop/images/23012025/18/27/image_23012025_18_27_54_6187.jpg', '/home/nano/Desktop/images/23012025/18/27/image_23012025_18_27_48_5175.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_18_5181.jpg
/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_13_6187.jpg
/home/nano/Desktop/images/23012025/18/28/image_23012025_18_28_07_6197.jpg
/home/nano/Desktop/images/23012025/18/27/image_23012025_18_28_00_6188.jpg
/home/nano/Desktop/images/23012025/18/27/image_23012025_18_27_54_6187.jpg
/home/nano/Desktop/images/23012025/18/27/image_23012025_18_27_48_5175.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330840378","1330840420","1330840413","1330840407","1330840391","1330840396"],"photo_ids_order":["1330840378","1330840391","1330840396","1330840407","1330840413","1330840420"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b45e73fe371a08e8e5d1789de6bfdbfc.jpg","text":"TemporaryFile(/tmp/multipartBody5594434689685740525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653403577,"filename":"image_23012025_18_28_18_5181.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/32281f1806beece5833488131d8c6460.jpg","text":"TemporaryFile(/tmp/multipartBody337240856100237918asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653403577,"filename":"image_23012025_18_27_48_5175.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a86c34f38d4350e763f83d6444a48689.jpg","text":"TemporaryFile(/tmp/multipartBody3937960356334536025asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653403577,"filename":"image_23012025_18_27_54_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b7085a1694bd6c30a2ad515b08d9db6f.jpg","text":"TemporaryFile(/tmp/multipartBody2619501759554257570asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653403577,"filename":"image_23012025_18_28_00_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b7df6a554522cd5c541fef1c72dc36cd.jpg","text":"TemporaryFile(/tmp/multipartBody9106101997556913770asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653403577,"filename":"image_23012025_18_28_13_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c4d130b5b1e5a252ad455708c75d9cbf.jpg","text":"TemporaryFile(/tmp/multipartBody6399653745353398523asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653403577,"filename":"image_23012025_18_28_07_6197.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330840396","file1":"1330840391","file0":"1330840378","file4":"1330840413","file5":"1330840420","file3":"1330840407"},"map_files_photo_id_array":[{"photo_id":"1330840420","filename":"file5"},{"photo_id":"1330840396","filename":"file2"},{"photo_id":"1330840413","filename":"file4"},{"photo_id":"1330840391","filename":"file1"},{"photo_id":"1330840378","filename":"file0"},{"photo_id":"1330840407","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330840378":["hashtag1","hashtag2"]},{"1330840420":["hashtag1","hashtag2"]},{"1330840413":["hashtag1","hashtag2"]},{"1330840407":["hashtag1","hashtag2"]},{"1330840391":["hashtag1","hashtag2"]},{"1330840396":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330840378, 1330840420, 1330840413, 1330840407, 1330840391, 1330840396)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.152344942092896 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:30:02.917316
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_54_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_49_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_43_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_36_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_30_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_24_5187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_54_5188.jpg', '/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_49_6193.jpg', '/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_43_6198.jpg', '/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_36_6192.jpg', '/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_30_6193.jpg', '/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_24_5187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_54_5188.jpg
/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_49_6193.jpg
/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_43_6198.jpg
/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_36_6192.jpg
/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_30_6193.jpg
/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_24_5187.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.4396069049835205 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:30:32.335750
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/30/image_23012025_18_30_54_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/18/30/image_23012025_18_30_49_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/18/30/image_23012025_18_30_43_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/18/30/image_23012025_18_30_30_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/18/30/image_23012025_18_30_24_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/18/30/image_23012025_18_30_19_6192.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/30/image_23012025_18_30_54_5184.jpg', '/home/nano/Desktop/images/23012025/18/30/image_23012025_18_30_49_6191.jpg', '/home/nano/Desktop/images/23012025/18/30/image_23012025_18_30_43_6203.jpg', '/home/nano/Desktop/images/23012025/18/30/image_23012025_18_30_30_6198.jpg', '/home/nano/Desktop/images/23012025/18/30/image_23012025_18_30_24_5186.jpg', '/home/nano/Desktop/images/23012025/18/30/image_23012025_18_30_19_6192.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/30/image_23012025_18_30_54_5184.jpg
/home/nano/Desktop/images/23012025/18/30/image_23012025_18_30_49_6191.jpg
/home/nano/Desktop/images/23012025/18/30/image_23012025_18_30_43_6203.jpg
/home/nano/Desktop/images/23012025/18/30/image_23012025_18_30_30_6198.jpg
/home/nano/Desktop/images/23012025/18/30/image_23012025_18_30_24_5186.jpg
/home/nano/Desktop/images/23012025/18/30/image_23012025_18_30_19_6192.jpg
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330840483","1330840497","1330840501","1330840493","1330840486","1330840489"],"photo_ids_order":["1330840483","1330840486","1330840489","1330840493","1330840497","1330840501"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/19d605e67950e9a58ab140e5e7615f69.jpg","text":"TemporaryFile(/tmp/multipartBody959723351009129978asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653492824,"filename":"image_23012025_18_30_54_5184.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/696a711b4aa93da04459fe2c3534e0a7.jpg","text":"TemporaryFile(/tmp/multipartBody3896819166201995022asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653492824,"filename":"image_23012025_18_30_24_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b567dafe1074f95c4ce2c6769c60caba.jpg","text":"TemporaryFile(/tmp/multipartBody4398188958125441697asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653492824,"filename":"image_23012025_18_30_19_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1e03c59707881fbacab3822b8bdea8c8.jpg","text":"TemporaryFile(/tmp/multipartBody7772470422777511139asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653492824,"filename":"image_23012025_18_30_30_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c009bf2f87d81b51dda63115595fa1f6.jpg","text":"TemporaryFile(/tmp/multipartBody8930917739876554591asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653492824,"filename":"image_23012025_18_30_49_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bfa94122359df1aa4210cf8d5582e92a.jpg","text":"TemporaryFile(/tmp/multipartBody3936955518553545409asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653492824,"filename":"image_23012025_18_30_43_6203.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330840489","file1":"1330840486","file0":"1330840483","file4":"1330840497","file5":"1330840501","file3":"1330840493"},"map_files_photo_id_array":[{"photo_id":"1330840501","filename":"file5"},{"photo_id":"1330840489","filename":"file2"},{"photo_id":"1330840497","filename":"file4"},{"photo_id":"1330840486","filename":"file1"},{"photo_id":"1330840483","filename":"file0"},{"photo_id":"1330840493","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330840483":["hashtag1","hashtag2"]},{"1330840497":["hashtag1","hashtag2"]},{"1330840501":["hashtag1","hashtag2"]},{"1330840493":["hashtag1","hashtag2"]},{"1330840486":["hashtag1","hashtag2"]},{"1330840489":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330840483, 1330840497, 1330840501, 1330840493, 1330840486, 1330840489)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.319735765457153 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:31:03.119859
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/30/image_23012025_18_30_13_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/18/30/image_23012025_18_30_06_6224.jpg', 2), ('/home/nano/Desktop/images/23012025/18/29/image_23012025_18_30_00_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_54_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_49_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_43_6198.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/30/image_23012025_18_30_13_6198.jpg', '/home/nano/Desktop/images/23012025/18/30/image_23012025_18_30_06_6224.jpg', '/home/nano/Desktop/images/23012025/18/29/image_23012025_18_30_00_6201.jpg', '/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_54_5188.jpg', '/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_49_6193.jpg', '/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_43_6198.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/30/image_23012025_18_30_13_6198.jpg
/home/nano/Desktop/images/23012025/18/30/image_23012025_18_30_06_6224.jpg
/home/nano/Desktop/images/23012025/18/29/image_23012025_18_30_00_6201.jpg
/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_54_5188.jpg
/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_49_6193.jpg
/home/nano/Desktop/images/23012025/18/29/image_23012025_18_29_43_6198.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330840603","1330840510","1330840516","1330840521","1330840707","1330840700"],"photo_ids_order":["1330840510","1330840516","1330840521","1330840603","1330840700","1330840707"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f7b556428072b7dce39227a5af729870.jpg","text":"TemporaryFile(/tmp/multipartBody2271711043738072089asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653523759,"filename":"image_23012025_18_29_54_5188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/37b0c88700b57c946dc0d6aae2be9dc2.jpg","text":"TemporaryFile(/tmp/multipartBody7531027701342204047asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653523759,"filename":"image_23012025_18_30_13_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bfbc126e3e07929cc14d049fb4169431.jpg","text":"TemporaryFile(/tmp/multipartBody3332860015170728912asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653523759,"filename":"image_23012025_18_30_06_6224.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/28f0e814254dd40a5669447824ea62cf.jpg","text":"TemporaryFile(/tmp/multipartBody2587423358349910275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653523759,"filename":"image_23012025_18_30_00_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/78bd7541ce3d3ec3205155e339c9c920.jpg","text":"TemporaryFile(/tmp/multipartBody5225011843342732991asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653523759,"filename":"image_23012025_18_29_43_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f9c41a31c35dbefb805d70a329b3d13c.jpg","text":"TemporaryFile(/tmp/multipartBody7560809502823306268asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653523759,"filename":"image_23012025_18_29_49_6193.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330840521","file1":"1330840516","file0":"1330840510","file4":"1330840700","file5":"1330840707","file3":"1330840603"},"map_files_photo_id_array":[{"photo_id":"1330840707","filename":"file5"},{"photo_id":"1330840521","filename":"file2"},{"photo_id":"1330840700","filename":"file4"},{"photo_id":"1330840516","filename":"file1"},{"photo_id":"1330840510","filename":"file0"},{"photo_id":"1330840603","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330840603":["hashtag1","hashtag2"]},{"1330840510":["hashtag1","hashtag2"]},{"1330840516":["hashtag1","hashtag2"]},{"1330840521":["hashtag1","hashtag2"]},{"1330840707":["hashtag1","hashtag2"]},{"1330840700":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330840603, 1330840510, 1330840516, 1330840521, 1330840707, 1330840700)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.662147521972656 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:32:03.126497
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/31/image_23012025_18_31_54_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/18/31/image_23012025_18_31_49_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/18/31/image_23012025_18_31_43_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/18/31/image_23012025_18_31_36_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/18/31/image_23012025_18_31_30_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/18/31/image_23012025_18_31_24_5183.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/31/image_23012025_18_31_54_5189.jpg', '/home/nano/Desktop/images/23012025/18/31/image_23012025_18_31_49_6199.jpg', '/home/nano/Desktop/images/23012025/18/31/image_23012025_18_31_43_6195.jpg', '/home/nano/Desktop/images/23012025/18/31/image_23012025_18_31_36_6192.jpg', '/home/nano/Desktop/images/23012025/18/31/image_23012025_18_31_30_6195.jpg', '/home/nano/Desktop/images/23012025/18/31/image_23012025_18_31_24_5183.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/31/image_23012025_18_31_54_5189.jpg
/home/nano/Desktop/images/23012025/18/31/image_23012025_18_31_49_6199.jpg
/home/nano/Desktop/images/23012025/18/31/image_23012025_18_31_43_6195.jpg
/home/nano/Desktop/images/23012025/18/31/image_23012025_18_31_36_6192.jpg
/home/nano/Desktop/images/23012025/18/31/image_23012025_18_31_30_6195.jpg
/home/nano/Desktop/images/23012025/18/31/image_23012025_18_31_24_5183.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330840987","1330840972","1330840940","1330840993","1330840975","1330840999"],"photo_ids_order":["1330840940","1330840972","1330840975","1330840987","1330840993","1330840999"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e3aa97f63dc26e365d2e400b26205d32.jpg","text":"TemporaryFile(/tmp/multipartBody6658689306706950040asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653583774,"filename":"image_23012025_18_31_36_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/373f8bc227646cffa981f219728633c8.jpg","text":"TemporaryFile(/tmp/multipartBody6067479940828004356asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653583774,"filename":"image_23012025_18_31_49_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/dda960c8d62f39583f788548d6b8d83c.jpg","text":"TemporaryFile(/tmp/multipartBody8388070851146841816asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653583774,"filename":"image_23012025_18_31_54_5189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6200f717ead2eb5ac307846e37a6a94a.jpg","text":"TemporaryFile(/tmp/multipartBody4824272683691728776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653583774,"filename":"image_23012025_18_31_30_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b547b74ea1accdf3064def2af7692f83.jpg","text":"TemporaryFile(/tmp/multipartBody396478599720892734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653583774,"filename":"image_23012025_18_31_43_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/751a699e0277fe63fc508f4dced1a215.jpg","text":"TemporaryFile(/tmp/multipartBody2566837235836430738asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653583774,"filename":"image_23012025_18_31_24_5183.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330840975","file1":"1330840972","file0":"1330840940","file4":"1330840993","file5":"1330840999","file3":"1330840987"},"map_files_photo_id_array":[{"photo_id":"1330840999","filename":"file5"},{"photo_id":"1330840975","filename":"file2"},{"photo_id":"1330840993","filename":"file4"},{"photo_id":"1330840972","filename":"file1"},{"photo_id":"1330840940","filename":"file0"},{"photo_id":"1330840987","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330840987":["hashtag1","hashtag2"]},{"1330840972":["hashtag1","hashtag2"]},{"1330840940":["hashtag1","hashtag2"]},{"1330840993":["hashtag1","hashtag2"]},{"1330840975":["hashtag1","hashtag2"]},{"1330840999":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330840987, 1330840972, 1330840940, 1330840993, 1330840975, 1330840999)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.93948721885681 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:33:03.255429
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/32/image_23012025_18_32_54_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/18/32/image_23012025_18_32_49_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/18/32/image_23012025_18_32_43_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/18/32/image_23012025_18_32_36_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/32/image_23012025_18_32_30_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/18/32/image_23012025_18_32_24_5185.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/32/image_23012025_18_32_54_5178.jpg', '/home/nano/Desktop/images/23012025/18/32/image_23012025_18_32_49_6187.jpg', '/home/nano/Desktop/images/23012025/18/32/image_23012025_18_32_43_6186.jpg', '/home/nano/Desktop/images/23012025/18/32/image_23012025_18_32_36_6190.jpg', '/home/nano/Desktop/images/23012025/18/32/image_23012025_18_32_30_6195.jpg', '/home/nano/Desktop/images/23012025/18/32/image_23012025_18_32_24_5185.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/32/image_23012025_18_32_54_5178.jpg
/home/nano/Desktop/images/23012025/18/32/image_23012025_18_32_49_6187.jpg
/home/nano/Desktop/images/23012025/18/32/image_23012025_18_32_43_6186.jpg
/home/nano/Desktop/images/23012025/18/32/image_23012025_18_32_36_6190.jpg
/home/nano/Desktop/images/23012025/18/32/image_23012025_18_32_30_6195.jpg
/home/nano/Desktop/images/23012025/18/32/image_23012025_18_32_24_5185.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330841084","1330841078","1330841072","1330841075","1330841060","1330841080"],"photo_ids_order":["1330841060","1330841072","1330841075","1330841078","1330841080","1330841084"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2f5a21f6a254b41c5a58db488c48317f.jpg","text":"TemporaryFile(/tmp/multipartBody6036438058616258935asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653643718,"filename":"image_23012025_18_32_24_5185.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/59e6cc74a6f526c6a44efe39d684c305.jpg","text":"TemporaryFile(/tmp/multipartBody7492323190430269593asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653643718,"filename":"image_23012025_18_32_36_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a81356e9fa4374b72dd9df0edba09565.jpg","text":"TemporaryFile(/tmp/multipartBody8621205307982788981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653643718,"filename":"image_23012025_18_32_49_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0ad6802872233f5784408d576026793b.jpg","text":"TemporaryFile(/tmp/multipartBody5945085915840161406asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653643718,"filename":"image_23012025_18_32_43_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/02c8d7ab66677177f5abbded2fb0df0f.jpg","text":"TemporaryFile(/tmp/multipartBody177911359935851221asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653643718,"filename":"image_23012025_18_32_54_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0460366b44b8bd2481accdce501d361c.jpg","text":"TemporaryFile(/tmp/multipartBody642602651515458543asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653643718,"filename":"image_23012025_18_32_30_6195.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330841075","file1":"1330841072","file0":"1330841060","file4":"1330841080","file5":"1330841084","file3":"1330841078"},"map_files_photo_id_array":[{"photo_id":"1330841084","filename":"file5"},{"photo_id":"1330841075","filename":"file2"},{"photo_id":"1330841080","filename":"file4"},{"photo_id":"1330841072","filename":"file1"},{"photo_id":"1330841060","filename":"file0"},{"photo_id":"1330841078","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330841084":["hashtag1","hashtag2"]},{"1330841078":["hashtag1","hashtag2"]},{"1330841072":["hashtag1","hashtag2"]},{"1330841075":["hashtag1","hashtag2"]},{"1330841060":["hashtag1","hashtag2"]},{"1330841080":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330841084, 1330841078, 1330841072, 1330841075, 1330841060, 1330841080)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.570264101028442 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:34:03.383286
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/33/image_23012025_18_34_00_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/33/image_23012025_18_33_49_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/18/33/image_23012025_18_33_42_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/18/33/image_23012025_18_33_36_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/18/33/image_23012025_18_33_30_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/18/33/image_23012025_18_33_25_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/33/image_23012025_18_34_00_5190.jpg', '/home/nano/Desktop/images/23012025/18/33/image_23012025_18_33_49_6197.jpg', '/home/nano/Desktop/images/23012025/18/33/image_23012025_18_33_42_6199.jpg', '/home/nano/Desktop/images/23012025/18/33/image_23012025_18_33_36_6204.jpg', '/home/nano/Desktop/images/23012025/18/33/image_23012025_18_33_30_5186.jpg', '/home/nano/Desktop/images/23012025/18/33/image_23012025_18_33_25_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/33/image_23012025_18_34_00_5190.jpg
/home/nano/Desktop/images/23012025/18/33/image_23012025_18_33_49_6197.jpg
/home/nano/Desktop/images/23012025/18/33/image_23012025_18_33_42_6199.jpg
/home/nano/Desktop/images/23012025/18/33/image_23012025_18_33_36_6204.jpg
/home/nano/Desktop/images/23012025/18/33/image_23012025_18_33_30_5186.jpg
/home/nano/Desktop/images/23012025/18/33/image_23012025_18_33_25_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330841113","1330841136","1330841145","1330841109","1330841117","1330841131"],"photo_ids_order":["1330841109","1330841113","1330841117","1330841131","1330841136","1330841145"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/93fe56dbc231b69701eb5a0bcb3bfadf.jpg","text":"TemporaryFile(/tmp/multipartBody7970616651474369801asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653704048,"filename":"image_23012025_18_33_49_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/eb3761a7688a711340fc69ee9d2a961f.jpg","text":"TemporaryFile(/tmp/multipartBody938129507698165779asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653704048,"filename":"image_23012025_18_33_30_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6296210577d7ba9db2d6c4117fac638f.jpg","text":"TemporaryFile(/tmp/multipartBody9113130302244955140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653704048,"filename":"image_23012025_18_33_25_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1d2455bf7977b53260290cecff6b96d8.jpg","text":"TemporaryFile(/tmp/multipartBody8338953685442197358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653704048,"filename":"image_23012025_18_34_00_5190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/81990061ed8b05ba633456a7871d53b6.jpg","text":"TemporaryFile(/tmp/multipartBody7167256684282640256asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653704048,"filename":"image_23012025_18_33_42_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fff04596cea3261ad278a5b61917d157.jpg","text":"TemporaryFile(/tmp/multipartBody5328224168237003345asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653704048,"filename":"image_23012025_18_33_36_6204.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330841117","file1":"1330841113","file0":"1330841109","file4":"1330841136","file5":"1330841145","file3":"1330841131"},"map_files_photo_id_array":[{"photo_id":"1330841145","filename":"file5"},{"photo_id":"1330841117","filename":"file2"},{"photo_id":"1330841136","filename":"file4"},{"photo_id":"1330841113","filename":"file1"},{"photo_id":"1330841109","filename":"file0"},{"photo_id":"1330841131","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330841113":["hashtag1","hashtag2"]},{"1330841136":["hashtag1","hashtag2"]},{"1330841145":["hashtag1","hashtag2"]},{"1330841109":["hashtag1","hashtag2"]},{"1330841117":["hashtag1","hashtag2"]},{"1330841131":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330841113, 1330841136, 1330841145, 1330841109, 1330841117, 1330841131)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.491360187530518 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:35:02.319531
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/34/image_23012025_18_34_49_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/18/34/image_23012025_18_34_42_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/18/34/image_23012025_18_34_36_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/18/34/image_23012025_18_34_30_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/18/34/image_23012025_18_34_19_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/18/34/image_23012025_18_34_06_6215.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/34/image_23012025_18_34_49_6195.jpg', '/home/nano/Desktop/images/23012025/18/34/image_23012025_18_34_42_6195.jpg', '/home/nano/Desktop/images/23012025/18/34/image_23012025_18_34_36_6198.jpg', '/home/nano/Desktop/images/23012025/18/34/image_23012025_18_34_30_5185.jpg', '/home/nano/Desktop/images/23012025/18/34/image_23012025_18_34_19_6200.jpg', '/home/nano/Desktop/images/23012025/18/34/image_23012025_18_34_06_6215.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/34/image_23012025_18_34_49_6195.jpg
/home/nano/Desktop/images/23012025/18/34/image_23012025_18_34_42_6195.jpg
/home/nano/Desktop/images/23012025/18/34/image_23012025_18_34_36_6198.jpg
/home/nano/Desktop/images/23012025/18/34/image_23012025_18_34_30_5185.jpg
/home/nano/Desktop/images/23012025/18/34/image_23012025_18_34_19_6200.jpg
/home/nano/Desktop/images/23012025/18/34/image_23012025_18_34_06_6215.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330841298","1330841302","1330841211","1330841208","1330841231","1330841309"],"photo_ids_order":["1330841208","1330841211","1330841231","1330841298","1330841302","1330841309"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/df8acd689a310c085ab8e34df3f3394e.jpg","text":"TemporaryFile(/tmp/multipartBody335465532040881246asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653762934,"filename":"image_23012025_18_34_30_5185.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4e403a3464fad412b1ab3072ffda1592.jpg","text":"TemporaryFile(/tmp/multipartBody4885283245590532319asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653762934,"filename":"image_23012025_18_34_19_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/019beeb942043748019843b3c18743c8.jpg","text":"TemporaryFile(/tmp/multipartBody6149429644199840715asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653762934,"filename":"image_23012025_18_34_42_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0f8a396497097c9b8a6f8884225f0a3e.jpg","text":"TemporaryFile(/tmp/multipartBody6878861669135532350asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653762934,"filename":"image_23012025_18_34_49_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/473cd88dba1e455f37ea9121d048daba.jpg","text":"TemporaryFile(/tmp/multipartBody2348229599225084777asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653762934,"filename":"image_23012025_18_34_36_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/04d6dea67c993a05bb64938e2637cf55.jpg","text":"TemporaryFile(/tmp/multipartBody8008956248585861348asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653762934,"filename":"image_23012025_18_34_06_6215.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330841231","file1":"1330841211","file0":"1330841208","file4":"1330841302","file5":"1330841309","file3":"1330841298"},"map_files_photo_id_array":[{"photo_id":"1330841309","filename":"file5"},{"photo_id":"1330841231","filename":"file2"},{"photo_id":"1330841302","filename":"file4"},{"photo_id":"1330841211","filename":"file1"},{"photo_id":"1330841208","filename":"file0"},{"photo_id":"1330841298","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330841298":["hashtag1","hashtag2"]},{"1330841302":["hashtag1","hashtag2"]},{"1330841211":["hashtag1","hashtag2"]},{"1330841208":["hashtag1","hashtag2"]},{"1330841231":["hashtag1","hashtag2"]},{"1330841309":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330841298, 1330841302, 1330841211, 1330841208, 1330841231, 1330841309)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.19778513908386 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:36:02.580343
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/35/image_23012025_18_35_55_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/18/35/image_23012025_18_35_49_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/18/35/image_23012025_18_35_42_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/18/35/image_23012025_18_35_36_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/18/35/image_23012025_18_35_30_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/18/35/image_23012025_18_35_25_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/35/image_23012025_18_35_55_6187.jpg', '/home/nano/Desktop/images/23012025/18/35/image_23012025_18_35_49_6188.jpg', '/home/nano/Desktop/images/23012025/18/35/image_23012025_18_35_42_6188.jpg', '/home/nano/Desktop/images/23012025/18/35/image_23012025_18_35_36_6189.jpg', '/home/nano/Desktop/images/23012025/18/35/image_23012025_18_35_30_5178.jpg', '/home/nano/Desktop/images/23012025/18/35/image_23012025_18_35_25_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/35/image_23012025_18_35_55_6187.jpg
/home/nano/Desktop/images/23012025/18/35/image_23012025_18_35_49_6188.jpg
/home/nano/Desktop/images/23012025/18/35/image_23012025_18_35_42_6188.jpg
/home/nano/Desktop/images/23012025/18/35/image_23012025_18_35_36_6189.jpg
/home/nano/Desktop/images/23012025/18/35/image_23012025_18_35_30_5178.jpg
/home/nano/Desktop/images/23012025/18/35/image_23012025_18_35_25_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330841407","1330841421","1330841415","1330841403","1330841399","1330841411"],"photo_ids_order":["1330841399","1330841403","1330841407","1330841411","1330841415","1330841421"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a4c503433ce97cc164132883c137aaed.jpg","text":"TemporaryFile(/tmp/multipartBody5965556815241952674asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653823014,"filename":"image_23012025_18_35_42_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/49b3e14e52eeab0d3eaabd7d14a4dd5a.jpg","text":"TemporaryFile(/tmp/multipartBody2464962923806622803asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653823014,"filename":"image_23012025_18_35_25_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cd302e9b25e47e6d0ef1314f322724a9.jpg","text":"TemporaryFile(/tmp/multipartBody6924013025956571820asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653823014,"filename":"image_23012025_18_35_30_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/437fdc9f98e36e8ce717c506b37a1ac4.jpg","text":"TemporaryFile(/tmp/multipartBody304650349529970681asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653823014,"filename":"image_23012025_18_35_49_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1d777df4464315ed46ebe720faefb2ee.jpg","text":"TemporaryFile(/tmp/multipartBody7361956443690527204asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653823014,"filename":"image_23012025_18_35_55_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/454a1b43491c55c710c70b84776a4c34.jpg","text":"TemporaryFile(/tmp/multipartBody6891784753186671232asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653823014,"filename":"image_23012025_18_35_36_6189.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330841407","file1":"1330841403","file0":"1330841399","file4":"1330841415","file5":"1330841421","file3":"1330841411"},"map_files_photo_id_array":[{"photo_id":"1330841421","filename":"file5"},{"photo_id":"1330841407","filename":"file2"},{"photo_id":"1330841415","filename":"file4"},{"photo_id":"1330841403","filename":"file1"},{"photo_id":"1330841399","filename":"file0"},{"photo_id":"1330841411","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330841407":["hashtag1","hashtag2"]},{"1330841421":["hashtag1","hashtag2"]},{"1330841415":["hashtag1","hashtag2"]},{"1330841403":["hashtag1","hashtag2"]},{"1330841399":["hashtag1","hashtag2"]},{"1330841411":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330841407, 1330841421, 1330841415, 1330841403, 1330841399, 1330841411)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.143452167510986 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:37:02.796036
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/36/image_23012025_18_36_55_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/18/36/image_23012025_18_36_48_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/18/36/image_23012025_18_36_42_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/18/36/image_23012025_18_36_36_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/18/36/image_23012025_18_36_31_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/18/36/image_23012025_18_36_25_6190.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/36/image_23012025_18_36_55_6186.jpg', '/home/nano/Desktop/images/23012025/18/36/image_23012025_18_36_48_6187.jpg', '/home/nano/Desktop/images/23012025/18/36/image_23012025_18_36_42_6191.jpg', '/home/nano/Desktop/images/23012025/18/36/image_23012025_18_36_36_5178.jpg', '/home/nano/Desktop/images/23012025/18/36/image_23012025_18_36_31_6194.jpg', '/home/nano/Desktop/images/23012025/18/36/image_23012025_18_36_25_6190.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/36/image_23012025_18_36_55_6186.jpg
/home/nano/Desktop/images/23012025/18/36/image_23012025_18_36_48_6187.jpg
/home/nano/Desktop/images/23012025/18/36/image_23012025_18_36_42_6191.jpg
/home/nano/Desktop/images/23012025/18/36/image_23012025_18_36_36_5178.jpg
/home/nano/Desktop/images/23012025/18/36/image_23012025_18_36_31_6194.jpg
/home/nano/Desktop/images/23012025/18/36/image_23012025_18_36_25_6190.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330841493","1330841451","1330841489","1330841498","1330841464","1330841458"],"photo_ids_order":["1330841451","1330841458","1330841464","1330841489","1330841493","1330841498"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d5aee3e3b0cd18abe20bcefaadb03ffb.jpg","text":"TemporaryFile(/tmp/multipartBody3596212139180074218asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653883196,"filename":"image_23012025_18_36_31_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/08d59ead3cc866e656940d96333fb730.jpg","text":"TemporaryFile(/tmp/multipartBody1309353066787964941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653883196,"filename":"image_23012025_18_36_55_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/86150571100f785ffdac7a36109b4218.jpg","text":"TemporaryFile(/tmp/multipartBody4182289722090846784asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653883196,"filename":"image_23012025_18_36_36_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1d42fff170a3ddd4a85cb514065277b3.jpg","text":"TemporaryFile(/tmp/multipartBody9164879055916107752asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653883196,"filename":"image_23012025_18_36_25_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5202ea201427e5d299934987d22adfe3.jpg","text":"TemporaryFile(/tmp/multipartBody1967199337498441407asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653883196,"filename":"image_23012025_18_36_42_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8801c289b299a0cce4efaa5fbc9bd5a3.jpg","text":"TemporaryFile(/tmp/multipartBody7374156954664372830asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653883196,"filename":"image_23012025_18_36_48_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330841464","file1":"1330841458","file0":"1330841451","file4":"1330841493","file5":"1330841498","file3":"1330841489"},"map_files_photo_id_array":[{"photo_id":"1330841498","filename":"file5"},{"photo_id":"1330841464","filename":"file2"},{"photo_id":"1330841493","filename":"file4"},{"photo_id":"1330841458","filename":"file1"},{"photo_id":"1330841451","filename":"file0"},{"photo_id":"1330841489","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330841493":["hashtag1","hashtag2"]},{"1330841451":["hashtag1","hashtag2"]},{"1330841489":["hashtag1","hashtag2"]},{"1330841498":["hashtag1","hashtag2"]},{"1330841464":["hashtag1","hashtag2"]},{"1330841458":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330841493, 1330841451, 1330841489, 1330841498, 1330841464, 1330841458)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.112849712371826 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:38:02.708819
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/37/image_23012025_18_37_55_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/37/image_23012025_18_37_49_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/18/37/image_23012025_18_37_42_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/18/37/image_23012025_18_37_36_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/18/37/image_23012025_18_37_30_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/18/37/image_23012025_18_37_25_6193.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/37/image_23012025_18_37_55_6190.jpg', '/home/nano/Desktop/images/23012025/18/37/image_23012025_18_37_49_6191.jpg', '/home/nano/Desktop/images/23012025/18/37/image_23012025_18_37_42_6189.jpg', '/home/nano/Desktop/images/23012025/18/37/image_23012025_18_37_36_6203.jpg', '/home/nano/Desktop/images/23012025/18/37/image_23012025_18_37_30_5179.jpg', '/home/nano/Desktop/images/23012025/18/37/image_23012025_18_37_25_6193.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/37/image_23012025_18_37_55_6190.jpg
/home/nano/Desktop/images/23012025/18/37/image_23012025_18_37_49_6191.jpg
/home/nano/Desktop/images/23012025/18/37/image_23012025_18_37_42_6189.jpg
/home/nano/Desktop/images/23012025/18/37/image_23012025_18_37_36_6203.jpg
/home/nano/Desktop/images/23012025/18/37/image_23012025_18_37_30_5179.jpg
/home/nano/Desktop/images/23012025/18/37/image_23012025_18_37_25_6193.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330841556","1330841547","1330841567","1330841561","1330841540","1330841552"],"photo_ids_order":["1330841540","1330841547","1330841552","1330841556","1330841561","1330841567"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/08c50de17f038f1d40db63df0bcebf6f.jpg","text":"TemporaryFile(/tmp/multipartBody8596968161768440479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653943187,"filename":"image_23012025_18_37_36_6203.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5c3dc8f287b1c6be28210319728a52d4.jpg","text":"TemporaryFile(/tmp/multipartBody5156749698576372538asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653943187,"filename":"image_23012025_18_37_49_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e1e925cc4eb056a85b9afcfcf3fb2831.jpg","text":"TemporaryFile(/tmp/multipartBody6016974282708698846asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653943187,"filename":"image_23012025_18_37_25_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/34c63a4dea2a4f4f3bf512c91690e560.jpg","text":"TemporaryFile(/tmp/multipartBody2053405525652190235asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653943187,"filename":"image_23012025_18_37_30_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3ef6bdcd40147a638e52f48f60d2cee3.jpg","text":"TemporaryFile(/tmp/multipartBody8343692297920590428asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653943187,"filename":"image_23012025_18_37_55_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/70040481a39f6c67057643a9597171cc.jpg","text":"TemporaryFile(/tmp/multipartBody588623607583831802asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737653943187,"filename":"image_23012025_18_37_42_6189.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330841552","file1":"1330841547","file0":"1330841540","file4":"1330841561","file5":"1330841567","file3":"1330841556"},"map_files_photo_id_array":[{"photo_id":"1330841567","filename":"file5"},{"photo_id":"1330841552","filename":"file2"},{"photo_id":"1330841561","filename":"file4"},{"photo_id":"1330841547","filename":"file1"},{"photo_id":"1330841540","filename":"file0"},{"photo_id":"1330841556","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330841556":["hashtag1","hashtag2"]},{"1330841547":["hashtag1","hashtag2"]},{"1330841567":["hashtag1","hashtag2"]},{"1330841561":["hashtag1","hashtag2"]},{"1330841540":["hashtag1","hashtag2"]},{"1330841552":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330841556, 1330841547, 1330841567, 1330841561, 1330841540, 1330841552)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.751495838165283 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:39:03.352011
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/38/image_23012025_18_38_55_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/18/38/image_23012025_18_38_49_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/18/38/image_23012025_18_38_42_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/18/38/image_23012025_18_38_36_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/18/38/image_23012025_18_38_25_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/18/38/image_23012025_18_38_19_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/38/image_23012025_18_38_55_6195.jpg', '/home/nano/Desktop/images/23012025/18/38/image_23012025_18_38_49_6191.jpg', '/home/nano/Desktop/images/23012025/18/38/image_23012025_18_38_42_6194.jpg', '/home/nano/Desktop/images/23012025/18/38/image_23012025_18_38_36_6199.jpg', '/home/nano/Desktop/images/23012025/18/38/image_23012025_18_38_25_6196.jpg', '/home/nano/Desktop/images/23012025/18/38/image_23012025_18_38_19_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/38/image_23012025_18_38_55_6195.jpg
/home/nano/Desktop/images/23012025/18/38/image_23012025_18_38_49_6191.jpg
/home/nano/Desktop/images/23012025/18/38/image_23012025_18_38_42_6194.jpg
/home/nano/Desktop/images/23012025/18/38/image_23012025_18_38_36_6199.jpg
/home/nano/Desktop/images/23012025/18/38/image_23012025_18_38_25_6196.jpg
/home/nano/Desktop/images/23012025/18/38/image_23012025_18_38_19_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330841611","1330841605","1330841598","1330841603","1330841615","1330841609"],"photo_ids_order":["1330841598","1330841603","1330841605","1330841609","1330841611","1330841615"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/88a778054496650e9508f325a35f7535.jpg","text":"TemporaryFile(/tmp/multipartBody6424662059005562134asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654003887,"filename":"image_23012025_18_38_25_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/16b82b6b02d7f2740efa3acde1b02506.jpg","text":"TemporaryFile(/tmp/multipartBody4822532839951788898asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654003887,"filename":"image_23012025_18_38_42_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2ff5693f797f888ab091a8fdd8b6b81c.jpg","text":"TemporaryFile(/tmp/multipartBody3475189163888249793asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654003887,"filename":"image_23012025_18_38_55_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f58d6c5eaf76f098a539baa11b465287.jpg","text":"TemporaryFile(/tmp/multipartBody6388505407095984711asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654003887,"filename":"image_23012025_18_38_49_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e2003f0eee8c7a063df2d08dea0cf81d.jpg","text":"TemporaryFile(/tmp/multipartBody8503547677685162374asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654003887,"filename":"image_23012025_18_38_19_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4e3c38b1a21753e21fa38590d6688872.jpg","text":"TemporaryFile(/tmp/multipartBody5822037137213154571asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654003887,"filename":"image_23012025_18_38_36_6199.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330841605","file1":"1330841603","file0":"1330841598","file4":"1330841611","file5":"1330841615","file3":"1330841609"},"map_files_photo_id_array":[{"photo_id":"1330841615","filename":"file5"},{"photo_id":"1330841605","filename":"file2"},{"photo_id":"1330841611","filename":"file4"},{"photo_id":"1330841603","filename":"file1"},{"photo_id":"1330841598","filename":"file0"},{"photo_id":"1330841609","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330841611":["hashtag1","hashtag2"]},{"1330841605":["hashtag1","hashtag2"]},{"1330841598":["hashtag1","hashtag2"]},{"1330841603":["hashtag1","hashtag2"]},{"1330841615":["hashtag1","hashtag2"]},{"1330841609":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330841611, 1330841605, 1330841598, 1330841603, 1330841615, 1330841609)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.233691692352295 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:40:02.919480
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/39/image_23012025_18_39_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/18/39/image_23012025_18_39_49_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/18/39/image_23012025_18_39_42_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/18/39/image_23012025_18_39_36_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/18/39/image_23012025_18_39_30_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/18/39/image_23012025_18_39_25_6191.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/39/image_23012025_18_39_55_6188.jpg', '/home/nano/Desktop/images/23012025/18/39/image_23012025_18_39_49_6187.jpg', '/home/nano/Desktop/images/23012025/18/39/image_23012025_18_39_42_6193.jpg', '/home/nano/Desktop/images/23012025/18/39/image_23012025_18_39_36_6198.jpg', '/home/nano/Desktop/images/23012025/18/39/image_23012025_18_39_30_5184.jpg', '/home/nano/Desktop/images/23012025/18/39/image_23012025_18_39_25_6191.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/39/image_23012025_18_39_55_6188.jpg
/home/nano/Desktop/images/23012025/18/39/image_23012025_18_39_49_6187.jpg
/home/nano/Desktop/images/23012025/18/39/image_23012025_18_39_42_6193.jpg
/home/nano/Desktop/images/23012025/18/39/image_23012025_18_39_36_6198.jpg
/home/nano/Desktop/images/23012025/18/39/image_23012025_18_39_30_5184.jpg
/home/nano/Desktop/images/23012025/18/39/image_23012025_18_39_25_6191.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.3513009548187256 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:40:32.366188
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/40/image_23012025_18_40_55_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/18/40/image_23012025_18_40_48_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/18/40/image_23012025_18_40_36_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/18/40/image_23012025_18_40_25_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/18/40/image_23012025_18_40_19_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/18/40/image_23012025_18_40_12_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/40/image_23012025_18_40_55_6198.jpg', '/home/nano/Desktop/images/23012025/18/40/image_23012025_18_40_48_6195.jpg', '/home/nano/Desktop/images/23012025/18/40/image_23012025_18_40_36_6203.jpg', '/home/nano/Desktop/images/23012025/18/40/image_23012025_18_40_25_6192.jpg', '/home/nano/Desktop/images/23012025/18/40/image_23012025_18_40_19_6187.jpg', '/home/nano/Desktop/images/23012025/18/40/image_23012025_18_40_12_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/40/image_23012025_18_40_55_6198.jpg
/home/nano/Desktop/images/23012025/18/40/image_23012025_18_40_48_6195.jpg
/home/nano/Desktop/images/23012025/18/40/image_23012025_18_40_36_6203.jpg
/home/nano/Desktop/images/23012025/18/40/image_23012025_18_40_25_6192.jpg
/home/nano/Desktop/images/23012025/18/40/image_23012025_18_40_19_6187.jpg
/home/nano/Desktop/images/23012025/18/40/image_23012025_18_40_12_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330841722","1330841763","1330841745","1330841739","1330841726","1330841752"],"photo_ids_order":["1330841722","1330841726","1330841739","1330841745","1330841752","1330841763"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4efed517abd7da87561b73ffd60f0218.jpg","text":"TemporaryFile(/tmp/multipartBody7754475954169152313asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654092853,"filename":"image_23012025_18_40_55_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0d7369241c417646e61c81aecc5cf95c.jpg","text":"TemporaryFile(/tmp/multipartBody5119057685154890738asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654092853,"filename":"image_23012025_18_40_12_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d827325bb037032d3314083edeea697c.jpg","text":"TemporaryFile(/tmp/multipartBody9214391264548405203asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654092853,"filename":"image_23012025_18_40_25_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1c0f8b4afc07d7f63c6a52527128da08.jpg","text":"TemporaryFile(/tmp/multipartBody1714429819184948110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654092853,"filename":"image_23012025_18_40_36_6203.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fad758d44ef210ff291cb2087ab1eb15.jpg","text":"TemporaryFile(/tmp/multipartBody5854409830821594019asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654092853,"filename":"image_23012025_18_40_48_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d95256cfe0bf097b79d3a1df9227d9a5.jpg","text":"TemporaryFile(/tmp/multipartBody8529709484923710381asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654092853,"filename":"image_23012025_18_40_19_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330841739","file1":"1330841726","file0":"1330841722","file4":"1330841752","file5":"1330841763","file3":"1330841745"},"map_files_photo_id_array":[{"photo_id":"1330841763","filename":"file5"},{"photo_id":"1330841739","filename":"file2"},{"photo_id":"1330841752","filename":"file4"},{"photo_id":"1330841726","filename":"file1"},{"photo_id":"1330841722","filename":"file0"},{"photo_id":"1330841745","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330841722":["hashtag1","hashtag2"]},{"1330841763":["hashtag1","hashtag2"]},{"1330841745":["hashtag1","hashtag2"]},{"1330841739":["hashtag1","hashtag2"]},{"1330841726":["hashtag1","hashtag2"]},{"1330841752":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330841722, 1330841763, 1330841745, 1330841739, 1330841726, 1330841752)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.569729566574097 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:41:32.455139
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/41/image_23012025_18_41_42_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/18/41/image_23012025_18_41_31_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/18/41/image_23012025_18_41_25_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/18/41/image_23012025_18_41_18_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/18/41/image_23012025_18_41_06_5203.jpg', 2), ('/home/nano/Desktop/images/23012025/18/40/image_23012025_18_41_01_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/41/image_23012025_18_41_42_6199.jpg', '/home/nano/Desktop/images/23012025/18/41/image_23012025_18_41_31_6196.jpg', '/home/nano/Desktop/images/23012025/18/41/image_23012025_18_41_25_6195.jpg', '/home/nano/Desktop/images/23012025/18/41/image_23012025_18_41_18_6195.jpg', '/home/nano/Desktop/images/23012025/18/41/image_23012025_18_41_06_5203.jpg', '/home/nano/Desktop/images/23012025/18/40/image_23012025_18_41_01_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/41/image_23012025_18_41_42_6199.jpg
/home/nano/Desktop/images/23012025/18/41/image_23012025_18_41_31_6196.jpg
/home/nano/Desktop/images/23012025/18/41/image_23012025_18_41_25_6195.jpg
/home/nano/Desktop/images/23012025/18/41/image_23012025_18_41_18_6195.jpg
/home/nano/Desktop/images/23012025/18/41/image_23012025_18_41_06_5203.jpg
/home/nano/Desktop/images/23012025/18/40/image_23012025_18_41_01_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330841874","1330841877","1330841870","1330841864","1330841858","1330841854"],"photo_ids_order":["1330841854","1330841858","1330841864","1330841870","1330841874","1330841877"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/53552b036301bcff6aea7bc00e0b9ebc.jpg","text":"TemporaryFile(/tmp/multipartBody4587325839775900180asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654153061,"filename":"image_23012025_18_41_06_5203.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9e0caf28ac21636219edef9ff320f1d8.jpg","text":"TemporaryFile(/tmp/multipartBody2438282239372069558asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654153061,"filename":"image_23012025_18_41_01_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f5a911557336814aba3097ed6c9099fa.jpg","text":"TemporaryFile(/tmp/multipartBody4112610665739373035asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654153061,"filename":"image_23012025_18_41_18_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b4d6df1f9d02747df3f5d2d341fcfdf6.jpg","text":"TemporaryFile(/tmp/multipartBody3597198274679128665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654153061,"filename":"image_23012025_18_41_25_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b1030abeb149586a068f270e495d7593.jpg","text":"TemporaryFile(/tmp/multipartBody4474254573464094472asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654153061,"filename":"image_23012025_18_41_31_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/77c97edfe149a958fddd85af6715f325.jpg","text":"TemporaryFile(/tmp/multipartBody1989111697601219342asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654153061,"filename":"image_23012025_18_41_42_6199.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330841864","file1":"1330841858","file0":"1330841854","file4":"1330841874","file5":"1330841877","file3":"1330841870"},"map_files_photo_id_array":[{"photo_id":"1330841877","filename":"file5"},{"photo_id":"1330841864","filename":"file2"},{"photo_id":"1330841874","filename":"file4"},{"photo_id":"1330841858","filename":"file1"},{"photo_id":"1330841854","filename":"file0"},{"photo_id":"1330841870","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330841874":["hashtag1","hashtag2"]},{"1330841877":["hashtag1","hashtag2"]},{"1330841870":["hashtag1","hashtag2"]},{"1330841864":["hashtag1","hashtag2"]},{"1330841858":["hashtag1","hashtag2"]},{"1330841854":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330841874, 1330841877, 1330841870, 1330841864, 1330841858, 1330841854)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.4222252368927 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:42:32.568244
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/42/image_23012025_18_42_55_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/18/42/image_23012025_18_42_48_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/18/42/image_23012025_18_42_42_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/42/image_23012025_18_42_36_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/18/42/image_23012025_18_42_31_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/42/image_23012025_18_42_25_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/42/image_23012025_18_42_55_6189.jpg', '/home/nano/Desktop/images/23012025/18/42/image_23012025_18_42_48_6188.jpg', '/home/nano/Desktop/images/23012025/18/42/image_23012025_18_42_42_6190.jpg', '/home/nano/Desktop/images/23012025/18/42/image_23012025_18_42_36_5180.jpg', '/home/nano/Desktop/images/23012025/18/42/image_23012025_18_42_31_6190.jpg', '/home/nano/Desktop/images/23012025/18/42/image_23012025_18_42_25_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/42/image_23012025_18_42_55_6189.jpg
/home/nano/Desktop/images/23012025/18/42/image_23012025_18_42_48_6188.jpg
/home/nano/Desktop/images/23012025/18/42/image_23012025_18_42_42_6190.jpg
/home/nano/Desktop/images/23012025/18/42/image_23012025_18_42_36_5180.jpg
/home/nano/Desktop/images/23012025/18/42/image_23012025_18_42_31_6190.jpg
/home/nano/Desktop/images/23012025/18/42/image_23012025_18_42_25_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330842111","1330842125","1330842119","1330842104","1330842139","1330842133"],"photo_ids_order":["1330842104","1330842111","1330842119","1330842125","1330842133","1330842139"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d00470eeb8af3e3994f3367405f4b8a8.jpg","text":"TemporaryFile(/tmp/multipartBody3740066250812945708asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654212996,"filename":"image_23012025_18_42_48_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/075f73e7024a98ea750dc10d5898a410.jpg","text":"TemporaryFile(/tmp/multipartBody8326075275159696086asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654212996,"filename":"image_23012025_18_42_36_5180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/aad4b079a40a22bda7ea8782a27f0d44.jpg","text":"TemporaryFile(/tmp/multipartBody8044179516389911797asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654212996,"filename":"image_23012025_18_42_42_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/95a305ab3a6fdcea0687324183092583.jpg","text":"TemporaryFile(/tmp/multipartBody4604813911763284950asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654212996,"filename":"image_23012025_18_42_55_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e632b7cab87642e13581bc1abcca590a.jpg","text":"TemporaryFile(/tmp/multipartBody3859145879216360517asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654212996,"filename":"image_23012025_18_42_25_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6e5839c3353ad364ca6c099474a454fd.jpg","text":"TemporaryFile(/tmp/multipartBody6934244673454768000asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654212996,"filename":"image_23012025_18_42_31_6190.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330842119","file1":"1330842111","file0":"1330842104","file4":"1330842133","file5":"1330842139","file3":"1330842125"},"map_files_photo_id_array":[{"photo_id":"1330842139","filename":"file5"},{"photo_id":"1330842119","filename":"file2"},{"photo_id":"1330842133","filename":"file4"},{"photo_id":"1330842111","filename":"file1"},{"photo_id":"1330842104","filename":"file0"},{"photo_id":"1330842125","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330842111":["hashtag1","hashtag2"]},{"1330842125":["hashtag1","hashtag2"]},{"1330842119":["hashtag1","hashtag2"]},{"1330842104":["hashtag1","hashtag2"]},{"1330842139":["hashtag1","hashtag2"]},{"1330842133":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330842111, 1330842125, 1330842119, 1330842104, 1330842139, 1330842133)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.82467484474182 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:43:32.704060
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/43/image_23012025_18_44_01_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/18/43/image_23012025_18_43_48_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/18/43/image_23012025_18_43_42_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/18/43/image_23012025_18_43_36_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/18/43/image_23012025_18_43_31_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/18/43/image_23012025_18_43_25_6189.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/43/image_23012025_18_44_01_6196.jpg', '/home/nano/Desktop/images/23012025/18/43/image_23012025_18_43_48_6203.jpg', '/home/nano/Desktop/images/23012025/18/43/image_23012025_18_43_42_6205.jpg', '/home/nano/Desktop/images/23012025/18/43/image_23012025_18_43_36_5185.jpg', '/home/nano/Desktop/images/23012025/18/43/image_23012025_18_43_31_6188.jpg', '/home/nano/Desktop/images/23012025/18/43/image_23012025_18_43_25_6189.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/43/image_23012025_18_44_01_6196.jpg
/home/nano/Desktop/images/23012025/18/43/image_23012025_18_43_48_6203.jpg
/home/nano/Desktop/images/23012025/18/43/image_23012025_18_43_42_6205.jpg
/home/nano/Desktop/images/23012025/18/43/image_23012025_18_43_36_5185.jpg
/home/nano/Desktop/images/23012025/18/43/image_23012025_18_43_31_6188.jpg
/home/nano/Desktop/images/23012025/18/43/image_23012025_18_43_25_6189.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330842176","1330842185","1330842193","1330842172","1330842181","1330842189"],"photo_ids_order":["1330842172","1330842176","1330842181","1330842185","1330842189","1330842193"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fdf4a68046bd14ec73bc055c3dddf03c.jpg","text":"TemporaryFile(/tmp/multipartBody6448215128822859477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654273335,"filename":"image_23012025_18_43_48_6203.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/594bd69ce3192b749c83a378e20a63a1.jpg","text":"TemporaryFile(/tmp/multipartBody6562796897563362909asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654273335,"filename":"image_23012025_18_43_36_5185.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/edb66b1908b830a89d50e62d3c8efdba.jpg","text":"TemporaryFile(/tmp/multipartBody7862471595630922815asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654273335,"filename":"image_23012025_18_43_25_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1cc5af050d38b0c5f840f51460b6e410.jpg","text":"TemporaryFile(/tmp/multipartBody7423483348500465851asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654273335,"filename":"image_23012025_18_44_01_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cddb075c73e3f65faafcae67aa2b3e85.jpg","text":"TemporaryFile(/tmp/multipartBody4962087697743462830asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654273335,"filename":"image_23012025_18_43_42_6205.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/053b66d80738a9e5e0300d029a89a1f4.jpg","text":"TemporaryFile(/tmp/multipartBody7959119186554242884asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654273335,"filename":"image_23012025_18_43_31_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330842181","file1":"1330842176","file0":"1330842172","file4":"1330842189","file5":"1330842193","file3":"1330842185"},"map_files_photo_id_array":[{"photo_id":"1330842193","filename":"file5"},{"photo_id":"1330842181","filename":"file2"},{"photo_id":"1330842189","filename":"file4"},{"photo_id":"1330842176","filename":"file1"},{"photo_id":"1330842172","filename":"file0"},{"photo_id":"1330842185","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330842176":["hashtag1","hashtag2"]},{"1330842185":["hashtag1","hashtag2"]},{"1330842193":["hashtag1","hashtag2"]},{"1330842172":["hashtag1","hashtag2"]},{"1330842181":["hashtag1","hashtag2"]},{"1330842189":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330842176, 1330842185, 1330842193, 1330842172, 1330842181, 1330842189)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.55061936378479 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:44:31.777537
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_54_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_48_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_42_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_37_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_31_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_24_6189.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_54_6195.jpg', '/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_48_6189.jpg', '/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_42_5178.jpg', '/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_37_6188.jpg', '/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_31_6188.jpg', '/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_24_6189.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_54_6195.jpg
/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_48_6189.jpg
/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_42_5178.jpg
/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_37_6188.jpg
/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_31_6188.jpg
/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_24_6189.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.43032407760620117 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:45:02.590562
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_54_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_48_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_42_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_37_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_31_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_24_6189.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_54_6195.jpg', '/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_48_6189.jpg', '/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_42_5178.jpg', '/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_37_6188.jpg', '/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_31_6188.jpg', '/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_24_6189.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_54_6195.jpg
/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_48_6189.jpg
/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_42_5178.jpg
/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_37_6188.jpg
/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_31_6188.jpg
/home/nano/Desktop/images/23012025/18/44/image_23012025_18_44_24_6189.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330842327","1330842306","1330842311","1330842295","1330842320","1330842314"],"photo_ids_order":["1330842295","1330842306","1330842311","1330842314","1330842320","1330842327"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/482f6a273d9c84a291570af4aa640593.jpg","text":"TemporaryFile(/tmp/multipartBody8827696455740212373asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654363058,"filename":"image_23012025_18_44_24_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9515f5ab506e5db1baded0372683524e.jpg","text":"TemporaryFile(/tmp/multipartBody3401206090928267526asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654363058,"filename":"image_23012025_18_44_48_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fd06486b6d2b50d14e5b14c2fafa8f0c.jpg","text":"TemporaryFile(/tmp/multipartBody7225830585456014744asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654363058,"filename":"image_23012025_18_44_42_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1e7d5f580a473566533c00ce2030ab17.jpg","text":"TemporaryFile(/tmp/multipartBody5558550024949666002asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654363058,"filename":"image_23012025_18_44_54_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/84cd2af1a21116af327039359d73448d.jpg","text":"TemporaryFile(/tmp/multipartBody6401595848632871946asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654363058,"filename":"image_23012025_18_44_31_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/dad3ad72f7ba696b93105f5ff61df6f2.jpg","text":"TemporaryFile(/tmp/multipartBody3352885933344697673asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654363058,"filename":"image_23012025_18_44_37_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330842311","file1":"1330842306","file0":"1330842295","file4":"1330842320","file5":"1330842327","file3":"1330842314"},"map_files_photo_id_array":[{"photo_id":"1330842327","filename":"file5"},{"photo_id":"1330842311","filename":"file2"},{"photo_id":"1330842320","filename":"file4"},{"photo_id":"1330842306","filename":"file1"},{"photo_id":"1330842295","filename":"file0"},{"photo_id":"1330842314","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330842327":["hashtag1","hashtag2"]},{"1330842306":["hashtag1","hashtag2"]},{"1330842311":["hashtag1","hashtag2"]},{"1330842295":["hashtag1","hashtag2"]},{"1330842320":["hashtag1","hashtag2"]},{"1330842314":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330842327, 1330842306, 1330842311, 1330842295, 1330842320, 1330842314)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.454780340194702 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:46:02.500817
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/45/image_23012025_18_45_55_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/18/45/image_23012025_18_45_48_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/18/45/image_23012025_18_45_42_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/18/45/image_23012025_18_45_36_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/18/45/image_23012025_18_45_31_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/18/45/image_23012025_18_45_25_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/45/image_23012025_18_45_55_6196.jpg', '/home/nano/Desktop/images/23012025/18/45/image_23012025_18_45_48_6197.jpg', '/home/nano/Desktop/images/23012025/18/45/image_23012025_18_45_42_6198.jpg', '/home/nano/Desktop/images/23012025/18/45/image_23012025_18_45_36_5190.jpg', '/home/nano/Desktop/images/23012025/18/45/image_23012025_18_45_31_6196.jpg', '/home/nano/Desktop/images/23012025/18/45/image_23012025_18_45_25_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/45/image_23012025_18_45_55_6196.jpg
/home/nano/Desktop/images/23012025/18/45/image_23012025_18_45_48_6197.jpg
/home/nano/Desktop/images/23012025/18/45/image_23012025_18_45_42_6198.jpg
/home/nano/Desktop/images/23012025/18/45/image_23012025_18_45_36_5190.jpg
/home/nano/Desktop/images/23012025/18/45/image_23012025_18_45_31_6196.jpg
/home/nano/Desktop/images/23012025/18/45/image_23012025_18_45_25_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330842399","1330842372","1330842392","1330842386","1330842365","1330842379"],"photo_ids_order":["1330842365","1330842372","1330842379","1330842386","1330842392","1330842399"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b1e7377f2a14f538e74ebdfb533e0794.jpg","text":"TemporaryFile(/tmp/multipartBody6825627428139102097asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654423128,"filename":"image_23012025_18_45_25_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2f86b547f2ce6a2a396517dbba9c3a8d.jpg","text":"TemporaryFile(/tmp/multipartBody8626013118553560532asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654423128,"filename":"image_23012025_18_45_48_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ce7694e5157a0708421ba3659997978a.jpg","text":"TemporaryFile(/tmp/multipartBody7981965464345243766asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654423128,"filename":"image_23012025_18_45_31_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ceab03119b73e8a207ea6076a4d608b4.jpg","text":"TemporaryFile(/tmp/multipartBody6890443287509391222asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654423128,"filename":"image_23012025_18_45_36_5190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f57c8c57a2cbfb0a9a6c3a88fa4eb04b.jpg","text":"TemporaryFile(/tmp/multipartBody5051379433316356121asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654423128,"filename":"image_23012025_18_45_55_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b7e0d43332e64f9f9f74a64293a0764c.jpg","text":"TemporaryFile(/tmp/multipartBody3345312539033739714asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654423128,"filename":"image_23012025_18_45_42_6198.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330842379","file1":"1330842372","file0":"1330842365","file4":"1330842392","file5":"1330842399","file3":"1330842386"},"map_files_photo_id_array":[{"photo_id":"1330842399","filename":"file5"},{"photo_id":"1330842379","filename":"file2"},{"photo_id":"1330842392","filename":"file4"},{"photo_id":"1330842372","filename":"file1"},{"photo_id":"1330842365","filename":"file0"},{"photo_id":"1330842386","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330842399":["hashtag1","hashtag2"]},{"1330842372":["hashtag1","hashtag2"]},{"1330842392":["hashtag1","hashtag2"]},{"1330842386":["hashtag1","hashtag2"]},{"1330842365":["hashtag1","hashtag2"]},{"1330842379":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330842399, 1330842372, 1330842392, 1330842386, 1330842365, 1330842379)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.03259611129761 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:47:02.716673
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/46/image_23012025_18_46_55_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/18/46/image_23012025_18_46_49_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/18/46/image_23012025_18_46_42_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/18/46/image_23012025_18_46_36_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/18/46/image_23012025_18_46_30_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/18/46/image_23012025_18_46_25_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/46/image_23012025_18_46_55_6196.jpg', '/home/nano/Desktop/images/23012025/18/46/image_23012025_18_46_49_6197.jpg', '/home/nano/Desktop/images/23012025/18/46/image_23012025_18_46_42_6194.jpg', '/home/nano/Desktop/images/23012025/18/46/image_23012025_18_46_36_6198.jpg', '/home/nano/Desktop/images/23012025/18/46/image_23012025_18_46_30_5186.jpg', '/home/nano/Desktop/images/23012025/18/46/image_23012025_18_46_25_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/46/image_23012025_18_46_55_6196.jpg
/home/nano/Desktop/images/23012025/18/46/image_23012025_18_46_49_6197.jpg
/home/nano/Desktop/images/23012025/18/46/image_23012025_18_46_42_6194.jpg
/home/nano/Desktop/images/23012025/18/46/image_23012025_18_46_36_6198.jpg
/home/nano/Desktop/images/23012025/18/46/image_23012025_18_46_30_5186.jpg
/home/nano/Desktop/images/23012025/18/46/image_23012025_18_46_25_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330842479","1330842473","1330842455","1330842458","1330842425","1330842460"],"photo_ids_order":["1330842425","1330842455","1330842458","1330842460","1330842473","1330842479"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/994b229a2ae1553b16b58d5afc0cc808.jpg","text":"TemporaryFile(/tmp/multipartBody6379064123672760195asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654483322,"filename":"image_23012025_18_46_25_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3f520458208805962d576cfd25056e79.jpg","text":"TemporaryFile(/tmp/multipartBody5747416592251100077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654483322,"filename":"image_23012025_18_46_30_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ca6593a2dba45d3c5d3fa93c15072bc3.jpg","text":"TemporaryFile(/tmp/multipartBody179423379148607480asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654483322,"filename":"image_23012025_18_46_49_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c30dcb6a934361b081314ee6e8cb8d55.jpg","text":"TemporaryFile(/tmp/multipartBody209132922019286310asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654483322,"filename":"image_23012025_18_46_42_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1c9cea155eed8a72c0200c525d88173f.jpg","text":"TemporaryFile(/tmp/multipartBody2092482722916912909asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654483322,"filename":"image_23012025_18_46_55_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a112aa33ffc79d35b2063f2195e22fc2.jpg","text":"TemporaryFile(/tmp/multipartBody612700782690044331asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654483322,"filename":"image_23012025_18_46_36_6198.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330842458","file1":"1330842455","file0":"1330842425","file4":"1330842473","file5":"1330842479","file3":"1330842460"},"map_files_photo_id_array":[{"photo_id":"1330842479","filename":"file5"},{"photo_id":"1330842458","filename":"file2"},{"photo_id":"1330842473","filename":"file4"},{"photo_id":"1330842455","filename":"file1"},{"photo_id":"1330842425","filename":"file0"},{"photo_id":"1330842460","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330842479":["hashtag1","hashtag2"]},{"1330842473":["hashtag1","hashtag2"]},{"1330842455":["hashtag1","hashtag2"]},{"1330842458":["hashtag1","hashtag2"]},{"1330842425":["hashtag1","hashtag2"]},{"1330842460":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330842479, 1330842473, 1330842455, 1330842458, 1330842425, 1330842460)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.589467763900757 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:48:02.722440
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/47/image_23012025_18_47_55_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/18/47/image_23012025_18_47_49_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/18/47/image_23012025_18_47_42_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/18/47/image_23012025_18_47_36_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/18/47/image_23012025_18_47_30_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/18/47/image_23012025_18_47_25_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/47/image_23012025_18_47_55_6199.jpg', '/home/nano/Desktop/images/23012025/18/47/image_23012025_18_47_49_6197.jpg', '/home/nano/Desktop/images/23012025/18/47/image_23012025_18_47_42_6197.jpg', '/home/nano/Desktop/images/23012025/18/47/image_23012025_18_47_36_6201.jpg', '/home/nano/Desktop/images/23012025/18/47/image_23012025_18_47_30_5187.jpg', '/home/nano/Desktop/images/23012025/18/47/image_23012025_18_47_25_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/47/image_23012025_18_47_55_6199.jpg
/home/nano/Desktop/images/23012025/18/47/image_23012025_18_47_49_6197.jpg
/home/nano/Desktop/images/23012025/18/47/image_23012025_18_47_42_6197.jpg
/home/nano/Desktop/images/23012025/18/47/image_23012025_18_47_36_6201.jpg
/home/nano/Desktop/images/23012025/18/47/image_23012025_18_47_30_5187.jpg
/home/nano/Desktop/images/23012025/18/47/image_23012025_18_47_25_6195.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.4966154098510742 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:48:32.150822
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/48/image_23012025_18_48_55_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/18/48/image_23012025_18_48_49_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/18/48/image_23012025_18_48_42_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/18/48/image_23012025_18_48_36_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/18/48/image_23012025_18_48_30_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/18/48/image_23012025_18_48_25_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/48/image_23012025_18_48_55_6197.jpg', '/home/nano/Desktop/images/23012025/18/48/image_23012025_18_48_49_6197.jpg', '/home/nano/Desktop/images/23012025/18/48/image_23012025_18_48_42_6197.jpg', '/home/nano/Desktop/images/23012025/18/48/image_23012025_18_48_36_6199.jpg', '/home/nano/Desktop/images/23012025/18/48/image_23012025_18_48_30_5188.jpg', '/home/nano/Desktop/images/23012025/18/48/image_23012025_18_48_25_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/48/image_23012025_18_48_55_6197.jpg
/home/nano/Desktop/images/23012025/18/48/image_23012025_18_48_49_6197.jpg
/home/nano/Desktop/images/23012025/18/48/image_23012025_18_48_42_6197.jpg
/home/nano/Desktop/images/23012025/18/48/image_23012025_18_48_36_6199.jpg
/home/nano/Desktop/images/23012025/18/48/image_23012025_18_48_30_5188.jpg
/home/nano/Desktop/images/23012025/18/48/image_23012025_18_48_25_6197.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330842564","1330842572","1330842551","1330842569","1330842560","1330842556"],"photo_ids_order":["1330842551","1330842556","1330842560","1330842564","1330842569","1330842572"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e914ec4b1705b4be3aaa35cde458dbb1.jpg","text":"TemporaryFile(/tmp/multipartBody6142917857076020079asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654572704,"filename":"image_23012025_18_48_36_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1ef62f8dbde7d89ff9a34f95709c8f43.jpg","text":"TemporaryFile(/tmp/multipartBody6469788286281958180asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654572704,"filename":"image_23012025_18_48_25_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/79ccd941e04c4c1332688c3436b06ecf.jpg","text":"TemporaryFile(/tmp/multipartBody740281667856373665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654572704,"filename":"image_23012025_18_48_55_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/70a3d7d5dec5548930d952db4717fb1c.jpg","text":"TemporaryFile(/tmp/multipartBody942175054829185986asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654572704,"filename":"image_23012025_18_48_30_5188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9c4b83f301ac3bd9f046a47619d7bf45.jpg","text":"TemporaryFile(/tmp/multipartBody6663781207660785759asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654572704,"filename":"image_23012025_18_48_42_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/215235ca25b16833506b4a099c67c5c9.jpg","text":"TemporaryFile(/tmp/multipartBody274637512862008669asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654572704,"filename":"image_23012025_18_48_49_6197.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330842560","file1":"1330842556","file0":"1330842551","file4":"1330842569","file5":"1330842572","file3":"1330842564"},"map_files_photo_id_array":[{"photo_id":"1330842572","filename":"file5"},{"photo_id":"1330842560","filename":"file2"},{"photo_id":"1330842569","filename":"file4"},{"photo_id":"1330842556","filename":"file1"},{"photo_id":"1330842551","filename":"file0"},{"photo_id":"1330842564","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330842564":["hashtag1","hashtag2"]},{"1330842572":["hashtag1","hashtag2"]},{"1330842551":["hashtag1","hashtag2"]},{"1330842569":["hashtag1","hashtag2"]},{"1330842560":["hashtag1","hashtag2"]},{"1330842556":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330842564, 1330842572, 1330842551, 1330842569, 1330842560, 1330842556)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.182587385177612 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:49:32.276361
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/49/image_23012025_18_49_55_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/18/49/image_23012025_18_49_49_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/18/49/image_23012025_18_49_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/18/49/image_23012025_18_49_36_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/18/49/image_23012025_18_49_30_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/18/49/image_23012025_18_49_25_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/49/image_23012025_18_49_55_6197.jpg', '/home/nano/Desktop/images/23012025/18/49/image_23012025_18_49_49_6196.jpg', '/home/nano/Desktop/images/23012025/18/49/image_23012025_18_49_42_6196.jpg', '/home/nano/Desktop/images/23012025/18/49/image_23012025_18_49_36_6208.jpg', '/home/nano/Desktop/images/23012025/18/49/image_23012025_18_49_30_5187.jpg', '/home/nano/Desktop/images/23012025/18/49/image_23012025_18_49_25_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/49/image_23012025_18_49_55_6197.jpg
/home/nano/Desktop/images/23012025/18/49/image_23012025_18_49_49_6196.jpg
/home/nano/Desktop/images/23012025/18/49/image_23012025_18_49_42_6196.jpg
/home/nano/Desktop/images/23012025/18/49/image_23012025_18_49_36_6208.jpg
/home/nano/Desktop/images/23012025/18/49/image_23012025_18_49_30_5187.jpg
/home/nano/Desktop/images/23012025/18/49/image_23012025_18_49_25_6197.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330842735","1330842758","1330842737","1330842769","1330842742","1330842748"],"photo_ids_order":["1330842735","1330842737","1330842742","1330842748","1330842758","1330842769"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/859b9c53956786f48e9533d7cade1749.jpg","text":"TemporaryFile(/tmp/multipartBody4988559141592838915asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654632786,"filename":"image_23012025_18_49_55_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a57c138c99fb5b0269a19635f003c715.jpg","text":"TemporaryFile(/tmp/multipartBody8884736335079500109asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654632786,"filename":"image_23012025_18_49_30_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cad6a20957ffd7d7ba12db79c274f0b8.jpg","text":"TemporaryFile(/tmp/multipartBody4959581176623724434asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654632786,"filename":"image_23012025_18_49_49_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b09c7254ad34ceb229309ef970782adc.jpg","text":"TemporaryFile(/tmp/multipartBody2845774700911134323asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654632786,"filename":"image_23012025_18_49_25_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fc29fdb633129ce995c007eb7098f3fa.jpg","text":"TemporaryFile(/tmp/multipartBody5955023178154521490asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654632786,"filename":"image_23012025_18_49_42_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3fdf222eab2497fa52ed60509d66d12c.jpg","text":"TemporaryFile(/tmp/multipartBody3316184509547024799asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654632786,"filename":"image_23012025_18_49_36_6208.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330842742","file1":"1330842737","file0":"1330842735","file4":"1330842758","file5":"1330842769","file3":"1330842748"},"map_files_photo_id_array":[{"photo_id":"1330842769","filename":"file5"},{"photo_id":"1330842742","filename":"file2"},{"photo_id":"1330842758","filename":"file4"},{"photo_id":"1330842737","filename":"file1"},{"photo_id":"1330842735","filename":"file0"},{"photo_id":"1330842748","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330842735":["hashtag1","hashtag2"]},{"1330842758":["hashtag1","hashtag2"]},{"1330842737":["hashtag1","hashtag2"]},{"1330842769":["hashtag1","hashtag2"]},{"1330842742":["hashtag1","hashtag2"]},{"1330842748":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330842735, 1330842758, 1330842737, 1330842769, 1330842742, 1330842748)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.121858596801758 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:50:32.356178
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/50/image_23012025_18_50_55_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/18/50/image_23012025_18_50_49_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/18/50/image_23012025_18_50_42_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/18/50/image_23012025_18_50_36_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/18/50/image_23012025_18_50_30_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/18/50/image_23012025_18_50_25_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/50/image_23012025_18_50_55_6197.jpg', '/home/nano/Desktop/images/23012025/18/50/image_23012025_18_50_49_6196.jpg', '/home/nano/Desktop/images/23012025/18/50/image_23012025_18_50_42_6197.jpg', '/home/nano/Desktop/images/23012025/18/50/image_23012025_18_50_36_6201.jpg', '/home/nano/Desktop/images/23012025/18/50/image_23012025_18_50_30_5187.jpg', '/home/nano/Desktop/images/23012025/18/50/image_23012025_18_50_25_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/50/image_23012025_18_50_55_6197.jpg
/home/nano/Desktop/images/23012025/18/50/image_23012025_18_50_49_6196.jpg
/home/nano/Desktop/images/23012025/18/50/image_23012025_18_50_42_6197.jpg
/home/nano/Desktop/images/23012025/18/50/image_23012025_18_50_36_6201.jpg
/home/nano/Desktop/images/23012025/18/50/image_23012025_18_50_30_5187.jpg
/home/nano/Desktop/images/23012025/18/50/image_23012025_18_50_25_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330842881","1330842869","1330842899","1330842874","1330842877","1330842894"],"photo_ids_order":["1330842869","1330842874","1330842877","1330842881","1330842894","1330842899"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f86f7c0de7dd7b82d4eddfb7240e7b6b.jpg","text":"TemporaryFile(/tmp/multipartBody4309935342123347938asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654692916,"filename":"image_23012025_18_50_36_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d6edb74b8cd2abd122eb361a43899335.jpg","text":"TemporaryFile(/tmp/multipartBody6285698187083104084asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654692916,"filename":"image_23012025_18_50_55_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c776ad5061ea65548196da547356d824.jpg","text":"TemporaryFile(/tmp/multipartBody1200798971458498840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654692916,"filename":"image_23012025_18_50_25_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1a74a8f967677049d69845abf204d8b2.jpg","text":"TemporaryFile(/tmp/multipartBody1854750889368830309asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654692916,"filename":"image_23012025_18_50_49_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2901abae438df8e95f2b06de31c3594f.jpg","text":"TemporaryFile(/tmp/multipartBody522256425444234011asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654692916,"filename":"image_23012025_18_50_42_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/922c56f28d720bccb6f0282ad8034d23.jpg","text":"TemporaryFile(/tmp/multipartBody693242670214332355asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654692916,"filename":"image_23012025_18_50_30_5187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330842877","file1":"1330842874","file0":"1330842869","file4":"1330842894","file5":"1330842899","file3":"1330842881"},"map_files_photo_id_array":[{"photo_id":"1330842899","filename":"file5"},{"photo_id":"1330842877","filename":"file2"},{"photo_id":"1330842894","filename":"file4"},{"photo_id":"1330842874","filename":"file1"},{"photo_id":"1330842869","filename":"file0"},{"photo_id":"1330842881","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330842881":["hashtag1","hashtag2"]},{"1330842869":["hashtag1","hashtag2"]},{"1330842899":["hashtag1","hashtag2"]},{"1330842874":["hashtag1","hashtag2"]},{"1330842877":["hashtag1","hashtag2"]},{"1330842894":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330842881, 1330842869, 1330842899, 1330842874, 1330842877, 1330842894)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.72203826904297 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:51:32.446777
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/51/image_23012025_18_51_55_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/18/51/image_23012025_18_51_49_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/18/51/image_23012025_18_51_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/18/51/image_23012025_18_51_36_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/18/51/image_23012025_18_51_30_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/18/51/image_23012025_18_51_25_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/51/image_23012025_18_51_55_6197.jpg', '/home/nano/Desktop/images/23012025/18/51/image_23012025_18_51_49_6197.jpg', '/home/nano/Desktop/images/23012025/18/51/image_23012025_18_51_42_6196.jpg', '/home/nano/Desktop/images/23012025/18/51/image_23012025_18_51_36_6199.jpg', '/home/nano/Desktop/images/23012025/18/51/image_23012025_18_51_30_5187.jpg', '/home/nano/Desktop/images/23012025/18/51/image_23012025_18_51_25_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/51/image_23012025_18_51_55_6197.jpg
/home/nano/Desktop/images/23012025/18/51/image_23012025_18_51_49_6197.jpg
/home/nano/Desktop/images/23012025/18/51/image_23012025_18_51_42_6196.jpg
/home/nano/Desktop/images/23012025/18/51/image_23012025_18_51_36_6199.jpg
/home/nano/Desktop/images/23012025/18/51/image_23012025_18_51_30_5187.jpg
/home/nano/Desktop/images/23012025/18/51/image_23012025_18_51_25_6197.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330843196","1330843172","1330843148","1330843207","1330843179","1330843158"],"photo_ids_order":["1330843148","1330843158","1330843172","1330843179","1330843196","1330843207"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/76531238f516c7241b02bc7be2efdfd1.jpg","text":"TemporaryFile(/tmp/multipartBody7018105074439458982asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654753089,"filename":"image_23012025_18_51_30_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/09b0d3aab4ab8c5f2b15ae5871bf70b3.jpg","text":"TemporaryFile(/tmp/multipartBody2344442945688756876asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654753089,"filename":"image_23012025_18_51_42_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/094e4b8e98f7689c63f061372f087fcf.jpg","text":"TemporaryFile(/tmp/multipartBody583592221768311877asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654753089,"filename":"image_23012025_18_51_55_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ddbf07c14271a8289be1993d3f2e4987.jpg","text":"TemporaryFile(/tmp/multipartBody8485673700058909828asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654753089,"filename":"image_23012025_18_51_25_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1370b5ff6090f64c52b9f2acfccce9b7.jpg","text":"TemporaryFile(/tmp/multipartBody7350929570188660886asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654753089,"filename":"image_23012025_18_51_36_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7628bae782484dff38539542e902e9a4.jpg","text":"TemporaryFile(/tmp/multipartBody8119282403154280102asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654753089,"filename":"image_23012025_18_51_49_6197.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330843172","file1":"1330843158","file0":"1330843148","file4":"1330843196","file5":"1330843207","file3":"1330843179"},"map_files_photo_id_array":[{"photo_id":"1330843207","filename":"file5"},{"photo_id":"1330843172","filename":"file2"},{"photo_id":"1330843196","filename":"file4"},{"photo_id":"1330843158","filename":"file1"},{"photo_id":"1330843148","filename":"file0"},{"photo_id":"1330843179","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330843196":["hashtag1","hashtag2"]},{"1330843172":["hashtag1","hashtag2"]},{"1330843148":["hashtag1","hashtag2"]},{"1330843207":["hashtag1","hashtag2"]},{"1330843179":["hashtag1","hashtag2"]},{"1330843158":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330843196, 1330843172, 1330843148, 1330843207, 1330843179, 1330843158)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.33061122894287 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:52:32.579986
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/52/image_23012025_18_52_55_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/18/52/image_23012025_18_52_48_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/18/52/image_23012025_18_52_42_6208.jpg', 2), ('/home/nano/Desktop/images/23012025/18/52/image_23012025_18_52_31_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/18/52/image_23012025_18_52_25_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/18/52/image_23012025_18_52_18_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/52/image_23012025_18_52_55_6197.jpg', '/home/nano/Desktop/images/23012025/18/52/image_23012025_18_52_48_6195.jpg', '/home/nano/Desktop/images/23012025/18/52/image_23012025_18_52_42_6208.jpg', '/home/nano/Desktop/images/23012025/18/52/image_23012025_18_52_31_6196.jpg', '/home/nano/Desktop/images/23012025/18/52/image_23012025_18_52_25_6197.jpg', '/home/nano/Desktop/images/23012025/18/52/image_23012025_18_52_18_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/52/image_23012025_18_52_55_6197.jpg
/home/nano/Desktop/images/23012025/18/52/image_23012025_18_52_48_6195.jpg
/home/nano/Desktop/images/23012025/18/52/image_23012025_18_52_42_6208.jpg
/home/nano/Desktop/images/23012025/18/52/image_23012025_18_52_31_6196.jpg
/home/nano/Desktop/images/23012025/18/52/image_23012025_18_52_25_6197.jpg
/home/nano/Desktop/images/23012025/18/52/image_23012025_18_52_18_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330843248","1330843259","1330843253","1330843241","1330843244","1330843264"],"photo_ids_order":["1330843241","1330843244","1330843248","1330843253","1330843259","1330843264"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/818da1ea9fabc5b439a6ed34d4824046.jpg","text":"TemporaryFile(/tmp/multipartBody867810458834854118asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654813169,"filename":"image_23012025_18_52_42_6208.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/714430f9ff8f19dce5979f88f75b0ea8.jpg","text":"TemporaryFile(/tmp/multipartBody6934664627379222936asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654813169,"filename":"image_23012025_18_52_25_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/16d4008aa44de8981bef5ae357079ab3.jpg","text":"TemporaryFile(/tmp/multipartBody2090674259703706537asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654813169,"filename":"image_23012025_18_52_31_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7e3e5dc1a9c96d73fb7fd1a9732c0374.jpg","text":"TemporaryFile(/tmp/multipartBody4817747682373343328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654813169,"filename":"image_23012025_18_52_55_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3ef71508c5ca43f1a938a49697c8fb3e.jpg","text":"TemporaryFile(/tmp/multipartBody7267873061191964598asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654813169,"filename":"image_23012025_18_52_48_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6473dfd9a5470dc7a47ea3cdfe98a7c1.jpg","text":"TemporaryFile(/tmp/multipartBody2083092338229084376asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654813169,"filename":"image_23012025_18_52_18_6196.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330843248","file1":"1330843244","file0":"1330843241","file4":"1330843259","file5":"1330843264","file3":"1330843253"},"map_files_photo_id_array":[{"photo_id":"1330843264","filename":"file5"},{"photo_id":"1330843248","filename":"file2"},{"photo_id":"1330843259","filename":"file4"},{"photo_id":"1330843244","filename":"file1"},{"photo_id":"1330843241","filename":"file0"},{"photo_id":"1330843253","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330843248":["hashtag1","hashtag2"]},{"1330843259":["hashtag1","hashtag2"]},{"1330843253":["hashtag1","hashtag2"]},{"1330843241":["hashtag1","hashtag2"]},{"1330843244":["hashtag1","hashtag2"]},{"1330843264":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330843248, 1330843259, 1330843253, 1330843241, 1330843244, 1330843264)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.685994148254395 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:53:32.667920
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/53/image_23012025_18_54_01_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/18/53/image_23012025_18_53_48_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/18/53/image_23012025_18_53_42_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/18/53/image_23012025_18_53_36_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/18/53/image_23012025_18_53_31_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/18/53/image_23012025_18_53_25_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/53/image_23012025_18_54_01_6195.jpg', '/home/nano/Desktop/images/23012025/18/53/image_23012025_18_53_48_6197.jpg', '/home/nano/Desktop/images/23012025/18/53/image_23012025_18_53_42_6209.jpg', '/home/nano/Desktop/images/23012025/18/53/image_23012025_18_53_36_5188.jpg', '/home/nano/Desktop/images/23012025/18/53/image_23012025_18_53_31_6196.jpg', '/home/nano/Desktop/images/23012025/18/53/image_23012025_18_53_25_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/53/image_23012025_18_54_01_6195.jpg
/home/nano/Desktop/images/23012025/18/53/image_23012025_18_53_48_6197.jpg
/home/nano/Desktop/images/23012025/18/53/image_23012025_18_53_42_6209.jpg
/home/nano/Desktop/images/23012025/18/53/image_23012025_18_53_36_5188.jpg
/home/nano/Desktop/images/23012025/18/53/image_23012025_18_53_31_6196.jpg
/home/nano/Desktop/images/23012025/18/53/image_23012025_18_53_25_6197.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330844392","1330844422","1330844401","1330844379","1330844439","1330844319"],"photo_ids_order":["1330844319","1330844379","1330844392","1330844401","1330844422","1330844439"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6bb3f0d161bb3122a6108ada3bde4600.jpg","text":"TemporaryFile(/tmp/multipartBody7739133323973044164asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654873170,"filename":"image_23012025_18_53_42_6209.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/45609a073af04a90af8597621f285aae.jpg","text":"TemporaryFile(/tmp/multipartBody7523114148707388590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654873170,"filename":"image_23012025_18_53_31_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f8f91c00fb8574f2f23be26337700bb7.jpg","text":"TemporaryFile(/tmp/multipartBody6258188825502688052asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654873170,"filename":"image_23012025_18_53_36_5188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b0090df30cc92cd5d3b323f02e315673.jpg","text":"TemporaryFile(/tmp/multipartBody7521234739143518056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654873170,"filename":"image_23012025_18_53_48_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/178c1e3c145ab89284c20f11efbf4255.jpg","text":"TemporaryFile(/tmp/multipartBody6787753638785298668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654873170,"filename":"image_23012025_18_53_25_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1c99a1d3f3086dd43fcef3a2ca46c5a2.jpg","text":"TemporaryFile(/tmp/multipartBody5869241245691664604asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654873170,"filename":"image_23012025_18_54_01_6195.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330844392","file1":"1330844379","file0":"1330844319","file4":"1330844422","file5":"1330844439","file3":"1330844401"},"map_files_photo_id_array":[{"photo_id":"1330844439","filename":"file5"},{"photo_id":"1330844392","filename":"file2"},{"photo_id":"1330844422","filename":"file4"},{"photo_id":"1330844379","filename":"file1"},{"photo_id":"1330844319","filename":"file0"},{"photo_id":"1330844401","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330844392":["hashtag1","hashtag2"]},{"1330844422":["hashtag1","hashtag2"]},{"1330844401":["hashtag1","hashtag2"]},{"1330844379":["hashtag1","hashtag2"]},{"1330844439":["hashtag1","hashtag2"]},{"1330844319":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330844392, 1330844422, 1330844401, 1330844379, 1330844439, 1330844319)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.12672686576843 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:54:31.772797
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/54/image_23012025_18_54_55_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/18/54/image_23012025_18_54_48_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/18/54/image_23012025_18_54_42_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/18/54/image_23012025_18_54_36_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/18/54/image_23012025_18_54_31_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/18/54/image_23012025_18_54_25_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/54/image_23012025_18_54_55_6197.jpg', '/home/nano/Desktop/images/23012025/18/54/image_23012025_18_54_48_6197.jpg', '/home/nano/Desktop/images/23012025/18/54/image_23012025_18_54_42_6206.jpg', '/home/nano/Desktop/images/23012025/18/54/image_23012025_18_54_36_5188.jpg', '/home/nano/Desktop/images/23012025/18/54/image_23012025_18_54_31_6196.jpg', '/home/nano/Desktop/images/23012025/18/54/image_23012025_18_54_25_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/54/image_23012025_18_54_55_6197.jpg
/home/nano/Desktop/images/23012025/18/54/image_23012025_18_54_48_6197.jpg
/home/nano/Desktop/images/23012025/18/54/image_23012025_18_54_42_6206.jpg
/home/nano/Desktop/images/23012025/18/54/image_23012025_18_54_36_5188.jpg
/home/nano/Desktop/images/23012025/18/54/image_23012025_18_54_31_6196.jpg
/home/nano/Desktop/images/23012025/18/54/image_23012025_18_54_25_6197.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330844537","1330844513","1330844551","1330844545","1330844515","1330844511"],"photo_ids_order":["1330844511","1330844513","1330844515","1330844537","1330844545","1330844551"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fd6ac3bdc29c1000c6e29607b6d66156.jpg","text":"TemporaryFile(/tmp/multipartBody4058146711606819040asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654932665,"filename":"image_23012025_18_54_36_5188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/df32162e9f982305589fb130599f9f75.jpg","text":"TemporaryFile(/tmp/multipartBody1713307335613674419asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654932665,"filename":"image_23012025_18_54_48_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/177c3ee13d20738d7175c7e67fb72b00.jpg","text":"TemporaryFile(/tmp/multipartBody9077428089915774274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654932665,"filename":"image_23012025_18_54_25_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/287abbce998da93ebe4d255403f2eac6.jpg","text":"TemporaryFile(/tmp/multipartBody2922852536998526112asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654932665,"filename":"image_23012025_18_54_31_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a16cd823ed51f1f4c9b53e5327392417.jpg","text":"TemporaryFile(/tmp/multipartBody994797006464082975asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654932665,"filename":"image_23012025_18_54_42_6206.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/31342148478fa64c38a4314ad3e60cfe.jpg","text":"TemporaryFile(/tmp/multipartBody5496238046856202135asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737654932665,"filename":"image_23012025_18_54_55_6197.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330844515","file1":"1330844513","file0":"1330844511","file4":"1330844545","file5":"1330844551","file3":"1330844537"},"map_files_photo_id_array":[{"photo_id":"1330844551","filename":"file5"},{"photo_id":"1330844515","filename":"file2"},{"photo_id":"1330844545","filename":"file4"},{"photo_id":"1330844513","filename":"file1"},{"photo_id":"1330844511","filename":"file0"},{"photo_id":"1330844537","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330844537":["hashtag1","hashtag2"]},{"1330844513":["hashtag1","hashtag2"]},{"1330844551":["hashtag1","hashtag2"]},{"1330844545":["hashtag1","hashtag2"]},{"1330844515":["hashtag1","hashtag2"]},{"1330844511":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330844537, 1330844513, 1330844551, 1330844545, 1330844515, 1330844511)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.25446081161499 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:55:31.874280
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_55_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_49_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_42_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_36_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_30_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_24_5186.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_55_6197.jpg', '/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_49_6198.jpg', '/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_42_6197.jpg', '/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_36_6198.jpg', '/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_30_6202.jpg', '/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_24_5186.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_55_6197.jpg
/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_49_6198.jpg
/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_42_6197.jpg
/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_36_6198.jpg
/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_30_6202.jpg
/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_24_5186.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.7586514949798584 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:56:02.522311
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_55_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_49_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_42_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_36_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_30_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_24_5186.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_55_6197.jpg', '/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_49_6198.jpg', '/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_42_6197.jpg', '/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_36_6198.jpg', '/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_30_6202.jpg', '/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_24_5186.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_55_6197.jpg
/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_49_6198.jpg
/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_42_6197.jpg
/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_36_6198.jpg
/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_30_6202.jpg
/home/nano/Desktop/images/23012025/18/55/image_23012025_18_55_24_5186.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330845206","1330845104","1330845211","1330845198","1330845100","1330845185"],"photo_ids_order":["1330845100","1330845104","1330845185","1330845198","1330845206","1330845211"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8220e6d7ef5f39b28a4197a36151cf26.jpg","text":"TemporaryFile(/tmp/multipartBody8482598062371157432asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655023188,"filename":"image_23012025_18_55_30_6202.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ee302993943a436e89ce9b7ba1b8e819.jpg","text":"TemporaryFile(/tmp/multipartBody4641715546323949332asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655023188,"filename":"image_23012025_18_55_49_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c8c2b876d6dcf6d941734152045e35a7.jpg","text":"TemporaryFile(/tmp/multipartBody2656167976666105866asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655023188,"filename":"image_23012025_18_55_24_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f07936f6afd3bb7885a8e06a7e6a5bcb.jpg","text":"TemporaryFile(/tmp/multipartBody8091636257323064318asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655023188,"filename":"image_23012025_18_55_36_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a69fdad708ef540a1bb7e9b2fef5c0e3.jpg","text":"TemporaryFile(/tmp/multipartBody7452117428730775950asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655023188,"filename":"image_23012025_18_55_55_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0db10d416f49150ce691dccba564f2d7.jpg","text":"TemporaryFile(/tmp/multipartBody2992916392622205211asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655023188,"filename":"image_23012025_18_55_42_6197.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330845185","file1":"1330845104","file0":"1330845100","file4":"1330845206","file5":"1330845211","file3":"1330845198"},"map_files_photo_id_array":[{"photo_id":"1330845211","filename":"file5"},{"photo_id":"1330845185","filename":"file2"},{"photo_id":"1330845206","filename":"file4"},{"photo_id":"1330845104","filename":"file1"},{"photo_id":"1330845100","filename":"file0"},{"photo_id":"1330845198","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330845206":["hashtag1","hashtag2"]},{"1330845104":["hashtag1","hashtag2"]},{"1330845211":["hashtag1","hashtag2"]},{"1330845198":["hashtag1","hashtag2"]},{"1330845100":["hashtag1","hashtag2"]},{"1330845185":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330845206, 1330845104, 1330845211, 1330845198, 1330845100, 1330845185)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.359060287475586 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:57:02.741707
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/56/image_23012025_18_56_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/18/56/image_23012025_18_56_49_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/18/56/image_23012025_18_56_42_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/18/56/image_23012025_18_56_36_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/18/56/image_23012025_18_56_30_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/18/56/image_23012025_18_56_25_6203.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/56/image_23012025_18_56_55_6188.jpg', '/home/nano/Desktop/images/23012025/18/56/image_23012025_18_56_49_6187.jpg', '/home/nano/Desktop/images/23012025/18/56/image_23012025_18_56_42_6187.jpg', '/home/nano/Desktop/images/23012025/18/56/image_23012025_18_56_36_6191.jpg', '/home/nano/Desktop/images/23012025/18/56/image_23012025_18_56_30_5181.jpg', '/home/nano/Desktop/images/23012025/18/56/image_23012025_18_56_25_6203.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/56/image_23012025_18_56_55_6188.jpg
/home/nano/Desktop/images/23012025/18/56/image_23012025_18_56_49_6187.jpg
/home/nano/Desktop/images/23012025/18/56/image_23012025_18_56_42_6187.jpg
/home/nano/Desktop/images/23012025/18/56/image_23012025_18_56_36_6191.jpg
/home/nano/Desktop/images/23012025/18/56/image_23012025_18_56_30_5181.jpg
/home/nano/Desktop/images/23012025/18/56/image_23012025_18_56_25_6203.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330845518","1330845487","1330845508","1330845453","1330845527","1330845476"],"photo_ids_order":["1330845453","1330845476","1330845487","1330845508","1330845518","1330845527"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/29e4d61edbd993b4890a906aab81f7d9.jpg","text":"TemporaryFile(/tmp/multipartBody8149987703550386786asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655083115,"filename":"image_23012025_18_56_30_5181.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a990d6b00131d155733b8c363541d0a7.jpg","text":"TemporaryFile(/tmp/multipartBody2235018023282974450asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655083115,"filename":"image_23012025_18_56_42_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d3146f5bed198f459446ebe0aeb18fcf.jpg","text":"TemporaryFile(/tmp/multipartBody7801107318733332980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655083115,"filename":"image_23012025_18_56_36_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cb8240dfb3541e071a410513e44c5adc.jpg","text":"TemporaryFile(/tmp/multipartBody7115712127568678936asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655083115,"filename":"image_23012025_18_56_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1614441457422d404774740077d7c0ed.jpg","text":"TemporaryFile(/tmp/multipartBody8921259065405857039asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655083115,"filename":"image_23012025_18_56_25_6203.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a4f21014ec11179ccf5e5a338d68906b.jpg","text":"TemporaryFile(/tmp/multipartBody7656639466470929930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655083115,"filename":"image_23012025_18_56_49_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330845487","file1":"1330845476","file0":"1330845453","file4":"1330845518","file5":"1330845527","file3":"1330845508"},"map_files_photo_id_array":[{"photo_id":"1330845527","filename":"file5"},{"photo_id":"1330845487","filename":"file2"},{"photo_id":"1330845518","filename":"file4"},{"photo_id":"1330845476","filename":"file1"},{"photo_id":"1330845453","filename":"file0"},{"photo_id":"1330845508","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330845518":["hashtag1","hashtag2"]},{"1330845487":["hashtag1","hashtag2"]},{"1330845508":["hashtag1","hashtag2"]},{"1330845453":["hashtag1","hashtag2"]},{"1330845527":["hashtag1","hashtag2"]},{"1330845476":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330845518, 1330845487, 1330845508, 1330845453, 1330845527, 1330845476)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.250316858291626 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 18:59:02.748529
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/57/image_23012025_18_57_55_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/18/57/image_23012025_18_57_49_6185.jpg', 2), ('/home/nano/Desktop/images/23012025/18/57/image_23012025_18_57_42_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/18/57/image_23012025_18_57_36_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/18/57/image_23012025_18_57_30_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/18/57/image_23012025_18_57_25_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/57/image_23012025_18_57_55_6193.jpg', '/home/nano/Desktop/images/23012025/18/57/image_23012025_18_57_49_6185.jpg', '/home/nano/Desktop/images/23012025/18/57/image_23012025_18_57_42_6187.jpg', '/home/nano/Desktop/images/23012025/18/57/image_23012025_18_57_36_6189.jpg', '/home/nano/Desktop/images/23012025/18/57/image_23012025_18_57_30_5178.jpg', '/home/nano/Desktop/images/23012025/18/57/image_23012025_18_57_25_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/57/image_23012025_18_57_55_6193.jpg
/home/nano/Desktop/images/23012025/18/57/image_23012025_18_57_49_6185.jpg
/home/nano/Desktop/images/23012025/18/57/image_23012025_18_57_42_6187.jpg
/home/nano/Desktop/images/23012025/18/57/image_23012025_18_57_36_6189.jpg
/home/nano/Desktop/images/23012025/18/57/image_23012025_18_57_30_5178.jpg
/home/nano/Desktop/images/23012025/18/57/image_23012025_18_57_25_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330845886","1330845891","1330845912","1330845903","1330845896","1330845881"],"photo_ids_order":["1330845881","1330845886","1330845891","1330845896","1330845903","1330845912"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e460bb3ab1740c74bf2a8ca761d590d7.jpg","text":"TemporaryFile(/tmp/multipartBody3962421761606802728asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655203235,"filename":"image_23012025_18_57_49_6185.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/45342bc5916f5f0b76c004ae355f27e1.jpg","text":"TemporaryFile(/tmp/multipartBody264942789509699087asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655203235,"filename":"image_23012025_18_57_42_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0529d915b7eed69b49eda1987cd39093.jpg","text":"TemporaryFile(/tmp/multipartBody1155459056363385843asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655203235,"filename":"image_23012025_18_57_25_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/826092aabaec036c4555e8626f1180dd.jpg","text":"TemporaryFile(/tmp/multipartBody8649921710041172561asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655203235,"filename":"image_23012025_18_57_30_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d34edd4ce001323df2b46f67c3a08a93.jpg","text":"TemporaryFile(/tmp/multipartBody5466149108878257473asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655203235,"filename":"image_23012025_18_57_36_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/23164218da8fe8002c6ca6bb19a9658b.jpg","text":"TemporaryFile(/tmp/multipartBody5786461556477650507asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655203235,"filename":"image_23012025_18_57_55_6193.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330845891","file1":"1330845886","file0":"1330845881","file4":"1330845903","file5":"1330845912","file3":"1330845896"},"map_files_photo_id_array":[{"photo_id":"1330845912","filename":"file5"},{"photo_id":"1330845891","filename":"file2"},{"photo_id":"1330845903","filename":"file4"},{"photo_id":"1330845886","filename":"file1"},{"photo_id":"1330845881","filename":"file0"},{"photo_id":"1330845896","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330845886":["hashtag1","hashtag2"]},{"1330845891":["hashtag1","hashtag2"]},{"1330845912":["hashtag1","hashtag2"]},{"1330845903":["hashtag1","hashtag2"]},{"1330845896":["hashtag1","hashtag2"]},{"1330845881":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330845886, 1330845891, 1330845912, 1330845903, 1330845896, 1330845881)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.557382106781006 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:00:02.411299
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/18/59/image_23012025_18_59_55_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/18/59/image_23012025_18_59_48_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/18/59/image_23012025_18_59_42_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/18/59/image_23012025_18_59_36_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/18/59/image_23012025_18_59_31_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/18/59/image_23012025_18_59_25_6193.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/18/59/image_23012025_18_59_55_6191.jpg', '/home/nano/Desktop/images/23012025/18/59/image_23012025_18_59_48_6193.jpg', '/home/nano/Desktop/images/23012025/18/59/image_23012025_18_59_42_6198.jpg', '/home/nano/Desktop/images/23012025/18/59/image_23012025_18_59_36_5183.jpg', '/home/nano/Desktop/images/23012025/18/59/image_23012025_18_59_31_6191.jpg', '/home/nano/Desktop/images/23012025/18/59/image_23012025_18_59_25_6193.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/18/59/image_23012025_18_59_55_6191.jpg
/home/nano/Desktop/images/23012025/18/59/image_23012025_18_59_48_6193.jpg
/home/nano/Desktop/images/23012025/18/59/image_23012025_18_59_42_6198.jpg
/home/nano/Desktop/images/23012025/18/59/image_23012025_18_59_36_5183.jpg
/home/nano/Desktop/images/23012025/18/59/image_23012025_18_59_31_6191.jpg
/home/nano/Desktop/images/23012025/18/59/image_23012025_18_59_25_6193.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330845997","1330845982","1330845991","1330845987","1330846002","1330845994"],"photo_ids_order":["1330845982","1330845987","1330845991","1330845994","1330845997","1330846002"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3fd922e4e73e47b80b92ab31dc0a1659.jpg","text":"TemporaryFile(/tmp/multipartBody5867098814239033823asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655262934,"filename":"image_23012025_18_59_31_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/52a87f8ed830b1647390cfa549942fdf.jpg","text":"TemporaryFile(/tmp/multipartBody8047654785981899431asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655262934,"filename":"image_23012025_18_59_55_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7e606f68d0aca4f85030b208016f6435.jpg","text":"TemporaryFile(/tmp/multipartBody8253488128236023041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655262934,"filename":"image_23012025_18_59_42_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0ecf46631f4aceb7135d057511d4c5b2.jpg","text":"TemporaryFile(/tmp/multipartBody455284751929327158asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655262934,"filename":"image_23012025_18_59_48_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/947d6e73b1ab54b3458e97e60ee0743c.jpg","text":"TemporaryFile(/tmp/multipartBody3282092253359295056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655262934,"filename":"image_23012025_18_59_25_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3c3ad9d6454ff73126c0f92f4ba2742d.jpg","text":"TemporaryFile(/tmp/multipartBody5711563849841996969asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655262934,"filename":"image_23012025_18_59_36_5183.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330845991","file1":"1330845987","file0":"1330845982","file4":"1330845997","file5":"1330846002","file3":"1330845994"},"map_files_photo_id_array":[{"photo_id":"1330846002","filename":"file5"},{"photo_id":"1330845991","filename":"file2"},{"photo_id":"1330845997","filename":"file4"},{"photo_id":"1330845987","filename":"file1"},{"photo_id":"1330845982","filename":"file0"},{"photo_id":"1330845994","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330845997":["hashtag1","hashtag2"]},{"1330845982":["hashtag1","hashtag2"]},{"1330845991":["hashtag1","hashtag2"]},{"1330845987":["hashtag1","hashtag2"]},{"1330846002":["hashtag1","hashtag2"]},{"1330845994":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330845997, 1330845982, 1330845991, 1330845987, 1330846002, 1330845994)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.20558261871338 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:01:02.704201
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/00/image_23012025_19_00_54_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/19/00/image_23012025_19_00_49_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/19/00/image_23012025_19_00_43_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/19/00/image_23012025_19_00_36_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/19/00/image_23012025_19_00_30_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/19/00/image_23012025_19_00_24_5194.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/00/image_23012025_19_00_54_5186.jpg', '/home/nano/Desktop/images/23012025/19/00/image_23012025_19_00_49_6192.jpg', '/home/nano/Desktop/images/23012025/19/00/image_23012025_19_00_43_6191.jpg', '/home/nano/Desktop/images/23012025/19/00/image_23012025_19_00_36_6191.jpg', '/home/nano/Desktop/images/23012025/19/00/image_23012025_19_00_30_6194.jpg', '/home/nano/Desktop/images/23012025/19/00/image_23012025_19_00_24_5194.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/00/image_23012025_19_00_54_5186.jpg
/home/nano/Desktop/images/23012025/19/00/image_23012025_19_00_49_6192.jpg
/home/nano/Desktop/images/23012025/19/00/image_23012025_19_00_43_6191.jpg
/home/nano/Desktop/images/23012025/19/00/image_23012025_19_00_36_6191.jpg
/home/nano/Desktop/images/23012025/19/00/image_23012025_19_00_30_6194.jpg
/home/nano/Desktop/images/23012025/19/00/image_23012025_19_00_24_5194.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330846045","1330846054","1330846048","1330846035","1330846052","1330846040"],"photo_ids_order":["1330846035","1330846040","1330846045","1330846048","1330846052","1330846054"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/61f4208b059ef0c785f83e153e43b3d3.jpg","text":"TemporaryFile(/tmp/multipartBody685525152605959827asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655323331,"filename":"image_23012025_19_00_43_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6032fb4897eef94c429814781cfa8085.jpg","text":"TemporaryFile(/tmp/multipartBody8527435999307244184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655323331,"filename":"image_23012025_19_00_24_5194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/802f5881861b1139b0ededad73415d72.jpg","text":"TemporaryFile(/tmp/multipartBody4406565833524340298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655323331,"filename":"image_23012025_19_00_36_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0fddd5cd4f5960ec99bd0548fedd4862.jpg","text":"TemporaryFile(/tmp/multipartBody7303252728058688714asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655323331,"filename":"image_23012025_19_00_54_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a740841fc1dbb042a1c3cf5f0e8b4bcd.jpg","text":"TemporaryFile(/tmp/multipartBody4495524742613808499asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655323331,"filename":"image_23012025_19_00_30_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d93fb7d4987b0b66e509363866239b9c.jpg","text":"TemporaryFile(/tmp/multipartBody4130976849533781441asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655323331,"filename":"image_23012025_19_00_49_6192.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330846045","file1":"1330846040","file0":"1330846035","file4":"1330846052","file5":"1330846054","file3":"1330846048"},"map_files_photo_id_array":[{"photo_id":"1330846054","filename":"file5"},{"photo_id":"1330846045","filename":"file2"},{"photo_id":"1330846052","filename":"file4"},{"photo_id":"1330846040","filename":"file1"},{"photo_id":"1330846035","filename":"file0"},{"photo_id":"1330846048","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330846045":["hashtag1","hashtag2"]},{"1330846054":["hashtag1","hashtag2"]},{"1330846048":["hashtag1","hashtag2"]},{"1330846035":["hashtag1","hashtag2"]},{"1330846052":["hashtag1","hashtag2"]},{"1330846040":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330846045, 1330846054, 1330846048, 1330846035, 1330846052, 1330846040)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.099116325378418 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:02:02.524468
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/01/image_23012025_19_01_54_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/19/01/image_23012025_19_01_49_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/01/image_23012025_19_01_43_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/19/01/image_23012025_19_01_36_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/01/image_23012025_19_01_30_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/19/01/image_23012025_19_01_24_5186.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/01/image_23012025_19_01_54_5176.jpg', '/home/nano/Desktop/images/23012025/19/01/image_23012025_19_01_49_6189.jpg', '/home/nano/Desktop/images/23012025/19/01/image_23012025_19_01_43_6198.jpg', '/home/nano/Desktop/images/23012025/19/01/image_23012025_19_01_36_6188.jpg', '/home/nano/Desktop/images/23012025/19/01/image_23012025_19_01_30_6201.jpg', '/home/nano/Desktop/images/23012025/19/01/image_23012025_19_01_24_5186.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/01/image_23012025_19_01_54_5176.jpg
/home/nano/Desktop/images/23012025/19/01/image_23012025_19_01_49_6189.jpg
/home/nano/Desktop/images/23012025/19/01/image_23012025_19_01_43_6198.jpg
/home/nano/Desktop/images/23012025/19/01/image_23012025_19_01_36_6188.jpg
/home/nano/Desktop/images/23012025/19/01/image_23012025_19_01_30_6201.jpg
/home/nano/Desktop/images/23012025/19/01/image_23012025_19_01_24_5186.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330846132","1330846126","1330846122","1330846116","1330846094","1330846139"],"photo_ids_order":["1330846094","1330846116","1330846122","1330846126","1330846132","1330846139"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1c98e36c65970e7fcdf7a7de33085656.jpg","text":"TemporaryFile(/tmp/multipartBody5025736925727869505asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655382974,"filename":"image_23012025_19_01_30_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5279542285050a1d63d106b4d84aaade.jpg","text":"TemporaryFile(/tmp/multipartBody1539652643414761492asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655382974,"filename":"image_23012025_19_01_36_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4d6cb5560b87c7c2ec6f1d5d50fe9f2d.jpg","text":"TemporaryFile(/tmp/multipartBody390259084891529228asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655382974,"filename":"image_23012025_19_01_43_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/edaf439daad1adffdc3f7362af4cf826.jpg","text":"TemporaryFile(/tmp/multipartBody2977178394060601753asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655382974,"filename":"image_23012025_19_01_49_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6c891d1133487c29faf9cd0d0732ad26.jpg","text":"TemporaryFile(/tmp/multipartBody4235859745660418497asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655382974,"filename":"image_23012025_19_01_54_5176.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3f4dadcf93d56227f4a2c14a729b52eb.jpg","text":"TemporaryFile(/tmp/multipartBody4635661600704001852asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655382974,"filename":"image_23012025_19_01_24_5186.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330846122","file1":"1330846116","file0":"1330846094","file4":"1330846132","file5":"1330846139","file3":"1330846126"},"map_files_photo_id_array":[{"photo_id":"1330846139","filename":"file5"},{"photo_id":"1330846122","filename":"file2"},{"photo_id":"1330846132","filename":"file4"},{"photo_id":"1330846116","filename":"file1"},{"photo_id":"1330846094","filename":"file0"},{"photo_id":"1330846126","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330846132":["hashtag1","hashtag2"]},{"1330846126":["hashtag1","hashtag2"]},{"1330846122":["hashtag1","hashtag2"]},{"1330846116":["hashtag1","hashtag2"]},{"1330846094":["hashtag1","hashtag2"]},{"1330846139":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330846132, 1330846126, 1330846122, 1330846116, 1330846094, 1330846139)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.87785363197327 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:03:02.908321
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/03/image_23012025_19_04_00_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/19/02/image_23012025_19_02_55_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/19/02/image_23012025_19_02_49_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/19/02/image_23012025_19_02_42_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/02/image_23012025_19_02_36_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/19/02/image_23012025_19_02_30_5178.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/03/image_23012025_19_04_00_5177.jpg', '/home/nano/Desktop/images/23012025/19/02/image_23012025_19_02_55_6195.jpg', '/home/nano/Desktop/images/23012025/19/02/image_23012025_19_02_49_6191.jpg', '/home/nano/Desktop/images/23012025/19/02/image_23012025_19_02_42_6189.jpg', '/home/nano/Desktop/images/23012025/19/02/image_23012025_19_02_36_6190.jpg', '/home/nano/Desktop/images/23012025/19/02/image_23012025_19_02_30_5178.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/03/image_23012025_19_04_00_5177.jpg
/home/nano/Desktop/images/23012025/19/02/image_23012025_19_02_55_6195.jpg
/home/nano/Desktop/images/23012025/19/02/image_23012025_19_02_49_6191.jpg
/home/nano/Desktop/images/23012025/19/02/image_23012025_19_02_42_6189.jpg
/home/nano/Desktop/images/23012025/19/02/image_23012025_19_02_36_6190.jpg
/home/nano/Desktop/images/23012025/19/02/image_23012025_19_02_30_5178.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330846225","1330846222","1330846201","1330846210","1330846204","1330846206"],"photo_ids_order":["1330846201","1330846204","1330846206","1330846210","1330846222","1330846225"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/999f6ed5d6bb4ce554e71c168dc11143.jpg","text":"TemporaryFile(/tmp/multipartBody8227655968836209667asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655443304,"filename":"image_23012025_19_02_30_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b567d73ca1f9047753c2209fae4b4882.jpg","text":"TemporaryFile(/tmp/multipartBody1046159944794894298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655443304,"filename":"image_23012025_19_02_36_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/02731a0aaed0efc150d9edbbc4023a90.jpg","text":"TemporaryFile(/tmp/multipartBody1922762989113267328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655443304,"filename":"image_23012025_19_04_00_5177.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c323231a7f52ca0795ad3a5ef735e90f.jpg","text":"TemporaryFile(/tmp/multipartBody5930548007208727800asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655443304,"filename":"image_23012025_19_02_42_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6a538ce204b33ead79ac5ddeb5f8de7b.jpg","text":"TemporaryFile(/tmp/multipartBody2843173685038415411asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655443304,"filename":"image_23012025_19_02_55_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8f0d83aed0804b7d6016bd011a52c294.jpg","text":"TemporaryFile(/tmp/multipartBody2166425588242448131asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655443304,"filename":"image_23012025_19_02_49_6191.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330846206","file1":"1330846204","file0":"1330846201","file4":"1330846222","file5":"1330846225","file3":"1330846210"},"map_files_photo_id_array":[{"photo_id":"1330846225","filename":"file5"},{"photo_id":"1330846206","filename":"file2"},{"photo_id":"1330846222","filename":"file4"},{"photo_id":"1330846204","filename":"file1"},{"photo_id":"1330846201","filename":"file0"},{"photo_id":"1330846210","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330846225":["hashtag1","hashtag2"]},{"1330846222":["hashtag1","hashtag2"]},{"1330846201":["hashtag1","hashtag2"]},{"1330846210":["hashtag1","hashtag2"]},{"1330846204":["hashtag1","hashtag2"]},{"1330846206":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330846225, 1330846222, 1330846201, 1330846210, 1330846204, 1330846206)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.14305090904236 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:04:03.085499
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/03/image_23012025_19_03_49_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/19/03/image_23012025_19_03_42_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/03/image_23012025_19_03_36_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/19/03/image_23012025_19_03_30_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/19/03/image_23012025_19_03_25_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/03/image_23012025_19_03_19_6192.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/03/image_23012025_19_03_49_6186.jpg', '/home/nano/Desktop/images/23012025/19/03/image_23012025_19_03_42_6189.jpg', '/home/nano/Desktop/images/23012025/19/03/image_23012025_19_03_36_6192.jpg', '/home/nano/Desktop/images/23012025/19/03/image_23012025_19_03_30_5178.jpg', '/home/nano/Desktop/images/23012025/19/03/image_23012025_19_03_25_6188.jpg', '/home/nano/Desktop/images/23012025/19/03/image_23012025_19_03_19_6192.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/03/image_23012025_19_03_49_6186.jpg
/home/nano/Desktop/images/23012025/19/03/image_23012025_19_03_42_6189.jpg
/home/nano/Desktop/images/23012025/19/03/image_23012025_19_03_36_6192.jpg
/home/nano/Desktop/images/23012025/19/03/image_23012025_19_03_30_5178.jpg
/home/nano/Desktop/images/23012025/19/03/image_23012025_19_03_25_6188.jpg
/home/nano/Desktop/images/23012025/19/03/image_23012025_19_03_19_6192.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330846318","1330846299","1330846320","1330846305","1330846295","1330846308"],"photo_ids_order":["1330846295","1330846299","1330846305","1330846308","1330846318","1330846320"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a907b55076c157fbc8a7f9fc330613b7.jpg","text":"TemporaryFile(/tmp/multipartBody4905092379604817028asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655503506,"filename":"image_23012025_19_03_25_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/56b3bb7d5ef9bcf23da99cdc0c8fb644.jpg","text":"TemporaryFile(/tmp/multipartBody5441454626890206747asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655503506,"filename":"image_23012025_19_03_42_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bea05040a523c145019e8162639ec166.jpg","text":"TemporaryFile(/tmp/multipartBody7930199021473578210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655503506,"filename":"image_23012025_19_03_19_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9dc99af4af3b663155c06ce9fcfee58a.jpg","text":"TemporaryFile(/tmp/multipartBody1756838765936061457asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655503506,"filename":"image_23012025_19_03_36_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0cf67c7589abc1bd89adea0b6b57d2e7.jpg","text":"TemporaryFile(/tmp/multipartBody8246605244589984933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655503506,"filename":"image_23012025_19_03_49_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9169d6086b14ae88a2106ea254ae090c.jpg","text":"TemporaryFile(/tmp/multipartBody7343720371385889201asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655503506,"filename":"image_23012025_19_03_30_5178.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330846305","file1":"1330846299","file0":"1330846295","file4":"1330846318","file5":"1330846320","file3":"1330846308"},"map_files_photo_id_array":[{"photo_id":"1330846320","filename":"file5"},{"photo_id":"1330846305","filename":"file2"},{"photo_id":"1330846318","filename":"file4"},{"photo_id":"1330846299","filename":"file1"},{"photo_id":"1330846295","filename":"file0"},{"photo_id":"1330846308","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330846318":["hashtag1","hashtag2"]},{"1330846299":["hashtag1","hashtag2"]},{"1330846320":["hashtag1","hashtag2"]},{"1330846305":["hashtag1","hashtag2"]},{"1330846295":["hashtag1","hashtag2"]},{"1330846308":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330846318, 1330846299, 1330846320, 1330846305, 1330846295, 1330846308)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.470022201538086 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:05:03.107493
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/04/image_23012025_19_04_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/04/image_23012025_19_04_48_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/19/04/image_23012025_19_04_42_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/19/04/image_23012025_19_04_36_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/19/04/image_23012025_19_04_31_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/19/04/image_23012025_19_04_25_6193.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/04/image_23012025_19_04_55_6188.jpg', '/home/nano/Desktop/images/23012025/19/04/image_23012025_19_04_48_6192.jpg', '/home/nano/Desktop/images/23012025/19/04/image_23012025_19_04_42_6193.jpg', '/home/nano/Desktop/images/23012025/19/04/image_23012025_19_04_36_5180.jpg', '/home/nano/Desktop/images/23012025/19/04/image_23012025_19_04_31_6191.jpg', '/home/nano/Desktop/images/23012025/19/04/image_23012025_19_04_25_6193.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/04/image_23012025_19_04_55_6188.jpg
/home/nano/Desktop/images/23012025/19/04/image_23012025_19_04_48_6192.jpg
/home/nano/Desktop/images/23012025/19/04/image_23012025_19_04_42_6193.jpg
/home/nano/Desktop/images/23012025/19/04/image_23012025_19_04_36_5180.jpg
/home/nano/Desktop/images/23012025/19/04/image_23012025_19_04_31_6191.jpg
/home/nano/Desktop/images/23012025/19/04/image_23012025_19_04_25_6193.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330846408","1330846416","1330846413","1330846424","1330846421","1330846418"],"photo_ids_order":["1330846408","1330846413","1330846416","1330846418","1330846421","1330846424"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e32a2767bed1bdd06714363abd30ea3a.jpg","text":"TemporaryFile(/tmp/multipartBody4955170522874699815asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655563703,"filename":"image_23012025_19_04_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d563bea5aee2c749c367917dafe73486.jpg","text":"TemporaryFile(/tmp/multipartBody9136979704205226368asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655563703,"filename":"image_23012025_19_04_42_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/26cb7522eeee41487ea80c94ee13afad.jpg","text":"TemporaryFile(/tmp/multipartBody5577695919631726129asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655563703,"filename":"image_23012025_19_04_48_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f9a6146e6168026096d22a60519c1acd.jpg","text":"TemporaryFile(/tmp/multipartBody629301562652077123asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655563703,"filename":"image_23012025_19_04_25_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a115094cb3eca517d8f0ec5a8305c387.jpg","text":"TemporaryFile(/tmp/multipartBody9046131703977610066asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655563703,"filename":"image_23012025_19_04_31_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ba7d3acf59625c9b4bd876dccc1e3c2e.jpg","text":"TemporaryFile(/tmp/multipartBody8314261294561444067asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655563703,"filename":"image_23012025_19_04_36_5180.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330846416","file1":"1330846413","file0":"1330846408","file4":"1330846421","file5":"1330846424","file3":"1330846418"},"map_files_photo_id_array":[{"photo_id":"1330846424","filename":"file5"},{"photo_id":"1330846416","filename":"file2"},{"photo_id":"1330846421","filename":"file4"},{"photo_id":"1330846413","filename":"file1"},{"photo_id":"1330846408","filename":"file0"},{"photo_id":"1330846418","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330846408":["hashtag1","hashtag2"]},{"1330846416":["hashtag1","hashtag2"]},{"1330846413":["hashtag1","hashtag2"]},{"1330846424":["hashtag1","hashtag2"]},{"1330846421":["hashtag1","hashtag2"]},{"1330846418":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330846408, 1330846416, 1330846413, 1330846424, 1330846421, 1330846418)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.061506986618042 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:06:03.072166
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/05/image_23012025_19_05_55_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/19/05/image_23012025_19_05_48_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/19/05/image_23012025_19_05_42_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/19/05/image_23012025_19_05_36_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/19/05/image_23012025_19_05_31_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/19/05/image_23012025_19_05_25_6192.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/05/image_23012025_19_05_55_6191.jpg', '/home/nano/Desktop/images/23012025/19/05/image_23012025_19_05_48_6200.jpg', '/home/nano/Desktop/images/23012025/19/05/image_23012025_19_05_42_6202.jpg', '/home/nano/Desktop/images/23012025/19/05/image_23012025_19_05_36_5184.jpg', '/home/nano/Desktop/images/23012025/19/05/image_23012025_19_05_31_6191.jpg', '/home/nano/Desktop/images/23012025/19/05/image_23012025_19_05_25_6192.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/05/image_23012025_19_05_55_6191.jpg
/home/nano/Desktop/images/23012025/19/05/image_23012025_19_05_48_6200.jpg
/home/nano/Desktop/images/23012025/19/05/image_23012025_19_05_42_6202.jpg
/home/nano/Desktop/images/23012025/19/05/image_23012025_19_05_36_5184.jpg
/home/nano/Desktop/images/23012025/19/05/image_23012025_19_05_31_6191.jpg
/home/nano/Desktop/images/23012025/19/05/image_23012025_19_05_25_6192.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330846456","1330846467","1330846481","1330846460","1330846463","1330846474"],"photo_ids_order":["1330846456","1330846460","1330846463","1330846467","1330846474","1330846481"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4f338f064c92b0f91f013deeba5f8e7f.jpg","text":"TemporaryFile(/tmp/multipartBody8293470511812316011asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655623616,"filename":"image_23012025_19_05_55_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7eb1eb3c8d4e2bae994da9108ea9286b.jpg","text":"TemporaryFile(/tmp/multipartBody6059440408710615869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655623616,"filename":"image_23012025_19_05_36_5184.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f81f6f4259e797f84bcba228cc50d4b3.jpg","text":"TemporaryFile(/tmp/multipartBody7339059100049447536asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655623616,"filename":"image_23012025_19_05_25_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/10850ff73953d458c730f85750dac647.jpg","text":"TemporaryFile(/tmp/multipartBody7747310613224977529asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655623616,"filename":"image_23012025_19_05_48_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/65eab70b3b03b81ad6130f0f20f80f4b.jpg","text":"TemporaryFile(/tmp/multipartBody7904788737773209598asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655623616,"filename":"image_23012025_19_05_42_6202.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5fe9133515d898c9d8fc85ea7f5b9d82.jpg","text":"TemporaryFile(/tmp/multipartBody5041924826439241659asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655623616,"filename":"image_23012025_19_05_31_6191.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330846463","file1":"1330846460","file0":"1330846456","file4":"1330846474","file5":"1330846481","file3":"1330846467"},"map_files_photo_id_array":[{"photo_id":"1330846481","filename":"file5"},{"photo_id":"1330846463","filename":"file2"},{"photo_id":"1330846474","filename":"file4"},{"photo_id":"1330846460","filename":"file1"},{"photo_id":"1330846456","filename":"file0"},{"photo_id":"1330846467","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330846456":["hashtag1","hashtag2"]},{"1330846467":["hashtag1","hashtag2"]},{"1330846481":["hashtag1","hashtag2"]},{"1330846460":["hashtag1","hashtag2"]},{"1330846463":["hashtag1","hashtag2"]},{"1330846474":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330846456, 1330846467, 1330846481, 1330846460, 1330846463, 1330846474)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.478130340576172 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:07:03.175533
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/06/image_23012025_19_06_54_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/06/image_23012025_19_06_48_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/19/06/image_23012025_19_06_42_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/19/06/image_23012025_19_06_36_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/19/06/image_23012025_19_06_31_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/06/image_23012025_19_06_25_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/06/image_23012025_19_06_54_6188.jpg', '/home/nano/Desktop/images/23012025/19/06/image_23012025_19_06_48_6186.jpg', '/home/nano/Desktop/images/23012025/19/06/image_23012025_19_06_42_6186.jpg', '/home/nano/Desktop/images/23012025/19/06/image_23012025_19_06_36_5178.jpg', '/home/nano/Desktop/images/23012025/19/06/image_23012025_19_06_31_6187.jpg', '/home/nano/Desktop/images/23012025/19/06/image_23012025_19_06_25_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/06/image_23012025_19_06_54_6188.jpg
/home/nano/Desktop/images/23012025/19/06/image_23012025_19_06_48_6186.jpg
/home/nano/Desktop/images/23012025/19/06/image_23012025_19_06_42_6186.jpg
/home/nano/Desktop/images/23012025/19/06/image_23012025_19_06_36_5178.jpg
/home/nano/Desktop/images/23012025/19/06/image_23012025_19_06_31_6187.jpg
/home/nano/Desktop/images/23012025/19/06/image_23012025_19_06_25_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330847430","1330847433","1330847427","1330847415","1330847435","1330847365"],"photo_ids_order":["1330847365","1330847415","1330847427","1330847430","1330847433","1330847435"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a0f916608ba31bb6af1b80936382c2d6.jpg","text":"TemporaryFile(/tmp/multipartBody5574702305744577181asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655683608,"filename":"image_23012025_19_06_36_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a0d9e696401f878bb5d1a5e52de08173.jpg","text":"TemporaryFile(/tmp/multipartBody1414305753147702505asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655683608,"filename":"image_23012025_19_06_31_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e0b52db64440027cff55d46b4be0b969.jpg","text":"TemporaryFile(/tmp/multipartBody256895966195690699asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655683608,"filename":"image_23012025_19_06_42_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f9da2a6ede235cd6a6e438dde0723993.jpg","text":"TemporaryFile(/tmp/multipartBody2255759440692721508asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655683608,"filename":"image_23012025_19_06_48_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c23c563cdf00770324ae0ad445a9d482.jpg","text":"TemporaryFile(/tmp/multipartBody3344417085317370967asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655683608,"filename":"image_23012025_19_06_25_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4a64848669cf66d834fbf85d13d7cb58.jpg","text":"TemporaryFile(/tmp/multipartBody4362803029704703373asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655683608,"filename":"image_23012025_19_06_54_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330847427","file1":"1330847415","file0":"1330847365","file4":"1330847433","file5":"1330847435","file3":"1330847430"},"map_files_photo_id_array":[{"photo_id":"1330847435","filename":"file5"},{"photo_id":"1330847427","filename":"file2"},{"photo_id":"1330847433","filename":"file4"},{"photo_id":"1330847415","filename":"file1"},{"photo_id":"1330847365","filename":"file0"},{"photo_id":"1330847430","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330847430":["hashtag1","hashtag2"]},{"1330847433":["hashtag1","hashtag2"]},{"1330847427":["hashtag1","hashtag2"]},{"1330847415":["hashtag1","hashtag2"]},{"1330847435":["hashtag1","hashtag2"]},{"1330847365":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330847430, 1330847433, 1330847427, 1330847415, 1330847435, 1330847365)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.339963674545288 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:08:03.287855
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/07/image_23012025_19_07_54_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/07/image_23012025_19_07_48_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/07/image_23012025_19_07_42_5201.jpg', 2), ('/home/nano/Desktop/images/23012025/19/07/image_23012025_19_07_37_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/07/image_23012025_19_07_31_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/07/image_23012025_19_07_24_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/07/image_23012025_19_07_54_6189.jpg', '/home/nano/Desktop/images/23012025/19/07/image_23012025_19_07_48_6187.jpg', '/home/nano/Desktop/images/23012025/19/07/image_23012025_19_07_42_5201.jpg', '/home/nano/Desktop/images/23012025/19/07/image_23012025_19_07_37_6187.jpg', '/home/nano/Desktop/images/23012025/19/07/image_23012025_19_07_31_6187.jpg', '/home/nano/Desktop/images/23012025/19/07/image_23012025_19_07_24_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/07/image_23012025_19_07_54_6189.jpg
/home/nano/Desktop/images/23012025/19/07/image_23012025_19_07_48_6187.jpg
/home/nano/Desktop/images/23012025/19/07/image_23012025_19_07_42_5201.jpg
/home/nano/Desktop/images/23012025/19/07/image_23012025_19_07_37_6187.jpg
/home/nano/Desktop/images/23012025/19/07/image_23012025_19_07_31_6187.jpg
/home/nano/Desktop/images/23012025/19/07/image_23012025_19_07_24_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330847484","1330847486","1330847482","1330847476","1330847479","1330847566"],"photo_ids_order":["1330847476","1330847479","1330847482","1330847484","1330847486","1330847566"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/502bad4f137aed34feb63a55fbf771cd.jpg","text":"TemporaryFile(/tmp/multipartBody5852724876469844442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655743689,"filename":"image_23012025_19_07_37_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3db3fe6703cc7399f8b67858f2dc7455.jpg","text":"TemporaryFile(/tmp/multipartBody7418305805654570594asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655743689,"filename":"image_23012025_19_07_31_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/dde34927871fedb0d844d8209ae676fb.jpg","text":"TemporaryFile(/tmp/multipartBody2679123044730490696asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655743689,"filename":"image_23012025_19_07_42_5201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e6db21d58272a89f70b2211838362877.jpg","text":"TemporaryFile(/tmp/multipartBody2588810447948821659asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655743689,"filename":"image_23012025_19_07_54_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/253246c08e42862c0a6f9925a92cbf0a.jpg","text":"TemporaryFile(/tmp/multipartBody8439811940434451532asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655743689,"filename":"image_23012025_19_07_48_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1245320bc7dd634921313f673e98dc18.jpg","text":"TemporaryFile(/tmp/multipartBody8826688891616413231asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655743689,"filename":"image_23012025_19_07_24_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330847482","file1":"1330847479","file0":"1330847476","file4":"1330847486","file5":"1330847566","file3":"1330847484"},"map_files_photo_id_array":[{"photo_id":"1330847566","filename":"file5"},{"photo_id":"1330847482","filename":"file2"},{"photo_id":"1330847486","filename":"file4"},{"photo_id":"1330847479","filename":"file1"},{"photo_id":"1330847476","filename":"file0"},{"photo_id":"1330847484","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330847484":["hashtag1","hashtag2"]},{"1330847486":["hashtag1","hashtag2"]},{"1330847482":["hashtag1","hashtag2"]},{"1330847476":["hashtag1","hashtag2"]},{"1330847479":["hashtag1","hashtag2"]},{"1330847566":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330847484, 1330847486, 1330847482, 1330847476, 1330847479, 1330847566)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.266377449035645 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:09:02.768839
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/08/image_23012025_19_08_54_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/19/08/image_23012025_19_08_48_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/08/image_23012025_19_08_42_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/19/08/image_23012025_19_08_37_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/19/08/image_23012025_19_08_31_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/19/08/image_23012025_19_08_24_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/08/image_23012025_19_08_54_6192.jpg', '/home/nano/Desktop/images/23012025/19/08/image_23012025_19_08_48_6189.jpg', '/home/nano/Desktop/images/23012025/19/08/image_23012025_19_08_42_5180.jpg', '/home/nano/Desktop/images/23012025/19/08/image_23012025_19_08_37_6192.jpg', '/home/nano/Desktop/images/23012025/19/08/image_23012025_19_08_31_6186.jpg', '/home/nano/Desktop/images/23012025/19/08/image_23012025_19_08_24_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/08/image_23012025_19_08_54_6192.jpg
/home/nano/Desktop/images/23012025/19/08/image_23012025_19_08_48_6189.jpg
/home/nano/Desktop/images/23012025/19/08/image_23012025_19_08_42_5180.jpg
/home/nano/Desktop/images/23012025/19/08/image_23012025_19_08_37_6192.jpg
/home/nano/Desktop/images/23012025/19/08/image_23012025_19_08_31_6186.jpg
/home/nano/Desktop/images/23012025/19/08/image_23012025_19_08_24_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330847927","1330847941","1330847929","1330847923","1330847917","1330847932"],"photo_ids_order":["1330847917","1330847923","1330847927","1330847929","1330847932","1330847941"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2698383c09ce64ec1aa4cd4be4bf65ef.jpg","text":"TemporaryFile(/tmp/multipartBody3028209474657482670asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655803256,"filename":"image_23012025_19_08_42_5180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4edb572a5bbab25f1de52e60c38c942a.jpg","text":"TemporaryFile(/tmp/multipartBody1131627740520216572asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655803256,"filename":"image_23012025_19_08_24_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4c1c922e5bb357106bc9d9a9703c46f4.jpg","text":"TemporaryFile(/tmp/multipartBody4088358976699791273asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655803256,"filename":"image_23012025_19_08_37_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/31dc25249e84dc2c1fe478a47d816f50.jpg","text":"TemporaryFile(/tmp/multipartBody7160968387553713551asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655803256,"filename":"image_23012025_19_08_48_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b17ace72fbc300c3d945d99b69ca74a8.jpg","text":"TemporaryFile(/tmp/multipartBody7020771285192113936asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655803256,"filename":"image_23012025_19_08_54_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c93751a76eb3515b9ad65e6ad6b718d6.jpg","text":"TemporaryFile(/tmp/multipartBody1489301614347831632asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655803256,"filename":"image_23012025_19_08_31_6186.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330847927","file1":"1330847923","file0":"1330847917","file4":"1330847932","file5":"1330847941","file3":"1330847929"},"map_files_photo_id_array":[{"photo_id":"1330847941","filename":"file5"},{"photo_id":"1330847927","filename":"file2"},{"photo_id":"1330847932","filename":"file4"},{"photo_id":"1330847923","filename":"file1"},{"photo_id":"1330847917","filename":"file0"},{"photo_id":"1330847929","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330847927":["hashtag1","hashtag2"]},{"1330847941":["hashtag1","hashtag2"]},{"1330847929":["hashtag1","hashtag2"]},{"1330847923":["hashtag1","hashtag2"]},{"1330847917":["hashtag1","hashtag2"]},{"1330847932":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330847927, 1330847941, 1330847929, 1330847923, 1330847917, 1330847932)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.67578959465027 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:10:02.479368
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/09/image_23012025_19_09_54_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/09/image_23012025_19_09_48_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/19/09/image_23012025_19_09_43_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/19/09/image_23012025_19_09_37_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/09/image_23012025_19_09_30_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/19/09/image_23012025_19_09_24_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/09/image_23012025_19_09_54_6189.jpg', '/home/nano/Desktop/images/23012025/19/09/image_23012025_19_09_48_5180.jpg', '/home/nano/Desktop/images/23012025/19/09/image_23012025_19_09_43_6193.jpg', '/home/nano/Desktop/images/23012025/19/09/image_23012025_19_09_37_6189.jpg', '/home/nano/Desktop/images/23012025/19/09/image_23012025_19_09_30_6196.jpg', '/home/nano/Desktop/images/23012025/19/09/image_23012025_19_09_24_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/09/image_23012025_19_09_54_6189.jpg
/home/nano/Desktop/images/23012025/19/09/image_23012025_19_09_48_5180.jpg
/home/nano/Desktop/images/23012025/19/09/image_23012025_19_09_43_6193.jpg
/home/nano/Desktop/images/23012025/19/09/image_23012025_19_09_37_6189.jpg
/home/nano/Desktop/images/23012025/19/09/image_23012025_19_09_30_6196.jpg
/home/nano/Desktop/images/23012025/19/09/image_23012025_19_09_24_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330848033","1330848009","1330848003","1330848041","1330847996","1330848013"],"photo_ids_order":["1330847996","1330848003","1330848009","1330848013","1330848033","1330848041"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b506838e497974e12f25cc232f8f8258.jpg","text":"TemporaryFile(/tmp/multipartBody3119810965798325762asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655862958,"filename":"image_23012025_19_09_30_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d26c78d86f46cf29cdb1679f37985aa5.jpg","text":"TemporaryFile(/tmp/multipartBody6700011241017463745asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655862958,"filename":"image_23012025_19_09_43_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7c5e0152013e46b8aa35734d2d95115b.jpg","text":"TemporaryFile(/tmp/multipartBody5255258582436990440asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655862958,"filename":"image_23012025_19_09_48_5180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ba3a3777a13a927fc7d6bcfa5fdd1bd9.jpg","text":"TemporaryFile(/tmp/multipartBody7713139678992828305asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655862958,"filename":"image_23012025_19_09_24_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fa846611b86dfee358be58f197c44adb.jpg","text":"TemporaryFile(/tmp/multipartBody141185946576780542asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655862958,"filename":"image_23012025_19_09_54_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/727cc04149fd41fdb33c6624131a7e1c.jpg","text":"TemporaryFile(/tmp/multipartBody194885562765493623asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655862958,"filename":"image_23012025_19_09_37_6189.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330848009","file1":"1330848003","file0":"1330847996","file4":"1330848033","file5":"1330848041","file3":"1330848013"},"map_files_photo_id_array":[{"photo_id":"1330848041","filename":"file5"},{"photo_id":"1330848009","filename":"file2"},{"photo_id":"1330848033","filename":"file4"},{"photo_id":"1330848003","filename":"file1"},{"photo_id":"1330847996","filename":"file0"},{"photo_id":"1330848013","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330848033":["hashtag1","hashtag2"]},{"1330848009":["hashtag1","hashtag2"]},{"1330848003":["hashtag1","hashtag2"]},{"1330848041":["hashtag1","hashtag2"]},{"1330847996":["hashtag1","hashtag2"]},{"1330848013":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330848033, 1330848009, 1330848003, 1330848041, 1330847996, 1330848013)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.76039433479309 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:11:02.599856
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/10/image_23012025_19_10_54_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/19/10/image_23012025_19_10_48_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/19/10/image_23012025_19_10_43_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/19/10/image_23012025_19_10_37_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/10/image_23012025_19_10_30_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/19/10/image_23012025_19_10_24_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/10/image_23012025_19_10_54_6209.jpg', '/home/nano/Desktop/images/23012025/19/10/image_23012025_19_10_48_5185.jpg', '/home/nano/Desktop/images/23012025/19/10/image_23012025_19_10_43_6195.jpg', '/home/nano/Desktop/images/23012025/19/10/image_23012025_19_10_37_6188.jpg', '/home/nano/Desktop/images/23012025/19/10/image_23012025_19_10_30_6186.jpg', '/home/nano/Desktop/images/23012025/19/10/image_23012025_19_10_24_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/10/image_23012025_19_10_54_6209.jpg
/home/nano/Desktop/images/23012025/19/10/image_23012025_19_10_48_5185.jpg
/home/nano/Desktop/images/23012025/19/10/image_23012025_19_10_43_6195.jpg
/home/nano/Desktop/images/23012025/19/10/image_23012025_19_10_37_6188.jpg
/home/nano/Desktop/images/23012025/19/10/image_23012025_19_10_30_6186.jpg
/home/nano/Desktop/images/23012025/19/10/image_23012025_19_10_24_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330848318","1330848314","1330848344","1330848317","1330848340","1330848310"],"photo_ids_order":["1330848310","1330848314","1330848317","1330848318","1330848340","1330848344"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f67e5e56097e591f41b12139eb5cf1f6.jpg","text":"TemporaryFile(/tmp/multipartBody322868996448909574asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655923139,"filename":"image_23012025_19_10_37_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b80fa2072ee28b088935cddb149d5bec.jpg","text":"TemporaryFile(/tmp/multipartBody4531268823914302895asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655923139,"filename":"image_23012025_19_10_48_5185.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bdeec8a9b502c2b78eebd74e86ecc76c.jpg","text":"TemporaryFile(/tmp/multipartBody1504239953086137786asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655923139,"filename":"image_23012025_19_10_24_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/33e777d657d4e942057605d362c24446.jpg","text":"TemporaryFile(/tmp/multipartBody1947162237577799123asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655923139,"filename":"image_23012025_19_10_43_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/659b16491fd127924793a08f3d776385.jpg","text":"TemporaryFile(/tmp/multipartBody5662211689839055287asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655923139,"filename":"image_23012025_19_10_30_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/363ffdb987f6e21db2e862bc33859196.jpg","text":"TemporaryFile(/tmp/multipartBody2780692043671183836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655923139,"filename":"image_23012025_19_10_54_6209.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330848317","file1":"1330848314","file0":"1330848310","file4":"1330848340","file5":"1330848344","file3":"1330848318"},"map_files_photo_id_array":[{"photo_id":"1330848344","filename":"file5"},{"photo_id":"1330848317","filename":"file2"},{"photo_id":"1330848340","filename":"file4"},{"photo_id":"1330848314","filename":"file1"},{"photo_id":"1330848310","filename":"file0"},{"photo_id":"1330848318","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330848318":["hashtag1","hashtag2"]},{"1330848314":["hashtag1","hashtag2"]},{"1330848344":["hashtag1","hashtag2"]},{"1330848317":["hashtag1","hashtag2"]},{"1330848340":["hashtag1","hashtag2"]},{"1330848310":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330848318, 1330848314, 1330848344, 1330848317, 1330848340, 1330848310)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.76112723350525 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:12:02.487289
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/11/image_23012025_19_11_54_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/19/11/image_23012025_19_11_49_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/19/11/image_23012025_19_11_43_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/11/image_23012025_19_11_36_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/11/image_23012025_19_11_30_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/19/11/image_23012025_19_11_24_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/11/image_23012025_19_11_54_5182.jpg', '/home/nano/Desktop/images/23012025/19/11/image_23012025_19_11_49_6190.jpg', '/home/nano/Desktop/images/23012025/19/11/image_23012025_19_11_43_6187.jpg', '/home/nano/Desktop/images/23012025/19/11/image_23012025_19_11_36_6189.jpg', '/home/nano/Desktop/images/23012025/19/11/image_23012025_19_11_30_6191.jpg', '/home/nano/Desktop/images/23012025/19/11/image_23012025_19_11_24_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/11/image_23012025_19_11_54_5182.jpg
/home/nano/Desktop/images/23012025/19/11/image_23012025_19_11_49_6190.jpg
/home/nano/Desktop/images/23012025/19/11/image_23012025_19_11_43_6187.jpg
/home/nano/Desktop/images/23012025/19/11/image_23012025_19_11_36_6189.jpg
/home/nano/Desktop/images/23012025/19/11/image_23012025_19_11_30_6191.jpg
/home/nano/Desktop/images/23012025/19/11/image_23012025_19_11_24_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330848440","1330848434","1330848428","1330848437","1330848445","1330848430"],"photo_ids_order":["1330848428","1330848430","1330848434","1330848437","1330848440","1330848445"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c66c184ffc9bee8111319f8d91cdb9cb.jpg","text":"TemporaryFile(/tmp/multipartBody2764819826539157057asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655982894,"filename":"image_23012025_19_11_30_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/820a2ce39f96ccf534715ddbbd4104f0.jpg","text":"TemporaryFile(/tmp/multipartBody72621394233525150asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655982894,"filename":"image_23012025_19_11_43_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f7ffb932698380721d81cb13b8de3c8b.jpg","text":"TemporaryFile(/tmp/multipartBody660293574740145902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655982894,"filename":"image_23012025_19_11_54_5182.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5889200c4bb874e3ea9ecc928e9c255c.jpg","text":"TemporaryFile(/tmp/multipartBody5505596350520355239asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655982894,"filename":"image_23012025_19_11_36_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/559665bd39c1997ddfc826666d658930.jpg","text":"TemporaryFile(/tmp/multipartBody3395507319875132161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655982894,"filename":"image_23012025_19_11_24_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/dc974ace61dc93342a62910613ed0a42.jpg","text":"TemporaryFile(/tmp/multipartBody2046718802743226302asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737655982894,"filename":"image_23012025_19_11_49_6190.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330848434","file1":"1330848430","file0":"1330848428","file4":"1330848440","file5":"1330848445","file3":"1330848437"},"map_files_photo_id_array":[{"photo_id":"1330848445","filename":"file5"},{"photo_id":"1330848434","filename":"file2"},{"photo_id":"1330848440","filename":"file4"},{"photo_id":"1330848430","filename":"file1"},{"photo_id":"1330848428","filename":"file0"},{"photo_id":"1330848437","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330848440":["hashtag1","hashtag2"]},{"1330848434":["hashtag1","hashtag2"]},{"1330848428":["hashtag1","hashtag2"]},{"1330848437":["hashtag1","hashtag2"]},{"1330848445":["hashtag1","hashtag2"]},{"1330848430":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330848440, 1330848434, 1330848428, 1330848437, 1330848445, 1330848430)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.83400917053223 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:13:02.905673
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/13/image_23012025_19_14_00_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/19/12/image_23012025_19_12_54_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/19/12/image_23012025_19_12_49_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/19/12/image_23012025_19_12_43_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/19/12/image_23012025_19_12_36_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/19/12/image_23012025_19_12_30_6201.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/13/image_23012025_19_14_00_6207.jpg', '/home/nano/Desktop/images/23012025/19/12/image_23012025_19_12_54_5190.jpg', '/home/nano/Desktop/images/23012025/19/12/image_23012025_19_12_49_6194.jpg', '/home/nano/Desktop/images/23012025/19/12/image_23012025_19_12_43_6195.jpg', '/home/nano/Desktop/images/23012025/19/12/image_23012025_19_12_36_6195.jpg', '/home/nano/Desktop/images/23012025/19/12/image_23012025_19_12_30_6201.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/13/image_23012025_19_14_00_6207.jpg
/home/nano/Desktop/images/23012025/19/12/image_23012025_19_12_54_5190.jpg
/home/nano/Desktop/images/23012025/19/12/image_23012025_19_12_49_6194.jpg
/home/nano/Desktop/images/23012025/19/12/image_23012025_19_12_43_6195.jpg
/home/nano/Desktop/images/23012025/19/12/image_23012025_19_12_36_6195.jpg
/home/nano/Desktop/images/23012025/19/12/image_23012025_19_12_30_6201.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330848491","1330848485","1330848488","1330848493","1330848496","1330848483"],"photo_ids_order":["1330848483","1330848485","1330848488","1330848491","1330848493","1330848496"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b1b03f88ad37d45e13ed2e43f2b63363.jpg","text":"TemporaryFile(/tmp/multipartBody8418165742115333706asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656043553,"filename":"image_23012025_19_12_43_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/495b4e0b28f54a70742e94bdc915eb55.jpg","text":"TemporaryFile(/tmp/multipartBody481744282549979821asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656043553,"filename":"image_23012025_19_12_54_5190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/de02db9471afe526eb4b47675c6c7921.jpg","text":"TemporaryFile(/tmp/multipartBody9047818908628196110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656043553,"filename":"image_23012025_19_12_49_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/208bbb41b29e945552349d1373ba9a43.jpg","text":"TemporaryFile(/tmp/multipartBody7048129106405228573asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656043553,"filename":"image_23012025_19_12_36_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b4f4322787a988720357354575ce8581.jpg","text":"TemporaryFile(/tmp/multipartBody6358202766055620019asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656043553,"filename":"image_23012025_19_12_30_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b90b0d43aafde866b665bb498068b8a2.jpg","text":"TemporaryFile(/tmp/multipartBody8881688547085694114asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656043553,"filename":"image_23012025_19_14_00_6207.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330848488","file1":"1330848485","file0":"1330848483","file4":"1330848493","file5":"1330848496","file3":"1330848491"},"map_files_photo_id_array":[{"photo_id":"1330848496","filename":"file5"},{"photo_id":"1330848488","filename":"file2"},{"photo_id":"1330848493","filename":"file4"},{"photo_id":"1330848485","filename":"file1"},{"photo_id":"1330848483","filename":"file0"},{"photo_id":"1330848491","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330848491":["hashtag1","hashtag2"]},{"1330848485":["hashtag1","hashtag2"]},{"1330848488":["hashtag1","hashtag2"]},{"1330848493":["hashtag1","hashtag2"]},{"1330848496":["hashtag1","hashtag2"]},{"1330848483":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330848491, 1330848485, 1330848488, 1330848493, 1330848496, 1330848483)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.85386633872986 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:14:03.103143
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/13/image_23012025_19_13_49_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/19/13/image_23012025_19_13_43_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/19/13/image_23012025_19_13_36_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/19/13/image_23012025_19_13_30_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/19/13/image_23012025_19_13_24_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/13/image_23012025_19_13_19_6189.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/13/image_23012025_19_13_49_6191.jpg', '/home/nano/Desktop/images/23012025/19/13/image_23012025_19_13_43_6191.jpg', '/home/nano/Desktop/images/23012025/19/13/image_23012025_19_13_36_6191.jpg', '/home/nano/Desktop/images/23012025/19/13/image_23012025_19_13_30_6197.jpg', '/home/nano/Desktop/images/23012025/19/13/image_23012025_19_13_24_5188.jpg', '/home/nano/Desktop/images/23012025/19/13/image_23012025_19_13_19_6189.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/13/image_23012025_19_13_49_6191.jpg
/home/nano/Desktop/images/23012025/19/13/image_23012025_19_13_43_6191.jpg
/home/nano/Desktop/images/23012025/19/13/image_23012025_19_13_36_6191.jpg
/home/nano/Desktop/images/23012025/19/13/image_23012025_19_13_30_6197.jpg
/home/nano/Desktop/images/23012025/19/13/image_23012025_19_13_24_5188.jpg
/home/nano/Desktop/images/23012025/19/13/image_23012025_19_13_19_6189.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.7141313552856445 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:14:32.276763
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/14/image_23012025_19_14_54_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/19/14/image_23012025_19_14_49_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/19/14/image_23012025_19_14_43_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/19/14/image_23012025_19_14_36_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/19/14/image_23012025_19_14_30_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/19/14/image_23012025_19_14_24_5188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/14/image_23012025_19_14_54_5186.jpg', '/home/nano/Desktop/images/23012025/19/14/image_23012025_19_14_49_6196.jpg', '/home/nano/Desktop/images/23012025/19/14/image_23012025_19_14_43_6191.jpg', '/home/nano/Desktop/images/23012025/19/14/image_23012025_19_14_36_6203.jpg', '/home/nano/Desktop/images/23012025/19/14/image_23012025_19_14_30_6204.jpg', '/home/nano/Desktop/images/23012025/19/14/image_23012025_19_14_24_5188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/14/image_23012025_19_14_54_5186.jpg
/home/nano/Desktop/images/23012025/19/14/image_23012025_19_14_49_6196.jpg
/home/nano/Desktop/images/23012025/19/14/image_23012025_19_14_43_6191.jpg
/home/nano/Desktop/images/23012025/19/14/image_23012025_19_14_36_6203.jpg
/home/nano/Desktop/images/23012025/19/14/image_23012025_19_14_30_6204.jpg
/home/nano/Desktop/images/23012025/19/14/image_23012025_19_14_24_5188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330848600","1330848603","1330848590","1330848584","1330848595","1330848580"],"photo_ids_order":["1330848580","1330848584","1330848590","1330848595","1330848600","1330848603"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/606e10b1f351d76b3de94ed608a95947.jpg","text":"TemporaryFile(/tmp/multipartBody8330301375529445500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656132967,"filename":"image_23012025_19_14_30_6204.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/19acdccd73f2a24bcf38c943c0da0c8e.jpg","text":"TemporaryFile(/tmp/multipartBody8192681800502473953asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656132967,"filename":"image_23012025_19_14_24_5188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fc928b1529c2b9eccef442451d6f6b6c.jpg","text":"TemporaryFile(/tmp/multipartBody8266586677073496166asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656132967,"filename":"image_23012025_19_14_43_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9937217e818a546a8cb399f0a34db5f2.jpg","text":"TemporaryFile(/tmp/multipartBody1528007935571134229asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656132967,"filename":"image_23012025_19_14_49_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/51096cfd8ab5ee43fdea2f7370543794.jpg","text":"TemporaryFile(/tmp/multipartBody5351137337827113420asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656132967,"filename":"image_23012025_19_14_36_6203.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/63ed45f377adfe8021966b4ca0067ae7.jpg","text":"TemporaryFile(/tmp/multipartBody3245925051545883007asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656132967,"filename":"image_23012025_19_14_54_5186.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330848590","file1":"1330848584","file0":"1330848580","file4":"1330848600","file5":"1330848603","file3":"1330848595"},"map_files_photo_id_array":[{"photo_id":"1330848603","filename":"file5"},{"photo_id":"1330848590","filename":"file2"},{"photo_id":"1330848600","filename":"file4"},{"photo_id":"1330848584","filename":"file1"},{"photo_id":"1330848580","filename":"file0"},{"photo_id":"1330848595","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330848600":["hashtag1","hashtag2"]},{"1330848603":["hashtag1","hashtag2"]},{"1330848590":["hashtag1","hashtag2"]},{"1330848584":["hashtag1","hashtag2"]},{"1330848595":["hashtag1","hashtag2"]},{"1330848580":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330848600, 1330848603, 1330848590, 1330848584, 1330848595, 1330848580)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.726632118225098 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:15:32.415040
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/15/image_23012025_19_15_54_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/15/image_23012025_19_15_49_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/19/15/image_23012025_19_15_43_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/19/15/image_23012025_19_15_36_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/19/15/image_23012025_19_15_30_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/19/15/image_23012025_19_15_24_5186.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/15/image_23012025_19_15_54_5188.jpg', '/home/nano/Desktop/images/23012025/19/15/image_23012025_19_15_49_6196.jpg', '/home/nano/Desktop/images/23012025/19/15/image_23012025_19_15_43_6193.jpg', '/home/nano/Desktop/images/23012025/19/15/image_23012025_19_15_36_6191.jpg', '/home/nano/Desktop/images/23012025/19/15/image_23012025_19_15_30_6202.jpg', '/home/nano/Desktop/images/23012025/19/15/image_23012025_19_15_24_5186.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/15/image_23012025_19_15_54_5188.jpg
/home/nano/Desktop/images/23012025/19/15/image_23012025_19_15_49_6196.jpg
/home/nano/Desktop/images/23012025/19/15/image_23012025_19_15_43_6193.jpg
/home/nano/Desktop/images/23012025/19/15/image_23012025_19_15_36_6191.jpg
/home/nano/Desktop/images/23012025/19/15/image_23012025_19_15_30_6202.jpg
/home/nano/Desktop/images/23012025/19/15/image_23012025_19_15_24_5186.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330848627","1330848674","1330848656","1330848640","1330848622","1330848666"],"photo_ids_order":["1330848622","1330848627","1330848640","1330848656","1330848666","1330848674"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ec02d20544fa8daa3409efe443af8708.jpg","text":"TemporaryFile(/tmp/multipartBody876722583309956183asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656193110,"filename":"image_23012025_19_15_49_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/12210362324b0d664d5a9ca86a12da17.jpg","text":"TemporaryFile(/tmp/multipartBody1336029559899534690asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656193110,"filename":"image_23012025_19_15_24_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/510db3face4b5c664f054741bc6bf22d.jpg","text":"TemporaryFile(/tmp/multipartBody8296444105667635596asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656193110,"filename":"image_23012025_19_15_36_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/48e4e52b6a8438a148b6a693811ad2d3.jpg","text":"TemporaryFile(/tmp/multipartBody2005132362798109789asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656193110,"filename":"image_23012025_19_15_43_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9aecf57b62f20efa086ea36df5b3cfd8.jpg","text":"TemporaryFile(/tmp/multipartBody6522160202454413682asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656193110,"filename":"image_23012025_19_15_54_5188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2075c902faf61d53856a7d6b343099c3.jpg","text":"TemporaryFile(/tmp/multipartBody1188388552795550466asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656193110,"filename":"image_23012025_19_15_30_6202.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330848640","file1":"1330848627","file0":"1330848622","file4":"1330848666","file5":"1330848674","file3":"1330848656"},"map_files_photo_id_array":[{"photo_id":"1330848674","filename":"file5"},{"photo_id":"1330848640","filename":"file2"},{"photo_id":"1330848666","filename":"file4"},{"photo_id":"1330848627","filename":"file1"},{"photo_id":"1330848622","filename":"file0"},{"photo_id":"1330848656","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330848627":["hashtag1","hashtag2"]},{"1330848674":["hashtag1","hashtag2"]},{"1330848656":["hashtag1","hashtag2"]},{"1330848640":["hashtag1","hashtag2"]},{"1330848622":["hashtag1","hashtag2"]},{"1330848666":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330848627, 1330848674, 1330848656, 1330848640, 1330848622, 1330848666)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.809650182724 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:16:32.508988
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/16/image_23012025_19_16_55_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/19/16/image_23012025_19_16_49_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/19/16/image_23012025_19_16_42_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/19/16/image_23012025_19_16_36_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/19/16/image_23012025_19_16_30_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/19/16/image_23012025_19_16_25_6194.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/16/image_23012025_19_16_55_6195.jpg', '/home/nano/Desktop/images/23012025/19/16/image_23012025_19_16_49_6200.jpg', '/home/nano/Desktop/images/23012025/19/16/image_23012025_19_16_42_6200.jpg', '/home/nano/Desktop/images/23012025/19/16/image_23012025_19_16_36_6209.jpg', '/home/nano/Desktop/images/23012025/19/16/image_23012025_19_16_30_5184.jpg', '/home/nano/Desktop/images/23012025/19/16/image_23012025_19_16_25_6194.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/16/image_23012025_19_16_55_6195.jpg
/home/nano/Desktop/images/23012025/19/16/image_23012025_19_16_49_6200.jpg
/home/nano/Desktop/images/23012025/19/16/image_23012025_19_16_42_6200.jpg
/home/nano/Desktop/images/23012025/19/16/image_23012025_19_16_36_6209.jpg
/home/nano/Desktop/images/23012025/19/16/image_23012025_19_16_30_5184.jpg
/home/nano/Desktop/images/23012025/19/16/image_23012025_19_16_25_6194.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330848738","1330848719","1330848716","1330848748","1330848733","1330848742"],"photo_ids_order":["1330848716","1330848719","1330848733","1330848738","1330848742","1330848748"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/28652248e6b76da7100527915b4d99b8.jpg","text":"TemporaryFile(/tmp/multipartBody8416802118743884388asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656253320,"filename":"image_23012025_19_16_36_6209.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ba5a88f4e031f789eee2d4d1989d6560.jpg","text":"TemporaryFile(/tmp/multipartBody7450654817447320013asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656253320,"filename":"image_23012025_19_16_49_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/131f4666f2bac7b774e579962638d6bb.jpg","text":"TemporaryFile(/tmp/multipartBody2391847749871495001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656253320,"filename":"image_23012025_19_16_55_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4eb0ffd1f279b2daa1e6f7ed146cde7d.jpg","text":"TemporaryFile(/tmp/multipartBody3786463514435907554asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656253320,"filename":"image_23012025_19_16_25_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d04c5c7dffa5c11f6b68514012ff2fa5.jpg","text":"TemporaryFile(/tmp/multipartBody5825198347487856476asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656253320,"filename":"image_23012025_19_16_42_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/172ecee186ba65fb0279707a227dce17.jpg","text":"TemporaryFile(/tmp/multipartBody6961145684152754836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656253320,"filename":"image_23012025_19_16_30_5184.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330848733","file1":"1330848719","file0":"1330848716","file4":"1330848742","file5":"1330848748","file3":"1330848738"},"map_files_photo_id_array":[{"photo_id":"1330848748","filename":"file5"},{"photo_id":"1330848733","filename":"file2"},{"photo_id":"1330848742","filename":"file4"},{"photo_id":"1330848719","filename":"file1"},{"photo_id":"1330848716","filename":"file0"},{"photo_id":"1330848738","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330848738":["hashtag1","hashtag2"]},{"1330848719":["hashtag1","hashtag2"]},{"1330848716":["hashtag1","hashtag2"]},{"1330848748":["hashtag1","hashtag2"]},{"1330848733":["hashtag1","hashtag2"]},{"1330848742":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330848738, 1330848719, 1330848716, 1330848748, 1330848733, 1330848742)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.809127807617188 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:17:32.597706
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/17/image_23012025_19_17_55_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/19/17/image_23012025_19_17_49_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/19/17/image_23012025_19_17_42_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/19/17/image_23012025_19_17_36_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/19/17/image_23012025_19_17_30_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/17/image_23012025_19_17_25_6191.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/17/image_23012025_19_17_55_6195.jpg', '/home/nano/Desktop/images/23012025/19/17/image_23012025_19_17_49_6194.jpg', '/home/nano/Desktop/images/23012025/19/17/image_23012025_19_17_42_6202.jpg', '/home/nano/Desktop/images/23012025/19/17/image_23012025_19_17_36_6202.jpg', '/home/nano/Desktop/images/23012025/19/17/image_23012025_19_17_30_5187.jpg', '/home/nano/Desktop/images/23012025/19/17/image_23012025_19_17_25_6191.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/17/image_23012025_19_17_55_6195.jpg
/home/nano/Desktop/images/23012025/19/17/image_23012025_19_17_49_6194.jpg
/home/nano/Desktop/images/23012025/19/17/image_23012025_19_17_42_6202.jpg
/home/nano/Desktop/images/23012025/19/17/image_23012025_19_17_36_6202.jpg
/home/nano/Desktop/images/23012025/19/17/image_23012025_19_17_30_5187.jpg
/home/nano/Desktop/images/23012025/19/17/image_23012025_19_17_25_6191.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330849002","1330849016","1330849118","1330849012","1330849024","1330849104"],"photo_ids_order":["1330849002","1330849012","1330849016","1330849024","1330849104","1330849118"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6c9f7744def8511cdacd6c0d8e2cd837.jpg","text":"TemporaryFile(/tmp/multipartBody3330769239618400691asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656313248,"filename":"image_23012025_19_17_55_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c651038066179884a84cfd397df47510.jpg","text":"TemporaryFile(/tmp/multipartBody7309077328077395528asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656313248,"filename":"image_23012025_19_17_42_6202.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cc3cc9cfe03928749084e9afea22aa31.jpg","text":"TemporaryFile(/tmp/multipartBody5154987203021768097asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656313248,"filename":"image_23012025_19_17_25_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/81da9ade6a3f6a1403c14b4c01a99ab0.jpg","text":"TemporaryFile(/tmp/multipartBody2880073480563489655asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656313248,"filename":"image_23012025_19_17_49_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2c447d68dbc3322e12a0546757d4ce24.jpg","text":"TemporaryFile(/tmp/multipartBody8587018221247123909asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656313248,"filename":"image_23012025_19_17_36_6202.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/414e5ad909f3da584e08a0595cfe0e1f.jpg","text":"TemporaryFile(/tmp/multipartBody1056646287021847818asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656313248,"filename":"image_23012025_19_17_30_5187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330849016","file1":"1330849012","file0":"1330849002","file4":"1330849104","file5":"1330849118","file3":"1330849024"},"map_files_photo_id_array":[{"photo_id":"1330849118","filename":"file5"},{"photo_id":"1330849016","filename":"file2"},{"photo_id":"1330849104","filename":"file4"},{"photo_id":"1330849012","filename":"file1"},{"photo_id":"1330849002","filename":"file0"},{"photo_id":"1330849024","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330849002":["hashtag1","hashtag2"]},{"1330849016":["hashtag1","hashtag2"]},{"1330849118":["hashtag1","hashtag2"]},{"1330849012":["hashtag1","hashtag2"]},{"1330849024":["hashtag1","hashtag2"]},{"1330849104":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330849002, 1330849016, 1330849118, 1330849012, 1330849024, 1330849104)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.997551679611206 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:18:32.688802
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/18/image_23012025_19_18_55_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/19/18/image_23012025_19_18_49_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/19/18/image_23012025_19_18_42_6210.jpg', 2), ('/home/nano/Desktop/images/23012025/19/18/image_23012025_19_18_36_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/19/18/image_23012025_19_18_30_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/19/18/image_23012025_19_18_25_6198.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/18/image_23012025_19_18_55_6192.jpg', '/home/nano/Desktop/images/23012025/19/18/image_23012025_19_18_49_6199.jpg', '/home/nano/Desktop/images/23012025/19/18/image_23012025_19_18_42_6210.jpg', '/home/nano/Desktop/images/23012025/19/18/image_23012025_19_18_36_6193.jpg', '/home/nano/Desktop/images/23012025/19/18/image_23012025_19_18_30_5183.jpg', '/home/nano/Desktop/images/23012025/19/18/image_23012025_19_18_25_6198.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/18/image_23012025_19_18_55_6192.jpg
/home/nano/Desktop/images/23012025/19/18/image_23012025_19_18_49_6199.jpg
/home/nano/Desktop/images/23012025/19/18/image_23012025_19_18_42_6210.jpg
/home/nano/Desktop/images/23012025/19/18/image_23012025_19_18_36_6193.jpg
/home/nano/Desktop/images/23012025/19/18/image_23012025_19_18_30_5183.jpg
/home/nano/Desktop/images/23012025/19/18/image_23012025_19_18_25_6198.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330849271","1330849268","1330849252","1330849266","1330849275","1330849254"],"photo_ids_order":["1330849252","1330849254","1330849266","1330849268","1330849271","1330849275"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/13f89a7a6fc46cb89c90da8796e5d7a4.jpg","text":"TemporaryFile(/tmp/multipartBody6553565943372365342asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656373329,"filename":"image_23012025_19_18_30_5183.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ebf1415c595de3c44c042a89251a1900.jpg","text":"TemporaryFile(/tmp/multipartBody2589912634855116647asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656373329,"filename":"image_23012025_19_18_36_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0e17dc49b009b682ba6494288d741681.jpg","text":"TemporaryFile(/tmp/multipartBody1525275522868941412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656373329,"filename":"image_23012025_19_18_55_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/681dfdc2ad22ca4ed55c81ecfc508473.jpg","text":"TemporaryFile(/tmp/multipartBody8039780344225047337asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656373329,"filename":"image_23012025_19_18_42_6210.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/987c9231efae6f746138dff2dbc79af9.jpg","text":"TemporaryFile(/tmp/multipartBody3992104155863554035asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656373329,"filename":"image_23012025_19_18_25_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/28a4d13e4de651a1c1da8da5db862ba0.jpg","text":"TemporaryFile(/tmp/multipartBody1190298875009313560asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656373329,"filename":"image_23012025_19_18_49_6199.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330849266","file1":"1330849254","file0":"1330849252","file4":"1330849271","file5":"1330849275","file3":"1330849268"},"map_files_photo_id_array":[{"photo_id":"1330849275","filename":"file5"},{"photo_id":"1330849266","filename":"file2"},{"photo_id":"1330849271","filename":"file4"},{"photo_id":"1330849254","filename":"file1"},{"photo_id":"1330849252","filename":"file0"},{"photo_id":"1330849268","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330849271":["hashtag1","hashtag2"]},{"1330849268":["hashtag1","hashtag2"]},{"1330849252":["hashtag1","hashtag2"]},{"1330849266":["hashtag1","hashtag2"]},{"1330849275":["hashtag1","hashtag2"]},{"1330849254":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330849271, 1330849268, 1330849252, 1330849266, 1330849275, 1330849254)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.930068731307983 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:19:31.803014
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/19/image_23012025_19_19_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/19/image_23012025_19_19_49_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/19/image_23012025_19_19_42_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/19/image_23012025_19_19_36_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/19/image_23012025_19_19_30_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/19/19/image_23012025_19_19_25_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/19/image_23012025_19_19_55_6188.jpg', '/home/nano/Desktop/images/23012025/19/19/image_23012025_19_19_49_6189.jpg', '/home/nano/Desktop/images/23012025/19/19/image_23012025_19_19_42_6188.jpg', '/home/nano/Desktop/images/23012025/19/19/image_23012025_19_19_36_6187.jpg', '/home/nano/Desktop/images/23012025/19/19/image_23012025_19_19_30_5186.jpg', '/home/nano/Desktop/images/23012025/19/19/image_23012025_19_19_25_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/19/image_23012025_19_19_55_6188.jpg
/home/nano/Desktop/images/23012025/19/19/image_23012025_19_19_49_6189.jpg
/home/nano/Desktop/images/23012025/19/19/image_23012025_19_19_42_6188.jpg
/home/nano/Desktop/images/23012025/19/19/image_23012025_19_19_36_6187.jpg
/home/nano/Desktop/images/23012025/19/19/image_23012025_19_19_30_5186.jpg
/home/nano/Desktop/images/23012025/19/19/image_23012025_19_19_25_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330849328","1330849337","1330849357","1330849351","1330849347","1330849362"],"photo_ids_order":["1330849328","1330849337","1330849347","1330849351","1330849357","1330849362"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/40b4843198e9edf90d6b13213d883b57.jpg","text":"TemporaryFile(/tmp/multipartBody6003359885675582349asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656432234,"filename":"image_23012025_19_19_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1ec7ec4dbb3b94b8de71afc46c0db832.jpg","text":"TemporaryFile(/tmp/multipartBody1144735139327790561asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656432234,"filename":"image_23012025_19_19_49_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/df553f0205559dbb111e114a38852504.jpg","text":"TemporaryFile(/tmp/multipartBody3761960513062351145asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656432234,"filename":"image_23012025_19_19_30_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6e89a4c67589bf0a974a727485b323db.jpg","text":"TemporaryFile(/tmp/multipartBody2320658259979968212asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656432234,"filename":"image_23012025_19_19_36_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3c1c46c5de62d4461f95a0b90a7efd61.jpg","text":"TemporaryFile(/tmp/multipartBody2232319749648567396asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656432234,"filename":"image_23012025_19_19_42_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7d7e8c887c17b802825265b179351c44.jpg","text":"TemporaryFile(/tmp/multipartBody3402695372543900376asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656432234,"filename":"image_23012025_19_19_25_6196.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330849347","file1":"1330849337","file0":"1330849328","file4":"1330849357","file5":"1330849362","file3":"1330849351"},"map_files_photo_id_array":[{"photo_id":"1330849362","filename":"file5"},{"photo_id":"1330849347","filename":"file2"},{"photo_id":"1330849357","filename":"file4"},{"photo_id":"1330849337","filename":"file1"},{"photo_id":"1330849328","filename":"file0"},{"photo_id":"1330849351","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330849328":["hashtag1","hashtag2"]},{"1330849337":["hashtag1","hashtag2"]},{"1330849357":["hashtag1","hashtag2"]},{"1330849351":["hashtag1","hashtag2"]},{"1330849347":["hashtag1","hashtag2"]},{"1330849362":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330849328, 1330849337, 1330849357, 1330849351, 1330849347, 1330849362)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.386027097702026 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:20:31.974743
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_48_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_42_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_36_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_30_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_25_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_55_6188.jpg', '/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_48_6189.jpg', '/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_42_6194.jpg', '/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_36_6193.jpg', '/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_30_5178.jpg', '/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_25_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_55_6188.jpg
/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_48_6189.jpg
/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_42_6194.jpg
/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_36_6193.jpg
/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_30_5178.jpg
/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_25_6188.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.4425804615020752 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:21:02.656142
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_48_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_42_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_36_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_30_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_25_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_55_6188.jpg', '/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_48_6189.jpg', '/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_42_6194.jpg', '/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_36_6193.jpg', '/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_30_5178.jpg', '/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_25_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_55_6188.jpg
/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_48_6189.jpg
/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_42_6194.jpg
/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_36_6193.jpg
/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_30_5178.jpg
/home/nano/Desktop/images/23012025/19/20/image_23012025_19_20_25_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330849419","1330849435","1330849426","1330849431","1330849437","1330849422"],"photo_ids_order":["1330849419","1330849422","1330849426","1330849431","1330849435","1330849437"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4cf5694e2118ffdfb2097dbfc7e52a94.jpg","text":"TemporaryFile(/tmp/multipartBody8456382461875171012asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656523075,"filename":"image_23012025_19_20_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d1dfd8f8665c3d71d9a9127414d49926.jpg","text":"TemporaryFile(/tmp/multipartBody8717008695769349134asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656523075,"filename":"image_23012025_19_20_30_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6378405b361c3de779f3f9ff6127af80.jpg","text":"TemporaryFile(/tmp/multipartBody3856917172809350975asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656523075,"filename":"image_23012025_19_20_42_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7a86dbf4cb7675b5359c52df30910557.jpg","text":"TemporaryFile(/tmp/multipartBody8728995698914133676asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656523075,"filename":"image_23012025_19_20_36_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/15375c0448527c924799352fa3a6d494.jpg","text":"TemporaryFile(/tmp/multipartBody5305439588343411821asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656523075,"filename":"image_23012025_19_20_25_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b86af91013fe78270ce64387aa4ff0d9.jpg","text":"TemporaryFile(/tmp/multipartBody2767160297547832463asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656523075,"filename":"image_23012025_19_20_48_6189.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330849426","file1":"1330849422","file0":"1330849419","file4":"1330849435","file5":"1330849437","file3":"1330849431"},"map_files_photo_id_array":[{"photo_id":"1330849437","filename":"file5"},{"photo_id":"1330849426","filename":"file2"},{"photo_id":"1330849435","filename":"file4"},{"photo_id":"1330849422","filename":"file1"},{"photo_id":"1330849419","filename":"file0"},{"photo_id":"1330849431","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330849419":["hashtag1","hashtag2"]},{"1330849435":["hashtag1","hashtag2"]},{"1330849426":["hashtag1","hashtag2"]},{"1330849431":["hashtag1","hashtag2"]},{"1330849437":["hashtag1","hashtag2"]},{"1330849422":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330849419, 1330849435, 1330849426, 1330849431, 1330849437, 1330849422)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.774054765701294 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:22:02.777936
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/21/image_23012025_19_21_55_6185.jpg', 2), ('/home/nano/Desktop/images/23012025/19/21/image_23012025_19_21_49_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/21/image_23012025_19_21_42_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/19/21/image_23012025_19_21_36_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/19/21/image_23012025_19_21_30_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/19/21/image_23012025_19_21_25_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/21/image_23012025_19_21_55_6185.jpg', '/home/nano/Desktop/images/23012025/19/21/image_23012025_19_21_49_6188.jpg', '/home/nano/Desktop/images/23012025/19/21/image_23012025_19_21_42_6193.jpg', '/home/nano/Desktop/images/23012025/19/21/image_23012025_19_21_36_6193.jpg', '/home/nano/Desktop/images/23012025/19/21/image_23012025_19_21_30_5177.jpg', '/home/nano/Desktop/images/23012025/19/21/image_23012025_19_21_25_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/21/image_23012025_19_21_55_6185.jpg
/home/nano/Desktop/images/23012025/19/21/image_23012025_19_21_49_6188.jpg
/home/nano/Desktop/images/23012025/19/21/image_23012025_19_21_42_6193.jpg
/home/nano/Desktop/images/23012025/19/21/image_23012025_19_21_36_6193.jpg
/home/nano/Desktop/images/23012025/19/21/image_23012025_19_21_30_5177.jpg
/home/nano/Desktop/images/23012025/19/21/image_23012025_19_21_25_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330849535","1330849532","1330849540","1330849522","1330849516","1330849519"],"photo_ids_order":["1330849516","1330849519","1330849522","1330849532","1330849535","1330849540"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1de16ea9b068fc35cf05f5e9bb98d82c.jpg","text":"TemporaryFile(/tmp/multipartBody2104730478013670314asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656583229,"filename":"image_23012025_19_21_30_5177.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7c68e50a455add943fc78c89434354a8.jpg","text":"TemporaryFile(/tmp/multipartBody2347311727698564618asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656583229,"filename":"image_23012025_19_21_36_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a885ad946b0ceb6649a933130bada1f3.jpg","text":"TemporaryFile(/tmp/multipartBody1986759234489332096asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656583229,"filename":"image_23012025_19_21_25_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/720fc6287912978e81c0752ab63cd980.jpg","text":"TemporaryFile(/tmp/multipartBody7041212164301728476asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656583229,"filename":"image_23012025_19_21_42_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2eb8006719236c1ee70f8c2ae501e939.jpg","text":"TemporaryFile(/tmp/multipartBody7796435237630712100asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656583229,"filename":"image_23012025_19_21_55_6185.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/63f23f59318794e2649a2e4de857bfca.jpg","text":"TemporaryFile(/tmp/multipartBody8246097900927300841asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656583229,"filename":"image_23012025_19_21_49_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330849522","file1":"1330849519","file0":"1330849516","file4":"1330849535","file5":"1330849540","file3":"1330849532"},"map_files_photo_id_array":[{"photo_id":"1330849540","filename":"file5"},{"photo_id":"1330849522","filename":"file2"},{"photo_id":"1330849535","filename":"file4"},{"photo_id":"1330849519","filename":"file1"},{"photo_id":"1330849516","filename":"file0"},{"photo_id":"1330849532","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330849535":["hashtag1","hashtag2"]},{"1330849532":["hashtag1","hashtag2"]},{"1330849540":["hashtag1","hashtag2"]},{"1330849522":["hashtag1","hashtag2"]},{"1330849516":["hashtag1","hashtag2"]},{"1330849519":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330849535, 1330849532, 1330849540, 1330849522, 1330849516, 1330849519)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.967859983444214 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:23:03.159473
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/23/image_23012025_19_24_00_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/19/22/image_23012025_19_22_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/22/image_23012025_19_22_48_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/22/image_23012025_19_22_42_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/22/image_23012025_19_22_36_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/19/22/image_23012025_19_22_30_5182.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/23/image_23012025_19_24_00_5178.jpg', '/home/nano/Desktop/images/23012025/19/22/image_23012025_19_22_55_6188.jpg', '/home/nano/Desktop/images/23012025/19/22/image_23012025_19_22_48_6187.jpg', '/home/nano/Desktop/images/23012025/19/22/image_23012025_19_22_42_6188.jpg', '/home/nano/Desktop/images/23012025/19/22/image_23012025_19_22_36_6194.jpg', '/home/nano/Desktop/images/23012025/19/22/image_23012025_19_22_30_5182.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/23/image_23012025_19_24_00_5178.jpg
/home/nano/Desktop/images/23012025/19/22/image_23012025_19_22_55_6188.jpg
/home/nano/Desktop/images/23012025/19/22/image_23012025_19_22_48_6187.jpg
/home/nano/Desktop/images/23012025/19/22/image_23012025_19_22_42_6188.jpg
/home/nano/Desktop/images/23012025/19/22/image_23012025_19_22_36_6194.jpg
/home/nano/Desktop/images/23012025/19/22/image_23012025_19_22_30_5182.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330849580","1330849574","1330849577","1330849582","1330849569","1330849572"],"photo_ids_order":["1330849569","1330849572","1330849574","1330849577","1330849580","1330849582"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/97a334d9fc7d60196987a1f978ce4f09.jpg","text":"TemporaryFile(/tmp/multipartBody849287220665806653asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656643608,"filename":"image_23012025_19_22_36_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3f17aa33f4506505936a27c05d070930.jpg","text":"TemporaryFile(/tmp/multipartBody2766114581581785307asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656643608,"filename":"image_23012025_19_22_48_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/12fecb9b0f7682034564c69fca550d74.jpg","text":"TemporaryFile(/tmp/multipartBody5364803591859401117asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656643608,"filename":"image_23012025_19_22_42_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/991800964f980bb01341d341934d7b52.jpg","text":"TemporaryFile(/tmp/multipartBody223138665996595602asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656643608,"filename":"image_23012025_19_22_30_5182.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/dbbb2f20199e29e57513134387a9756b.jpg","text":"TemporaryFile(/tmp/multipartBody3653682385735613510asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656643608,"filename":"image_23012025_19_24_00_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5a198ddc39e66930d24da1bcf362df96.jpg","text":"TemporaryFile(/tmp/multipartBody7340476677943503647asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656643608,"filename":"image_23012025_19_22_55_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330849574","file1":"1330849572","file0":"1330849569","file4":"1330849580","file5":"1330849582","file3":"1330849577"},"map_files_photo_id_array":[{"photo_id":"1330849582","filename":"file5"},{"photo_id":"1330849574","filename":"file2"},{"photo_id":"1330849580","filename":"file4"},{"photo_id":"1330849572","filename":"file1"},{"photo_id":"1330849569","filename":"file0"},{"photo_id":"1330849577","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330849580":["hashtag1","hashtag2"]},{"1330849574":["hashtag1","hashtag2"]},{"1330849577":["hashtag1","hashtag2"]},{"1330849582":["hashtag1","hashtag2"]},{"1330849569":["hashtag1","hashtag2"]},{"1330849572":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330849580, 1330849574, 1330849577, 1330849582, 1330849569, 1330849572)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.32430601119995 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:24:03.180900
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/23/image_23012025_19_23_49_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/19/23/image_23012025_19_23_42_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/23/image_23012025_19_23_36_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/23/image_23012025_19_23_30_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/19/23/image_23012025_19_23_25_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/23/image_23012025_19_23_19_6191.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/23/image_23012025_19_23_49_6190.jpg', '/home/nano/Desktop/images/23012025/19/23/image_23012025_19_23_42_6189.jpg', '/home/nano/Desktop/images/23012025/19/23/image_23012025_19_23_36_6188.jpg', '/home/nano/Desktop/images/23012025/19/23/image_23012025_19_23_30_5177.jpg', '/home/nano/Desktop/images/23012025/19/23/image_23012025_19_23_25_6188.jpg', '/home/nano/Desktop/images/23012025/19/23/image_23012025_19_23_19_6191.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/23/image_23012025_19_23_49_6190.jpg
/home/nano/Desktop/images/23012025/19/23/image_23012025_19_23_42_6189.jpg
/home/nano/Desktop/images/23012025/19/23/image_23012025_19_23_36_6188.jpg
/home/nano/Desktop/images/23012025/19/23/image_23012025_19_23_30_5177.jpg
/home/nano/Desktop/images/23012025/19/23/image_23012025_19_23_25_6188.jpg
/home/nano/Desktop/images/23012025/19/23/image_23012025_19_23_19_6191.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.41672301292419434 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:24:32.541431
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/24/image_23012025_19_24_55_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/19/24/image_23012025_19_24_49_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/19/24/image_23012025_19_24_42_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/24/image_23012025_19_24_36_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/19/24/image_23012025_19_24_30_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/19/24/image_23012025_19_24_25_6189.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/24/image_23012025_19_24_55_6192.jpg', '/home/nano/Desktop/images/23012025/19/24/image_23012025_19_24_49_6190.jpg', '/home/nano/Desktop/images/23012025/19/24/image_23012025_19_24_42_6188.jpg', '/home/nano/Desktop/images/23012025/19/24/image_23012025_19_24_36_6193.jpg', '/home/nano/Desktop/images/23012025/19/24/image_23012025_19_24_30_5178.jpg', '/home/nano/Desktop/images/23012025/19/24/image_23012025_19_24_25_6189.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/24/image_23012025_19_24_55_6192.jpg
/home/nano/Desktop/images/23012025/19/24/image_23012025_19_24_49_6190.jpg
/home/nano/Desktop/images/23012025/19/24/image_23012025_19_24_42_6188.jpg
/home/nano/Desktop/images/23012025/19/24/image_23012025_19_24_36_6193.jpg
/home/nano/Desktop/images/23012025/19/24/image_23012025_19_24_30_5178.jpg
/home/nano/Desktop/images/23012025/19/24/image_23012025_19_24_25_6189.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330849701","1330849724","1330849717","1330849674","1330849677","1330849671"],"photo_ids_order":["1330849671","1330849674","1330849677","1330849701","1330849717","1330849724"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e8dea0ce630913beb9c6e2e1f6ba316c.jpg","text":"TemporaryFile(/tmp/multipartBody8345438044430629041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656733006,"filename":"image_23012025_19_24_36_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4303ad1725c9300c4d7bdb8ef0bf27ae.jpg","text":"TemporaryFile(/tmp/multipartBody4099547465800150459asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656733006,"filename":"image_23012025_19_24_25_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c87e1fbe8240da9f8d82318e9f48112b.jpg","text":"TemporaryFile(/tmp/multipartBody3839233126626099865asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656733006,"filename":"image_23012025_19_24_30_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7869e8fc2bd63d9d4827da0b1bbd1b0d.jpg","text":"TemporaryFile(/tmp/multipartBody1657578984381287738asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656733006,"filename":"image_23012025_19_24_49_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/00d0cb5aa104f24d953030bd3b2bee8e.jpg","text":"TemporaryFile(/tmp/multipartBody3956372488772137278asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656733006,"filename":"image_23012025_19_24_42_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/35052c599c07e27eeb210c0e3604d7e0.jpg","text":"TemporaryFile(/tmp/multipartBody1424217292678730376asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656733006,"filename":"image_23012025_19_24_55_6192.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330849677","file1":"1330849674","file0":"1330849671","file4":"1330849717","file5":"1330849724","file3":"1330849701"},"map_files_photo_id_array":[{"photo_id":"1330849724","filename":"file5"},{"photo_id":"1330849677","filename":"file2"},{"photo_id":"1330849717","filename":"file4"},{"photo_id":"1330849674","filename":"file1"},{"photo_id":"1330849671","filename":"file0"},{"photo_id":"1330849701","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330849701":["hashtag1","hashtag2"]},{"1330849724":["hashtag1","hashtag2"]},{"1330849717":["hashtag1","hashtag2"]},{"1330849674":["hashtag1","hashtag2"]},{"1330849677":["hashtag1","hashtag2"]},{"1330849671":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330849701, 1330849724, 1330849717, 1330849674, 1330849677, 1330849671)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.36192011833191 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:25:32.649707
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/25/image_23012025_19_25_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/25/image_23012025_19_25_48_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/25/image_23012025_19_25_42_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/19/25/image_23012025_19_25_36_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/19/25/image_23012025_19_25_31_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/25/image_23012025_19_25_25_6190.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/25/image_23012025_19_25_55_6188.jpg', '/home/nano/Desktop/images/23012025/19/25/image_23012025_19_25_48_6189.jpg', '/home/nano/Desktop/images/23012025/19/25/image_23012025_19_25_42_6192.jpg', '/home/nano/Desktop/images/23012025/19/25/image_23012025_19_25_36_5179.jpg', '/home/nano/Desktop/images/23012025/19/25/image_23012025_19_25_31_6188.jpg', '/home/nano/Desktop/images/23012025/19/25/image_23012025_19_25_25_6190.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/25/image_23012025_19_25_55_6188.jpg
/home/nano/Desktop/images/23012025/19/25/image_23012025_19_25_48_6189.jpg
/home/nano/Desktop/images/23012025/19/25/image_23012025_19_25_42_6192.jpg
/home/nano/Desktop/images/23012025/19/25/image_23012025_19_25_36_5179.jpg
/home/nano/Desktop/images/23012025/19/25/image_23012025_19_25_31_6188.jpg
/home/nano/Desktop/images/23012025/19/25/image_23012025_19_25_25_6190.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330849778","1330849763","1330849765","1330849768","1330849773","1330849770"],"photo_ids_order":["1330849763","1330849765","1330849768","1330849770","1330849773","1330849778"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/74cffdc72841e810fe8c81e17db37c66.jpg","text":"TemporaryFile(/tmp/multipartBody2460270346646848042asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656793048,"filename":"image_23012025_19_25_25_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c9919dad5e692846df8c1eba455752a2.jpg","text":"TemporaryFile(/tmp/multipartBody6598722507824181509asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656793048,"filename":"image_23012025_19_25_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/95936840d8c245f603db6e5000920b09.jpg","text":"TemporaryFile(/tmp/multipartBody4510821797057668833asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656793048,"filename":"image_23012025_19_25_48_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a6eb49934414f86ba5fb1a8173a8be8b.jpg","text":"TemporaryFile(/tmp/multipartBody272431681695047041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656793048,"filename":"image_23012025_19_25_42_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2a58afbcb33d4586466a686b0613f7f2.jpg","text":"TemporaryFile(/tmp/multipartBody4924517800362893225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656793048,"filename":"image_23012025_19_25_31_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ec2f10c01c7faf10cbda8dce1ae08432.jpg","text":"TemporaryFile(/tmp/multipartBody4931571056621559189asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656793048,"filename":"image_23012025_19_25_36_5179.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330849768","file1":"1330849765","file0":"1330849763","file4":"1330849773","file5":"1330849778","file3":"1330849770"},"map_files_photo_id_array":[{"photo_id":"1330849778","filename":"file5"},{"photo_id":"1330849768","filename":"file2"},{"photo_id":"1330849773","filename":"file4"},{"photo_id":"1330849765","filename":"file1"},{"photo_id":"1330849763","filename":"file0"},{"photo_id":"1330849770","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330849778":["hashtag1","hashtag2"]},{"1330849763":["hashtag1","hashtag2"]},{"1330849765":["hashtag1","hashtag2"]},{"1330849768":["hashtag1","hashtag2"]},{"1330849773":["hashtag1","hashtag2"]},{"1330849770":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330849778, 1330849763, 1330849765, 1330849768, 1330849773, 1330849770)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.97866725921631 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:26:32.738330
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/26/image_23012025_19_26_55_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/19/26/image_23012025_19_26_48_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/19/26/image_23012025_19_26_42_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/19/26/image_23012025_19_26_36_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/19/26/image_23012025_19_26_31_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/19/26/image_23012025_19_26_25_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/26/image_23012025_19_26_55_6193.jpg', '/home/nano/Desktop/images/23012025/19/26/image_23012025_19_26_48_6191.jpg', '/home/nano/Desktop/images/23012025/19/26/image_23012025_19_26_42_6192.jpg', '/home/nano/Desktop/images/23012025/19/26/image_23012025_19_26_36_5178.jpg', '/home/nano/Desktop/images/23012025/19/26/image_23012025_19_26_31_6191.jpg', '/home/nano/Desktop/images/23012025/19/26/image_23012025_19_26_25_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/26/image_23012025_19_26_55_6193.jpg
/home/nano/Desktop/images/23012025/19/26/image_23012025_19_26_48_6191.jpg
/home/nano/Desktop/images/23012025/19/26/image_23012025_19_26_42_6192.jpg
/home/nano/Desktop/images/23012025/19/26/image_23012025_19_26_36_5178.jpg
/home/nano/Desktop/images/23012025/19/26/image_23012025_19_26_31_6191.jpg
/home/nano/Desktop/images/23012025/19/26/image_23012025_19_26_25_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330849855","1330849837","1330849819","1330849848","1330849842","1330849845"],"photo_ids_order":["1330849819","1330849837","1330849842","1330849845","1330849848","1330849855"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9d452906ab99ff822e697fab1e78e298.jpg","text":"TemporaryFile(/tmp/multipartBody4511315120433572036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656853238,"filename":"image_23012025_19_26_25_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7ec2a046cf85c02433754b60160a3636.jpg","text":"TemporaryFile(/tmp/multipartBody1469528762132083224asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656853238,"filename":"image_23012025_19_26_48_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/58d4ffa01204e833b3b55aca8377a447.jpg","text":"TemporaryFile(/tmp/multipartBody3428409627709583111asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656853238,"filename":"image_23012025_19_26_55_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2dfd8b985b78a92e95c88e7f8ec9f21b.jpg","text":"TemporaryFile(/tmp/multipartBody6712808270325673432asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656853238,"filename":"image_23012025_19_26_31_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ce31d5cb1cb01a0636dccea1d16dc0ac.jpg","text":"TemporaryFile(/tmp/multipartBody7394098193792747024asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656853238,"filename":"image_23012025_19_26_42_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d2989cea524af84e9628f0bb009e2b63.jpg","text":"TemporaryFile(/tmp/multipartBody2408865804970060383asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656853238,"filename":"image_23012025_19_26_36_5178.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330849842","file1":"1330849837","file0":"1330849819","file4":"1330849848","file5":"1330849855","file3":"1330849845"},"map_files_photo_id_array":[{"photo_id":"1330849855","filename":"file5"},{"photo_id":"1330849842","filename":"file2"},{"photo_id":"1330849848","filename":"file4"},{"photo_id":"1330849837","filename":"file1"},{"photo_id":"1330849819","filename":"file0"},{"photo_id":"1330849845","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330849855":["hashtag1","hashtag2"]},{"1330849837":["hashtag1","hashtag2"]},{"1330849819":["hashtag1","hashtag2"]},{"1330849848":["hashtag1","hashtag2"]},{"1330849842":["hashtag1","hashtag2"]},{"1330849845":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330849855, 1330849837, 1330849819, 1330849848, 1330849842, 1330849845)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.216187715530396 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:27:31.838152
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/27/image_23012025_19_27_54_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/19/27/image_23012025_19_27_48_6209.jpg', 2), ('/home/nano/Desktop/images/23012025/19/27/image_23012025_19_27_42_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/19/27/image_23012025_19_27_37_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/19/27/image_23012025_19_27_31_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/19/27/image_23012025_19_27_24_6192.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/27/image_23012025_19_27_54_6200.jpg', '/home/nano/Desktop/images/23012025/19/27/image_23012025_19_27_48_6209.jpg', '/home/nano/Desktop/images/23012025/19/27/image_23012025_19_27_42_5183.jpg', '/home/nano/Desktop/images/23012025/19/27/image_23012025_19_27_37_6195.jpg', '/home/nano/Desktop/images/23012025/19/27/image_23012025_19_27_31_6192.jpg', '/home/nano/Desktop/images/23012025/19/27/image_23012025_19_27_24_6192.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/27/image_23012025_19_27_54_6200.jpg
/home/nano/Desktop/images/23012025/19/27/image_23012025_19_27_48_6209.jpg
/home/nano/Desktop/images/23012025/19/27/image_23012025_19_27_42_5183.jpg
/home/nano/Desktop/images/23012025/19/27/image_23012025_19_27_37_6195.jpg
/home/nano/Desktop/images/23012025/19/27/image_23012025_19_27_31_6192.jpg
/home/nano/Desktop/images/23012025/19/27/image_23012025_19_27_24_6192.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330849976","1330849979","1330849907","1330849983","1330849992","1330849988"],"photo_ids_order":["1330849907","1330849976","1330849979","1330849983","1330849988","1330849992"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5b92dd01191b2a0bec2332ecc3cc8cc2.jpg","text":"TemporaryFile(/tmp/multipartBody4081488198042312247asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656912593,"filename":"image_23012025_19_27_48_6209.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d8d860cac60f9d47d6d14447809b28b4.jpg","text":"TemporaryFile(/tmp/multipartBody4811170747692209804asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656912593,"filename":"image_23012025_19_27_42_5183.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/83947c1256f940d6a7d1097fcba531c7.jpg","text":"TemporaryFile(/tmp/multipartBody5411365316729728281asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656912593,"filename":"image_23012025_19_27_54_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bdcb68a17ea7bbb2ade3b0aa6c22b5f9.jpg","text":"TemporaryFile(/tmp/multipartBody6438062102831825927asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656912593,"filename":"image_23012025_19_27_37_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fa264cf0354ddc6a898ddbe8a25373df.jpg","text":"TemporaryFile(/tmp/multipartBody8300490435125226443asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656912593,"filename":"image_23012025_19_27_24_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4ee7e8b11b72a8e97f6981f805d25427.jpg","text":"TemporaryFile(/tmp/multipartBody116399529831545792asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656912593,"filename":"image_23012025_19_27_31_6192.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330849979","file1":"1330849976","file0":"1330849907","file4":"1330849988","file5":"1330849992","file3":"1330849983"},"map_files_photo_id_array":[{"photo_id":"1330849992","filename":"file5"},{"photo_id":"1330849979","filename":"file2"},{"photo_id":"1330849988","filename":"file4"},{"photo_id":"1330849976","filename":"file1"},{"photo_id":"1330849907","filename":"file0"},{"photo_id":"1330849983","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330849976":["hashtag1","hashtag2"]},{"1330849979":["hashtag1","hashtag2"]},{"1330849907":["hashtag1","hashtag2"]},{"1330849983":["hashtag1","hashtag2"]},{"1330849992":["hashtag1","hashtag2"]},{"1330849988":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330849976, 1330849979, 1330849907, 1330849983, 1330849992, 1330849988)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.82760763168335 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:28:31.935058
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/28/image_23012025_19_28_55_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/19/28/image_23012025_19_28_48_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/19/28/image_23012025_19_28_42_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/19/28/image_23012025_19_28_36_5196.jpg', 2), ('/home/nano/Desktop/images/23012025/19/28/image_23012025_19_28_31_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/19/28/image_23012025_19_28_25_6193.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/28/image_23012025_19_28_55_6193.jpg', '/home/nano/Desktop/images/23012025/19/28/image_23012025_19_28_48_6204.jpg', '/home/nano/Desktop/images/23012025/19/28/image_23012025_19_28_42_6204.jpg', '/home/nano/Desktop/images/23012025/19/28/image_23012025_19_28_36_5196.jpg', '/home/nano/Desktop/images/23012025/19/28/image_23012025_19_28_31_6195.jpg', '/home/nano/Desktop/images/23012025/19/28/image_23012025_19_28_25_6193.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/28/image_23012025_19_28_55_6193.jpg
/home/nano/Desktop/images/23012025/19/28/image_23012025_19_28_48_6204.jpg
/home/nano/Desktop/images/23012025/19/28/image_23012025_19_28_42_6204.jpg
/home/nano/Desktop/images/23012025/19/28/image_23012025_19_28_36_5196.jpg
/home/nano/Desktop/images/23012025/19/28/image_23012025_19_28_31_6195.jpg
/home/nano/Desktop/images/23012025/19/28/image_23012025_19_28_25_6193.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330850031","1330850025","1330850028","1330850183","1330850041","1330850178"],"photo_ids_order":["1330850025","1330850028","1330850031","1330850041","1330850178","1330850183"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2520a751503d09812719dc43482a8108.jpg","text":"TemporaryFile(/tmp/multipartBody8570188977208945955asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656972556,"filename":"image_23012025_19_28_42_6204.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/18b0c50ec7cf971fc955bf454972c371.jpg","text":"TemporaryFile(/tmp/multipartBody6845905172451748822asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656972556,"filename":"image_23012025_19_28_55_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5797656a4c8f6f92d0f8292a228c3e02.jpg","text":"TemporaryFile(/tmp/multipartBody5709484687161071691asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656972556,"filename":"image_23012025_19_28_48_6204.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/099ac3bcade2e93fa3f82ae474384988.jpg","text":"TemporaryFile(/tmp/multipartBody1440000068452676475asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656972556,"filename":"image_23012025_19_28_25_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c204587cba58fa8b62d0bb5a52a43e02.jpg","text":"TemporaryFile(/tmp/multipartBody8801147752205406623asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656972556,"filename":"image_23012025_19_28_36_5196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c4aeb10c698a77de9ccfe0a0e72b6269.jpg","text":"TemporaryFile(/tmp/multipartBody1777355795805481495asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737656972556,"filename":"image_23012025_19_28_31_6195.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330850031","file1":"1330850028","file0":"1330850025","file4":"1330850178","file5":"1330850183","file3":"1330850041"},"map_files_photo_id_array":[{"photo_id":"1330850183","filename":"file5"},{"photo_id":"1330850031","filename":"file2"},{"photo_id":"1330850178","filename":"file4"},{"photo_id":"1330850028","filename":"file1"},{"photo_id":"1330850025","filename":"file0"},{"photo_id":"1330850041","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330850031":["hashtag1","hashtag2"]},{"1330850025":["hashtag1","hashtag2"]},{"1330850028":["hashtag1","hashtag2"]},{"1330850183":["hashtag1","hashtag2"]},{"1330850041":["hashtag1","hashtag2"]},{"1330850178":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330850031, 1330850025, 1330850028, 1330850183, 1330850041, 1330850178)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.265668392181396 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:29:32.062520
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/29/image_23012025_19_29_55_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/19/29/image_23012025_19_29_49_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/29/image_23012025_19_29_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/19/29/image_23012025_19_29_36_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/19/29/image_23012025_19_29_30_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/29/image_23012025_19_29_25_6199.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/29/image_23012025_19_29_55_6195.jpg', '/home/nano/Desktop/images/23012025/19/29/image_23012025_19_29_49_6188.jpg', '/home/nano/Desktop/images/23012025/19/29/image_23012025_19_29_42_6196.jpg', '/home/nano/Desktop/images/23012025/19/29/image_23012025_19_29_36_6198.jpg', '/home/nano/Desktop/images/23012025/19/29/image_23012025_19_29_30_5189.jpg', '/home/nano/Desktop/images/23012025/19/29/image_23012025_19_29_25_6199.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/29/image_23012025_19_29_55_6195.jpg
/home/nano/Desktop/images/23012025/19/29/image_23012025_19_29_49_6188.jpg
/home/nano/Desktop/images/23012025/19/29/image_23012025_19_29_42_6196.jpg
/home/nano/Desktop/images/23012025/19/29/image_23012025_19_29_36_6198.jpg
/home/nano/Desktop/images/23012025/19/29/image_23012025_19_29_30_5189.jpg
/home/nano/Desktop/images/23012025/19/29/image_23012025_19_29_25_6199.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330850235","1330850229","1330850231","1330850225","1330850221","1330850218"],"photo_ids_order":["1330850218","1330850221","1330850225","1330850229","1330850231","1330850235"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/facbb48daf5fe01884f82d3bde8d7691.jpg","text":"TemporaryFile(/tmp/multipartBody5741572575389142718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657032632,"filename":"image_23012025_19_29_25_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/215c02a2057bea3ba7c5434b6b8c32ba.jpg","text":"TemporaryFile(/tmp/multipartBody4463749816441219489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657032632,"filename":"image_23012025_19_29_36_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4713d2230a04eac6b135fb5e5797f081.jpg","text":"TemporaryFile(/tmp/multipartBody7349701134233360849asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657032632,"filename":"image_23012025_19_29_30_5189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7b1da0204c65ab7de7be75ee5d8b3a3a.jpg","text":"TemporaryFile(/tmp/multipartBody4387334885725470368asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657032632,"filename":"image_23012025_19_29_42_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/717048bf352dfa993bab0c3a6431a608.jpg","text":"TemporaryFile(/tmp/multipartBody7148332163914202350asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657032632,"filename":"image_23012025_19_29_49_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/659fd9874f467929e817a50931f3e548.jpg","text":"TemporaryFile(/tmp/multipartBody634858191339548006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657032632,"filename":"image_23012025_19_29_55_6195.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330850225","file1":"1330850221","file0":"1330850218","file4":"1330850231","file5":"1330850235","file3":"1330850229"},"map_files_photo_id_array":[{"photo_id":"1330850235","filename":"file5"},{"photo_id":"1330850225","filename":"file2"},{"photo_id":"1330850231","filename":"file4"},{"photo_id":"1330850221","filename":"file1"},{"photo_id":"1330850218","filename":"file0"},{"photo_id":"1330850229","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330850235":["hashtag1","hashtag2"]},{"1330850229":["hashtag1","hashtag2"]},{"1330850231":["hashtag1","hashtag2"]},{"1330850225":["hashtag1","hashtag2"]},{"1330850221":["hashtag1","hashtag2"]},{"1330850218":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330850235, 1330850229, 1330850231, 1330850225, 1330850221, 1330850218)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.53850269317627 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:30:32.159275
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/30/image_23012025_19_30_55_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/19/30/image_23012025_19_30_49_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/19/30/image_23012025_19_30_42_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/19/30/image_23012025_19_30_36_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/19/30/image_23012025_19_30_30_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/19/30/image_23012025_19_30_25_6192.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/30/image_23012025_19_30_55_6195.jpg', '/home/nano/Desktop/images/23012025/19/30/image_23012025_19_30_49_6199.jpg', '/home/nano/Desktop/images/23012025/19/30/image_23012025_19_30_42_6199.jpg', '/home/nano/Desktop/images/23012025/19/30/image_23012025_19_30_36_6197.jpg', '/home/nano/Desktop/images/23012025/19/30/image_23012025_19_30_30_5184.jpg', '/home/nano/Desktop/images/23012025/19/30/image_23012025_19_30_25_6192.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/30/image_23012025_19_30_55_6195.jpg
/home/nano/Desktop/images/23012025/19/30/image_23012025_19_30_49_6199.jpg
/home/nano/Desktop/images/23012025/19/30/image_23012025_19_30_42_6199.jpg
/home/nano/Desktop/images/23012025/19/30/image_23012025_19_30_36_6197.jpg
/home/nano/Desktop/images/23012025/19/30/image_23012025_19_30_30_5184.jpg
/home/nano/Desktop/images/23012025/19/30/image_23012025_19_30_25_6192.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330850301","1330850270","1330850309","1330850272","1330850296","1330850292"],"photo_ids_order":["1330850270","1330850272","1330850292","1330850296","1330850301","1330850309"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/30899174d871bd520c4db55a3e1c7325.jpg","text":"TemporaryFile(/tmp/multipartBody3737457662756611007asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657092743,"filename":"image_23012025_19_30_30_5184.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9c8dd20b23ccf592c51e43ba6b697b71.jpg","text":"TemporaryFile(/tmp/multipartBody4207219214427776672asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657092743,"filename":"image_23012025_19_30_55_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/59cd07ced7ece2bc36f5c5ba19193f55.jpg","text":"TemporaryFile(/tmp/multipartBody1633547807548298436asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657092743,"filename":"image_23012025_19_30_25_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e2b974ac8c7545a3e6dba244e4ef6909.jpg","text":"TemporaryFile(/tmp/multipartBody2236112149785907182asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657092743,"filename":"image_23012025_19_30_49_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2af15334dfd451c67f565238dc9839c5.jpg","text":"TemporaryFile(/tmp/multipartBody3511812494136641439asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657092743,"filename":"image_23012025_19_30_36_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8738cf514a57bfb482a32f040fda969a.jpg","text":"TemporaryFile(/tmp/multipartBody1664779319702626508asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657092743,"filename":"image_23012025_19_30_42_6199.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330850292","file1":"1330850272","file0":"1330850270","file4":"1330850301","file5":"1330850309","file3":"1330850296"},"map_files_photo_id_array":[{"photo_id":"1330850309","filename":"file5"},{"photo_id":"1330850292","filename":"file2"},{"photo_id":"1330850301","filename":"file4"},{"photo_id":"1330850272","filename":"file1"},{"photo_id":"1330850270","filename":"file0"},{"photo_id":"1330850296","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330850301":["hashtag1","hashtag2"]},{"1330850270":["hashtag1","hashtag2"]},{"1330850309":["hashtag1","hashtag2"]},{"1330850272":["hashtag1","hashtag2"]},{"1330850296":["hashtag1","hashtag2"]},{"1330850292":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330850301, 1330850270, 1330850309, 1330850272, 1330850296, 1330850292)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.438355922698975 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:31:32.273675
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/31/image_23012025_19_31_55_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/31/image_23012025_19_31_48_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/31/image_23012025_19_31_42_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/31/image_23012025_19_31_36_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/19/31/image_23012025_19_31_31_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/31/image_23012025_19_31_25_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/31/image_23012025_19_31_55_6187.jpg', '/home/nano/Desktop/images/23012025/19/31/image_23012025_19_31_48_6187.jpg', '/home/nano/Desktop/images/23012025/19/31/image_23012025_19_31_42_6189.jpg', '/home/nano/Desktop/images/23012025/19/31/image_23012025_19_31_36_5179.jpg', '/home/nano/Desktop/images/23012025/19/31/image_23012025_19_31_31_6187.jpg', '/home/nano/Desktop/images/23012025/19/31/image_23012025_19_31_25_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/31/image_23012025_19_31_55_6187.jpg
/home/nano/Desktop/images/23012025/19/31/image_23012025_19_31_48_6187.jpg
/home/nano/Desktop/images/23012025/19/31/image_23012025_19_31_42_6189.jpg
/home/nano/Desktop/images/23012025/19/31/image_23012025_19_31_36_5179.jpg
/home/nano/Desktop/images/23012025/19/31/image_23012025_19_31_31_6187.jpg
/home/nano/Desktop/images/23012025/19/31/image_23012025_19_31_25_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330850333","1330850347","1330850377","1330850356","1330850341","1330850370"],"photo_ids_order":["1330850333","1330850341","1330850347","1330850356","1330850370","1330850377"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/77ab8c75050a5bfd5c312c9019c9d30e.jpg","text":"TemporaryFile(/tmp/multipartBody1880595730869643726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657152672,"filename":"image_23012025_19_31_55_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3edaa846d82e62ccbe92102be6cbb53d.jpg","text":"TemporaryFile(/tmp/multipartBody5248674731988870269asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657152672,"filename":"image_23012025_19_31_42_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/df594bf61a5c5174d497d43a9374d76b.jpg","text":"TemporaryFile(/tmp/multipartBody5331461421068366024asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657152672,"filename":"image_23012025_19_31_25_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6a929a7dedba2adefb4692610783a3f6.jpg","text":"TemporaryFile(/tmp/multipartBody6758187243163360495asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657152672,"filename":"image_23012025_19_31_36_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0188c72a169d23482eb1510d5982c259.jpg","text":"TemporaryFile(/tmp/multipartBody876202379961497503asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657152672,"filename":"image_23012025_19_31_48_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7f82c0a40c9506e1e58a665e8ba8b552.jpg","text":"TemporaryFile(/tmp/multipartBody5534964341874796378asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657152672,"filename":"image_23012025_19_31_31_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330850347","file1":"1330850341","file0":"1330850333","file4":"1330850370","file5":"1330850377","file3":"1330850356"},"map_files_photo_id_array":[{"photo_id":"1330850377","filename":"file5"},{"photo_id":"1330850347","filename":"file2"},{"photo_id":"1330850370","filename":"file4"},{"photo_id":"1330850341","filename":"file1"},{"photo_id":"1330850333","filename":"file0"},{"photo_id":"1330850356","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330850333":["hashtag1","hashtag2"]},{"1330850347":["hashtag1","hashtag2"]},{"1330850377":["hashtag1","hashtag2"]},{"1330850356":["hashtag1","hashtag2"]},{"1330850341":["hashtag1","hashtag2"]},{"1330850370":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330850333, 1330850347, 1330850377, 1330850356, 1330850341, 1330850370)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.68403387069702 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:32:32.353745
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/32/image_23012025_19_32_54_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/32/image_23012025_19_32_48_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/32/image_23012025_19_32_42_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/19/32/image_23012025_19_32_36_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/19/32/image_23012025_19_32_31_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/32/image_23012025_19_32_25_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/32/image_23012025_19_32_54_6187.jpg', '/home/nano/Desktop/images/23012025/19/32/image_23012025_19_32_48_6187.jpg', '/home/nano/Desktop/images/23012025/19/32/image_23012025_19_32_42_6194.jpg', '/home/nano/Desktop/images/23012025/19/32/image_23012025_19_32_36_5177.jpg', '/home/nano/Desktop/images/23012025/19/32/image_23012025_19_32_31_6188.jpg', '/home/nano/Desktop/images/23012025/19/32/image_23012025_19_32_25_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/32/image_23012025_19_32_54_6187.jpg
/home/nano/Desktop/images/23012025/19/32/image_23012025_19_32_48_6187.jpg
/home/nano/Desktop/images/23012025/19/32/image_23012025_19_32_42_6194.jpg
/home/nano/Desktop/images/23012025/19/32/image_23012025_19_32_36_5177.jpg
/home/nano/Desktop/images/23012025/19/32/image_23012025_19_32_31_6188.jpg
/home/nano/Desktop/images/23012025/19/32/image_23012025_19_32_25_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330850844","1330850789","1330850786","1330850855","1330850840","1330850793"],"photo_ids_order":["1330850786","1330850789","1330850793","1330850840","1330850844","1330850855"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/db48e9e0cf566845f64af30f73e9f8be.jpg","text":"TemporaryFile(/tmp/multipartBody2604293518187614881asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657212762,"filename":"image_23012025_19_32_31_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0333100d3418eba51f20eecbcf7d7fea.jpg","text":"TemporaryFile(/tmp/multipartBody1694973903580430275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657212762,"filename":"image_23012025_19_32_48_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/16999a63fff3ef42d80df6d6fba2d5d7.jpg","text":"TemporaryFile(/tmp/multipartBody5499532598224885846asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657212762,"filename":"image_23012025_19_32_54_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6666c3824dc484e7af64edc9047c76bf.jpg","text":"TemporaryFile(/tmp/multipartBody3579540946313633626asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657212762,"filename":"image_23012025_19_32_25_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e41cf82f6a7676fe95e3f0836f5e75a6.jpg","text":"TemporaryFile(/tmp/multipartBody7535593897816169731asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657212762,"filename":"image_23012025_19_32_36_5177.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ceaf66b9d84a8f7c0fdf7a8f69807372.jpg","text":"TemporaryFile(/tmp/multipartBody9121130911428338383asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657212762,"filename":"image_23012025_19_32_42_6194.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330850793","file1":"1330850789","file0":"1330850786","file4":"1330850844","file5":"1330850855","file3":"1330850840"},"map_files_photo_id_array":[{"photo_id":"1330850855","filename":"file5"},{"photo_id":"1330850793","filename":"file2"},{"photo_id":"1330850844","filename":"file4"},{"photo_id":"1330850789","filename":"file1"},{"photo_id":"1330850786","filename":"file0"},{"photo_id":"1330850840","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330850844":["hashtag1","hashtag2"]},{"1330850789":["hashtag1","hashtag2"]},{"1330850786":["hashtag1","hashtag2"]},{"1330850855":["hashtag1","hashtag2"]},{"1330850840":["hashtag1","hashtag2"]},{"1330850793":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330850844, 1330850789, 1330850786, 1330850855, 1330850840, 1330850793)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.407891273498535 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:33:32.478410
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/33/image_23012025_19_34_01_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/19/33/image_23012025_19_33_48_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/19/33/image_23012025_19_33_42_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/19/33/image_23012025_19_33_37_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/33/image_23012025_19_33_31_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/33/image_23012025_19_33_24_6192.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/33/image_23012025_19_34_01_6192.jpg', '/home/nano/Desktop/images/23012025/19/33/image_23012025_19_33_48_6193.jpg', '/home/nano/Desktop/images/23012025/19/33/image_23012025_19_33_42_5181.jpg', '/home/nano/Desktop/images/23012025/19/33/image_23012025_19_33_37_6188.jpg', '/home/nano/Desktop/images/23012025/19/33/image_23012025_19_33_31_6189.jpg', '/home/nano/Desktop/images/23012025/19/33/image_23012025_19_33_24_6192.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/33/image_23012025_19_34_01_6192.jpg
/home/nano/Desktop/images/23012025/19/33/image_23012025_19_33_48_6193.jpg
/home/nano/Desktop/images/23012025/19/33/image_23012025_19_33_42_5181.jpg
/home/nano/Desktop/images/23012025/19/33/image_23012025_19_33_37_6188.jpg
/home/nano/Desktop/images/23012025/19/33/image_23012025_19_33_31_6189.jpg
/home/nano/Desktop/images/23012025/19/33/image_23012025_19_33_24_6192.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330850955","1330850951","1330850933","1330850936","1330850946","1330850931"],"photo_ids_order":["1330850931","1330850933","1330850936","1330850946","1330850951","1330850955"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7a6f0b9a230b7b2bbd04c59628b55c5e.jpg","text":"TemporaryFile(/tmp/multipartBody339586753922242900asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657272980,"filename":"image_23012025_19_33_24_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/483903daf8bc042fb16b3e655d849b1c.jpg","text":"TemporaryFile(/tmp/multipartBody6294894757626070300asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657272980,"filename":"image_23012025_19_33_31_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/22e77fe658b474c062ba43e96b12b67b.jpg","text":"TemporaryFile(/tmp/multipartBody6208825638282744987asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657272980,"filename":"image_23012025_19_33_48_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/27b59e2602706c002fddf0c100e73fd5.jpg","text":"TemporaryFile(/tmp/multipartBody3958625822564707408asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657272980,"filename":"image_23012025_19_33_42_5181.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cfdf83c85ee514c29167206792a42185.jpg","text":"TemporaryFile(/tmp/multipartBody1307841399692137819asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657272980,"filename":"image_23012025_19_33_37_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5372a0d6fa33d6debe21cb8b20592e57.jpg","text":"TemporaryFile(/tmp/multipartBody7410650143934552451asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657272980,"filename":"image_23012025_19_34_01_6192.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330850936","file1":"1330850933","file0":"1330850931","file4":"1330850951","file5":"1330850955","file3":"1330850946"},"map_files_photo_id_array":[{"photo_id":"1330850955","filename":"file5"},{"photo_id":"1330850936","filename":"file2"},{"photo_id":"1330850951","filename":"file4"},{"photo_id":"1330850933","filename":"file1"},{"photo_id":"1330850931","filename":"file0"},{"photo_id":"1330850946","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330850955":["hashtag1","hashtag2"]},{"1330850951":["hashtag1","hashtag2"]},{"1330850933":["hashtag1","hashtag2"]},{"1330850936":["hashtag1","hashtag2"]},{"1330850946":["hashtag1","hashtag2"]},{"1330850931":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330850955, 1330850951, 1330850933, 1330850936, 1330850946, 1330850931)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.799710750579834 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:34:32.691028
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/34/image_23012025_19_34_54_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/19/34/image_23012025_19_34_48_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/19/34/image_23012025_19_34_42_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/19/34/image_23012025_19_34_37_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/19/34/image_23012025_19_34_31_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/19/34/image_23012025_19_34_24_6194.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/34/image_23012025_19_34_54_6200.jpg', '/home/nano/Desktop/images/23012025/19/34/image_23012025_19_34_48_6196.jpg', '/home/nano/Desktop/images/23012025/19/34/image_23012025_19_34_42_5181.jpg', '/home/nano/Desktop/images/23012025/19/34/image_23012025_19_34_37_6194.jpg', '/home/nano/Desktop/images/23012025/19/34/image_23012025_19_34_31_6191.jpg', '/home/nano/Desktop/images/23012025/19/34/image_23012025_19_34_24_6194.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/34/image_23012025_19_34_54_6200.jpg
/home/nano/Desktop/images/23012025/19/34/image_23012025_19_34_48_6196.jpg
/home/nano/Desktop/images/23012025/19/34/image_23012025_19_34_42_5181.jpg
/home/nano/Desktop/images/23012025/19/34/image_23012025_19_34_37_6194.jpg
/home/nano/Desktop/images/23012025/19/34/image_23012025_19_34_31_6191.jpg
/home/nano/Desktop/images/23012025/19/34/image_23012025_19_34_24_6194.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330850993","1330851023","1330850989","1330851019","1330851010","1330851021"],"photo_ids_order":["1330850989","1330850993","1330851010","1330851019","1330851021","1330851023"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/085f50284ad0e1792be8bfdd6bea84f1.jpg","text":"TemporaryFile(/tmp/multipartBody4864665313948586633asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657333178,"filename":"image_23012025_19_34_48_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/26c72ad2bd5e7ade3808299fe77a8e3a.jpg","text":"TemporaryFile(/tmp/multipartBody8078435386648240822asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657333178,"filename":"image_23012025_19_34_24_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0463b6b7d4f875da0cb99bdc12689ed8.jpg","text":"TemporaryFile(/tmp/multipartBody1490645694955434820asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657333178,"filename":"image_23012025_19_34_54_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e8f584f807de901cf84ee828eafc3d14.jpg","text":"TemporaryFile(/tmp/multipartBody5281714473439871852asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657333178,"filename":"image_23012025_19_34_37_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3cf82a5e5e67677a096d662ebc35fb3f.jpg","text":"TemporaryFile(/tmp/multipartBody545743422157377225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657333178,"filename":"image_23012025_19_34_42_5181.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/effe178086c30d1d76be051f53ebca6f.jpg","text":"TemporaryFile(/tmp/multipartBody2411996908701392766asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657333178,"filename":"image_23012025_19_34_31_6191.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330851010","file1":"1330850993","file0":"1330850989","file4":"1330851021","file5":"1330851023","file3":"1330851019"},"map_files_photo_id_array":[{"photo_id":"1330851023","filename":"file5"},{"photo_id":"1330851010","filename":"file2"},{"photo_id":"1330851021","filename":"file4"},{"photo_id":"1330850993","filename":"file1"},{"photo_id":"1330850989","filename":"file0"},{"photo_id":"1330851019","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330850993":["hashtag1","hashtag2"]},{"1330851023":["hashtag1","hashtag2"]},{"1330850989":["hashtag1","hashtag2"]},{"1330851019":["hashtag1","hashtag2"]},{"1330851010":["hashtag1","hashtag2"]},{"1330851021":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330850993, 1330851023, 1330850989, 1330851019, 1330851010, 1330851021)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.52859926223755 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:35:31.763884
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/35/image_23012025_19_35_54_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/35/image_23012025_19_35_48_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/19/35/image_23012025_19_35_43_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/35/image_23012025_19_35_37_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/19/35/image_23012025_19_35_30_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/19/35/image_23012025_19_35_24_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/35/image_23012025_19_35_54_6187.jpg', '/home/nano/Desktop/images/23012025/19/35/image_23012025_19_35_48_5177.jpg', '/home/nano/Desktop/images/23012025/19/35/image_23012025_19_35_43_6187.jpg', '/home/nano/Desktop/images/23012025/19/35/image_23012025_19_35_37_6195.jpg', '/home/nano/Desktop/images/23012025/19/35/image_23012025_19_35_30_6193.jpg', '/home/nano/Desktop/images/23012025/19/35/image_23012025_19_35_24_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/35/image_23012025_19_35_54_6187.jpg
/home/nano/Desktop/images/23012025/19/35/image_23012025_19_35_48_5177.jpg
/home/nano/Desktop/images/23012025/19/35/image_23012025_19_35_43_6187.jpg
/home/nano/Desktop/images/23012025/19/35/image_23012025_19_35_37_6195.jpg
/home/nano/Desktop/images/23012025/19/35/image_23012025_19_35_30_6193.jpg
/home/nano/Desktop/images/23012025/19/35/image_23012025_19_35_24_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330851038","1330851055","1330851051","1330851060","1330851048","1330851042"],"photo_ids_order":["1330851038","1330851042","1330851048","1330851051","1330851055","1330851060"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/46d669ee97cff9398b7d6763c0962abd.jpg","text":"TemporaryFile(/tmp/multipartBody1676524121229832027asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657392202,"filename":"image_23012025_19_35_54_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5486b238daaa7aea7216eb3b0928987e.jpg","text":"TemporaryFile(/tmp/multipartBody4902812092364811624asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657392202,"filename":"image_23012025_19_35_30_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/497c1f0500e9fb19812b59978b63ec61.jpg","text":"TemporaryFile(/tmp/multipartBody2425009314054552432asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657392202,"filename":"image_23012025_19_35_37_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/430374dbe7c543872c15927d968b3c4b.jpg","text":"TemporaryFile(/tmp/multipartBody2311724417674116155asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657392202,"filename":"image_23012025_19_35_24_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d0c6ab1ef2c7578f26bb9b87f9a426de.jpg","text":"TemporaryFile(/tmp/multipartBody7555720303896707324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657392202,"filename":"image_23012025_19_35_43_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f55cd84a7f2679476ce53b0b19ed69a2.jpg","text":"TemporaryFile(/tmp/multipartBody2891910214874485462asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657392202,"filename":"image_23012025_19_35_48_5177.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330851048","file1":"1330851042","file0":"1330851038","file4":"1330851055","file5":"1330851060","file3":"1330851051"},"map_files_photo_id_array":[{"photo_id":"1330851060","filename":"file5"},{"photo_id":"1330851048","filename":"file2"},{"photo_id":"1330851055","filename":"file4"},{"photo_id":"1330851042","filename":"file1"},{"photo_id":"1330851038","filename":"file0"},{"photo_id":"1330851051","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330851038":["hashtag1","hashtag2"]},{"1330851055":["hashtag1","hashtag2"]},{"1330851051":["hashtag1","hashtag2"]},{"1330851060":["hashtag1","hashtag2"]},{"1330851048":["hashtag1","hashtag2"]},{"1330851042":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330851038, 1330851055, 1330851051, 1330851060, 1330851048, 1330851042)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.281410217285156 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:36:31.849085
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_54_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_48_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_43_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_37_6216.jpg', 2), ('/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_30_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_24_6199.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_54_6186.jpg', '/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_48_5178.jpg', '/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_43_6187.jpg', '/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_37_6216.jpg', '/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_30_6187.jpg', '/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_24_6199.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_54_6186.jpg
/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_48_5178.jpg
/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_43_6187.jpg
/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_37_6216.jpg
/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_30_6187.jpg
/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_24_6199.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.3287198543548584 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:37:02.688520
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_54_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_48_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_43_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_37_6216.jpg', 2), ('/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_30_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_24_6199.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_54_6186.jpg', '/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_48_5178.jpg', '/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_43_6187.jpg', '/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_37_6216.jpg', '/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_30_6187.jpg', '/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_24_6199.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_54_6186.jpg
/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_48_5178.jpg
/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_43_6187.jpg
/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_37_6216.jpg
/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_30_6187.jpg
/home/nano/Desktop/images/23012025/19/36/image_23012025_19_36_24_6199.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330851557","1330851644","1330851190","1330851193","1330851195","1330851369"],"photo_ids_order":["1330851190","1330851193","1330851195","1330851369","1330851557","1330851644"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6cdc21b633093b4d7d04336105eb268f.jpg","text":"TemporaryFile(/tmp/multipartBody8682260728102011289asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657483102,"filename":"image_23012025_19_36_30_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/510eba151374ee0140e3dc7a107428a2.jpg","text":"TemporaryFile(/tmp/multipartBody7810916649580100045asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657483102,"filename":"image_23012025_19_36_24_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ca69fa48d31dd897aa5515215371fcff.jpg","text":"TemporaryFile(/tmp/multipartBody5684972462311954566asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657483102,"filename":"image_23012025_19_36_54_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0d82721bc6657370cc3a6ff5a6aee931.jpg","text":"TemporaryFile(/tmp/multipartBody3591930906475878369asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657483102,"filename":"image_23012025_19_36_48_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0f159a3af8539a46678c071d2f9109a6.jpg","text":"TemporaryFile(/tmp/multipartBody3545597871330671156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657483102,"filename":"image_23012025_19_36_43_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4ffb7aff09ecd127aa161d37043e57f7.jpg","text":"TemporaryFile(/tmp/multipartBody6150710470796193084asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657483102,"filename":"image_23012025_19_36_37_6216.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330851195","file1":"1330851193","file0":"1330851190","file4":"1330851557","file5":"1330851644","file3":"1330851369"},"map_files_photo_id_array":[{"photo_id":"1330851644","filename":"file5"},{"photo_id":"1330851195","filename":"file2"},{"photo_id":"1330851557","filename":"file4"},{"photo_id":"1330851193","filename":"file1"},{"photo_id":"1330851190","filename":"file0"},{"photo_id":"1330851369","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330851557":["hashtag1","hashtag2"]},{"1330851644":["hashtag1","hashtag2"]},{"1330851190":["hashtag1","hashtag2"]},{"1330851193":["hashtag1","hashtag2"]},{"1330851195":["hashtag1","hashtag2"]},{"1330851369":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330851557, 1330851644, 1330851190, 1330851193, 1330851195, 1330851369)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.401995420455933 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:38:02.638326
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/37/image_23012025_19_37_54_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/19/37/image_23012025_19_37_49_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/19/37/image_23012025_19_37_43_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/37/image_23012025_19_37_36_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/37/image_23012025_19_37_30_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/19/37/image_23012025_19_37_24_5178.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/37/image_23012025_19_37_54_5177.jpg', '/home/nano/Desktop/images/23012025/19/37/image_23012025_19_37_49_6186.jpg', '/home/nano/Desktop/images/23012025/19/37/image_23012025_19_37_43_6187.jpg', '/home/nano/Desktop/images/23012025/19/37/image_23012025_19_37_36_6189.jpg', '/home/nano/Desktop/images/23012025/19/37/image_23012025_19_37_30_6191.jpg', '/home/nano/Desktop/images/23012025/19/37/image_23012025_19_37_24_5178.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/37/image_23012025_19_37_54_5177.jpg
/home/nano/Desktop/images/23012025/19/37/image_23012025_19_37_49_6186.jpg
/home/nano/Desktop/images/23012025/19/37/image_23012025_19_37_43_6187.jpg
/home/nano/Desktop/images/23012025/19/37/image_23012025_19_37_36_6189.jpg
/home/nano/Desktop/images/23012025/19/37/image_23012025_19_37_30_6191.jpg
/home/nano/Desktop/images/23012025/19/37/image_23012025_19_37_24_5178.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330851848","1330851842","1330851845","1330851924","1330851927","1330851849"],"photo_ids_order":["1330851842","1330851845","1330851848","1330851849","1330851924","1330851927"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/679b73e3e157f1511b6339b01266bd12.jpg","text":"TemporaryFile(/tmp/multipartBody4839923359905708754asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657543063,"filename":"image_23012025_19_37_43_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/89d3aae7e35f6a57af3dc050ad68fe74.jpg","text":"TemporaryFile(/tmp/multipartBody6699369644060488733asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657543063,"filename":"image_23012025_19_37_54_5177.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/92ddbba5e26f95db5f55b4717f515526.jpg","text":"TemporaryFile(/tmp/multipartBody5905626405648793488asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657543063,"filename":"image_23012025_19_37_49_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e32c1548a85dc7463e4fa0eba579897e.jpg","text":"TemporaryFile(/tmp/multipartBody1542954657969623693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657543063,"filename":"image_23012025_19_37_30_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cac334ad2c35eb9eef5661a01f38e613.jpg","text":"TemporaryFile(/tmp/multipartBody6639241788243592224asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657543063,"filename":"image_23012025_19_37_24_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/01e48e7d857d4be7c92a01b35191305c.jpg","text":"TemporaryFile(/tmp/multipartBody6610636308630361076asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657543063,"filename":"image_23012025_19_37_36_6189.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330851848","file1":"1330851845","file0":"1330851842","file4":"1330851924","file5":"1330851927","file3":"1330851849"},"map_files_photo_id_array":[{"photo_id":"1330851927","filename":"file5"},{"photo_id":"1330851848","filename":"file2"},{"photo_id":"1330851924","filename":"file4"},{"photo_id":"1330851845","filename":"file1"},{"photo_id":"1330851842","filename":"file0"},{"photo_id":"1330851849","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330851848":["hashtag1","hashtag2"]},{"1330851842":["hashtag1","hashtag2"]},{"1330851845":["hashtag1","hashtag2"]},{"1330851924":["hashtag1","hashtag2"]},{"1330851927":["hashtag1","hashtag2"]},{"1330851849":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330851848, 1330851842, 1330851845, 1330851924, 1330851927, 1330851849)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.234359979629517 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:39:02.967912
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/38/image_23012025_19_38_54_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/19/38/image_23012025_19_38_49_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/38/image_23012025_19_38_43_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/19/38/image_23012025_19_38_36_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/38/image_23012025_19_38_30_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/19/38/image_23012025_19_38_24_5186.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/38/image_23012025_19_38_54_5183.jpg', '/home/nano/Desktop/images/23012025/19/38/image_23012025_19_38_49_6189.jpg', '/home/nano/Desktop/images/23012025/19/38/image_23012025_19_38_43_6191.jpg', '/home/nano/Desktop/images/23012025/19/38/image_23012025_19_38_36_6189.jpg', '/home/nano/Desktop/images/23012025/19/38/image_23012025_19_38_30_6194.jpg', '/home/nano/Desktop/images/23012025/19/38/image_23012025_19_38_24_5186.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/38/image_23012025_19_38_54_5183.jpg
/home/nano/Desktop/images/23012025/19/38/image_23012025_19_38_49_6189.jpg
/home/nano/Desktop/images/23012025/19/38/image_23012025_19_38_43_6191.jpg
/home/nano/Desktop/images/23012025/19/38/image_23012025_19_38_36_6189.jpg
/home/nano/Desktop/images/23012025/19/38/image_23012025_19_38_30_6194.jpg
/home/nano/Desktop/images/23012025/19/38/image_23012025_19_38_24_5186.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330852148","1330852133","1330852144","1330852119","1330852113","1330852116"],"photo_ids_order":["1330852113","1330852116","1330852119","1330852133","1330852144","1330852148"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e3e10661740bd2a70617665a7aa638f1.jpg","text":"TemporaryFile(/tmp/multipartBody2474249307040551518asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657603506,"filename":"image_23012025_19_38_24_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/427149d91ad8294014d531243309a02e.jpg","text":"TemporaryFile(/tmp/multipartBody4830123201194492357asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657603506,"filename":"image_23012025_19_38_36_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0fac9880f342448c6f6ffe13955ff5f1.jpg","text":"TemporaryFile(/tmp/multipartBody7764134943192570826asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657603506,"filename":"image_23012025_19_38_30_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3b6778972504e89932c649b7f6e72ec7.jpg","text":"TemporaryFile(/tmp/multipartBody7744225407472581770asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657603506,"filename":"image_23012025_19_38_43_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/10a883b661152b1851741cded478e9c6.jpg","text":"TemporaryFile(/tmp/multipartBody4743703546511565517asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657603506,"filename":"image_23012025_19_38_54_5183.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6e22dd8f2871d1d114f9338160779950.jpg","text":"TemporaryFile(/tmp/multipartBody799821166803907352asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657603506,"filename":"image_23012025_19_38_49_6189.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330852119","file1":"1330852116","file0":"1330852113","file4":"1330852144","file5":"1330852148","file3":"1330852133"},"map_files_photo_id_array":[{"photo_id":"1330852148","filename":"file5"},{"photo_id":"1330852119","filename":"file2"},{"photo_id":"1330852144","filename":"file4"},{"photo_id":"1330852116","filename":"file1"},{"photo_id":"1330852113","filename":"file0"},{"photo_id":"1330852133","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330852148":["hashtag1","hashtag2"]},{"1330852133":["hashtag1","hashtag2"]},{"1330852144":["hashtag1","hashtag2"]},{"1330852119":["hashtag1","hashtag2"]},{"1330852113":["hashtag1","hashtag2"]},{"1330852116":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330852148, 1330852133, 1330852144, 1330852119, 1330852113, 1330852116)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.59766912460327 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:40:02.846388
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/39/image_23012025_19_39_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/39/image_23012025_19_39_49_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/39/image_23012025_19_39_42_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/39/image_23012025_19_39_36_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/19/39/image_23012025_19_39_30_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/19/39/image_23012025_19_39_24_5180.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/39/image_23012025_19_39_55_6188.jpg', '/home/nano/Desktop/images/23012025/19/39/image_23012025_19_39_49_6187.jpg', '/home/nano/Desktop/images/23012025/19/39/image_23012025_19_39_42_6187.jpg', '/home/nano/Desktop/images/23012025/19/39/image_23012025_19_39_36_6192.jpg', '/home/nano/Desktop/images/23012025/19/39/image_23012025_19_39_30_6193.jpg', '/home/nano/Desktop/images/23012025/19/39/image_23012025_19_39_24_5180.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/39/image_23012025_19_39_55_6188.jpg
/home/nano/Desktop/images/23012025/19/39/image_23012025_19_39_49_6187.jpg
/home/nano/Desktop/images/23012025/19/39/image_23012025_19_39_42_6187.jpg
/home/nano/Desktop/images/23012025/19/39/image_23012025_19_39_36_6192.jpg
/home/nano/Desktop/images/23012025/19/39/image_23012025_19_39_30_6193.jpg
/home/nano/Desktop/images/23012025/19/39/image_23012025_19_39_24_5180.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330852174","1330852173","1330852176","1330852170","1330852181","1330852187"],"photo_ids_order":["1330852170","1330852173","1330852174","1330852176","1330852181","1330852187"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5d5cffa5d3ff26c2978f402cf9740c4f.jpg","text":"TemporaryFile(/tmp/multipartBody4223235349783792136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657663216,"filename":"image_23012025_19_39_42_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7d2bedbb9f601d19e28fc7605c1352fd.jpg","text":"TemporaryFile(/tmp/multipartBody6218268644758179020asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657663216,"filename":"image_23012025_19_39_49_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9e077baf7a2e453a6746dc626f6d1281.jpg","text":"TemporaryFile(/tmp/multipartBody6132270277232298112asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657663216,"filename":"image_23012025_19_39_36_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d843a47410ae2433992e74bc8e2129ee.jpg","text":"TemporaryFile(/tmp/multipartBody810049135437410181asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657663216,"filename":"image_23012025_19_39_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fb2a70c62be876946eb950a7e478faec.jpg","text":"TemporaryFile(/tmp/multipartBody870676394533730044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657663216,"filename":"image_23012025_19_39_30_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3165b47615224e4aaae529c082ed334b.jpg","text":"TemporaryFile(/tmp/multipartBody7435530269818529945asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657663216,"filename":"image_23012025_19_39_24_5180.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330852174","file1":"1330852173","file0":"1330852170","file4":"1330852181","file5":"1330852187","file3":"1330852176"},"map_files_photo_id_array":[{"photo_id":"1330852187","filename":"file5"},{"photo_id":"1330852174","filename":"file2"},{"photo_id":"1330852181","filename":"file4"},{"photo_id":"1330852173","filename":"file1"},{"photo_id":"1330852170","filename":"file0"},{"photo_id":"1330852176","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330852174":["hashtag1","hashtag2"]},{"1330852173":["hashtag1","hashtag2"]},{"1330852176":["hashtag1","hashtag2"]},{"1330852170":["hashtag1","hashtag2"]},{"1330852181":["hashtag1","hashtag2"]},{"1330852187":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330852174, 1330852173, 1330852176, 1330852170, 1330852181, 1330852187)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.261653661727905 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:41:03.191373
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/40/image_23012025_19_40_55_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/40/image_23012025_19_40_49_6185.jpg', 2), ('/home/nano/Desktop/images/23012025/19/40/image_23012025_19_40_42_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/40/image_23012025_19_40_36_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/19/40/image_23012025_19_40_30_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/19/40/image_23012025_19_40_25_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/40/image_23012025_19_40_55_6187.jpg', '/home/nano/Desktop/images/23012025/19/40/image_23012025_19_40_49_6185.jpg', '/home/nano/Desktop/images/23012025/19/40/image_23012025_19_40_42_6189.jpg', '/home/nano/Desktop/images/23012025/19/40/image_23012025_19_40_36_6194.jpg', '/home/nano/Desktop/images/23012025/19/40/image_23012025_19_40_30_5181.jpg', '/home/nano/Desktop/images/23012025/19/40/image_23012025_19_40_25_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/40/image_23012025_19_40_55_6187.jpg
/home/nano/Desktop/images/23012025/19/40/image_23012025_19_40_49_6185.jpg
/home/nano/Desktop/images/23012025/19/40/image_23012025_19_40_42_6189.jpg
/home/nano/Desktop/images/23012025/19/40/image_23012025_19_40_36_6194.jpg
/home/nano/Desktop/images/23012025/19/40/image_23012025_19_40_30_5181.jpg
/home/nano/Desktop/images/23012025/19/40/image_23012025_19_40_25_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330852232","1330852235","1330852229","1330852238","1330852225","1330852240"],"photo_ids_order":["1330852225","1330852229","1330852232","1330852235","1330852238","1330852240"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d6b23156e50509e194d563d8737df1db.jpg","text":"TemporaryFile(/tmp/multipartBody1473034295916698072asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657723639,"filename":"image_23012025_19_40_42_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1132a08fa6ad8c67a27c38e4c5459b53.jpg","text":"TemporaryFile(/tmp/multipartBody2831829309851472528asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657723639,"filename":"image_23012025_19_40_36_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/96caa48fbf8c1cd1bd495a658d39f12e.jpg","text":"TemporaryFile(/tmp/multipartBody9193295777165740534asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657723639,"filename":"image_23012025_19_40_49_6185.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1e55fdcdd43782519701c58f81ca0c76.jpg","text":"TemporaryFile(/tmp/multipartBody7322307945205171498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657723639,"filename":"image_23012025_19_40_30_5181.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/91bff0c4785b89c26eb98a911430f63c.jpg","text":"TemporaryFile(/tmp/multipartBody5231203204156173736asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657723639,"filename":"image_23012025_19_40_55_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f1a13334a8c75f8aaacee8aa49413ed0.jpg","text":"TemporaryFile(/tmp/multipartBody7764210332747200460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657723639,"filename":"image_23012025_19_40_25_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330852232","file1":"1330852229","file0":"1330852225","file4":"1330852238","file5":"1330852240","file3":"1330852235"},"map_files_photo_id_array":[{"photo_id":"1330852240","filename":"file5"},{"photo_id":"1330852232","filename":"file2"},{"photo_id":"1330852238","filename":"file4"},{"photo_id":"1330852229","filename":"file1"},{"photo_id":"1330852225","filename":"file0"},{"photo_id":"1330852235","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330852232":["hashtag1","hashtag2"]},{"1330852235":["hashtag1","hashtag2"]},{"1330852229":["hashtag1","hashtag2"]},{"1330852238":["hashtag1","hashtag2"]},{"1330852225":["hashtag1","hashtag2"]},{"1330852240":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330852232, 1330852235, 1330852229, 1330852238, 1330852225, 1330852240)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.631399393081665 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:42:02.980044
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/41/image_23012025_19_41_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/41/image_23012025_19_41_48_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/19/41/image_23012025_19_41_42_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/41/image_23012025_19_41_36_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/19/41/image_23012025_19_41_30_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/19/41/image_23012025_19_41_25_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/41/image_23012025_19_41_55_6188.jpg', '/home/nano/Desktop/images/23012025/19/41/image_23012025_19_41_48_6186.jpg', '/home/nano/Desktop/images/23012025/19/41/image_23012025_19_41_42_6188.jpg', '/home/nano/Desktop/images/23012025/19/41/image_23012025_19_41_36_6191.jpg', '/home/nano/Desktop/images/23012025/19/41/image_23012025_19_41_30_5178.jpg', '/home/nano/Desktop/images/23012025/19/41/image_23012025_19_41_25_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/41/image_23012025_19_41_55_6188.jpg
/home/nano/Desktop/images/23012025/19/41/image_23012025_19_41_48_6186.jpg
/home/nano/Desktop/images/23012025/19/41/image_23012025_19_41_42_6188.jpg
/home/nano/Desktop/images/23012025/19/41/image_23012025_19_41_36_6191.jpg
/home/nano/Desktop/images/23012025/19/41/image_23012025_19_41_30_5178.jpg
/home/nano/Desktop/images/23012025/19/41/image_23012025_19_41_25_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330852529","1330852495","1330852360","1330852363","1330852356","1330852524"],"photo_ids_order":["1330852356","1330852360","1330852363","1330852495","1330852524","1330852529"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/db8c7c762a98798852da8373919533b7.jpg","text":"TemporaryFile(/tmp/multipartBody1246955162742290611asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657783408,"filename":"image_23012025_19_41_25_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/30865a98e2ba6e6a69b831e6e2c1373d.jpg","text":"TemporaryFile(/tmp/multipartBody5646632720213534732asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657783408,"filename":"image_23012025_19_41_36_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/89fd45a817504ae428f56df3a3b07918.jpg","text":"TemporaryFile(/tmp/multipartBody2355173168760974382asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657783408,"filename":"image_23012025_19_41_48_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/124c6aca2d83db8b89f3f57e39516090.jpg","text":"TemporaryFile(/tmp/multipartBody4129434757429250964asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657783408,"filename":"image_23012025_19_41_42_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/069af61fd28f406007764bac6a9f5e09.jpg","text":"TemporaryFile(/tmp/multipartBody7412487512796966365asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657783408,"filename":"image_23012025_19_41_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7b332a0c3e86df8a081f124191abe207.jpg","text":"TemporaryFile(/tmp/multipartBody8020213653315215824asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657783408,"filename":"image_23012025_19_41_30_5178.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330852363","file1":"1330852360","file0":"1330852356","file4":"1330852524","file5":"1330852529","file3":"1330852495"},"map_files_photo_id_array":[{"photo_id":"1330852529","filename":"file5"},{"photo_id":"1330852363","filename":"file2"},{"photo_id":"1330852524","filename":"file4"},{"photo_id":"1330852360","filename":"file1"},{"photo_id":"1330852356","filename":"file0"},{"photo_id":"1330852495","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330852529":["hashtag1","hashtag2"]},{"1330852495":["hashtag1","hashtag2"]},{"1330852360":["hashtag1","hashtag2"]},{"1330852363":["hashtag1","hashtag2"]},{"1330852356":["hashtag1","hashtag2"]},{"1330852524":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330852529, 1330852495, 1330852360, 1330852363, 1330852356, 1330852524)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.292857885360718 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:43:03.280647
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/43/image_23012025_19_44_01_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/19/42/image_23012025_19_42_55_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/19/42/image_23012025_19_42_48_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/19/42/image_23012025_19_42_42_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/19/42/image_23012025_19_42_36_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/42/image_23012025_19_42_31_6194.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/43/image_23012025_19_44_01_6195.jpg', '/home/nano/Desktop/images/23012025/19/42/image_23012025_19_42_55_6195.jpg', '/home/nano/Desktop/images/23012025/19/42/image_23012025_19_42_48_6199.jpg', '/home/nano/Desktop/images/23012025/19/42/image_23012025_19_42_42_6192.jpg', '/home/nano/Desktop/images/23012025/19/42/image_23012025_19_42_36_5187.jpg', '/home/nano/Desktop/images/23012025/19/42/image_23012025_19_42_31_6194.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/43/image_23012025_19_44_01_6195.jpg
/home/nano/Desktop/images/23012025/19/42/image_23012025_19_42_55_6195.jpg
/home/nano/Desktop/images/23012025/19/42/image_23012025_19_42_48_6199.jpg
/home/nano/Desktop/images/23012025/19/42/image_23012025_19_42_42_6192.jpg
/home/nano/Desktop/images/23012025/19/42/image_23012025_19_42_36_5187.jpg
/home/nano/Desktop/images/23012025/19/42/image_23012025_19_42_31_6194.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330852571","1330852579","1330852567","1330852576","1330852584","1330852563"],"photo_ids_order":["1330852563","1330852567","1330852571","1330852576","1330852579","1330852584"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/eb5efcd93e94e5292f16b552c97eea0a.jpg","text":"TemporaryFile(/tmp/multipartBody6838663808169006604asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657843975,"filename":"image_23012025_19_42_48_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/dbeff4329792e9b987b72f449706d315.jpg","text":"TemporaryFile(/tmp/multipartBody3251861420518284771asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657843975,"filename":"image_23012025_19_42_36_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ec980ad23a64f73d60696001a429011a.jpg","text":"TemporaryFile(/tmp/multipartBody3243596079372825558asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657843975,"filename":"image_23012025_19_42_55_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e1cf985bb2e459d2ba4e23ddefd27530.jpg","text":"TemporaryFile(/tmp/multipartBody881227446662207985asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657843975,"filename":"image_23012025_19_42_42_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9ea53cdee2669113075cb22157451e14.jpg","text":"TemporaryFile(/tmp/multipartBody6423674502373917489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657843975,"filename":"image_23012025_19_42_31_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c183f437e91eb1702e3e488947596e1c.jpg","text":"TemporaryFile(/tmp/multipartBody3486923059577223437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657843975,"filename":"image_23012025_19_44_01_6195.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330852571","file1":"1330852567","file0":"1330852563","file4":"1330852579","file5":"1330852584","file3":"1330852576"},"map_files_photo_id_array":[{"photo_id":"1330852584","filename":"file5"},{"photo_id":"1330852571","filename":"file2"},{"photo_id":"1330852579","filename":"file4"},{"photo_id":"1330852567","filename":"file1"},{"photo_id":"1330852563","filename":"file0"},{"photo_id":"1330852576","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330852571":["hashtag1","hashtag2"]},{"1330852579":["hashtag1","hashtag2"]},{"1330852567":["hashtag1","hashtag2"]},{"1330852576":["hashtag1","hashtag2"]},{"1330852584":["hashtag1","hashtag2"]},{"1330852563":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330852571, 1330852579, 1330852567, 1330852576, 1330852584, 1330852563)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.37472200393677 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:44:03.485964
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/43/image_23012025_19_43_48_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/19/43/image_23012025_19_43_42_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/19/43/image_23012025_19_43_36_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/19/43/image_23012025_19_43_31_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/19/43/image_23012025_19_43_25_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/19/43/image_23012025_19_43_18_6191.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/43/image_23012025_19_43_48_6192.jpg', '/home/nano/Desktop/images/23012025/19/43/image_23012025_19_43_42_6195.jpg', '/home/nano/Desktop/images/23012025/19/43/image_23012025_19_43_36_5191.jpg', '/home/nano/Desktop/images/23012025/19/43/image_23012025_19_43_31_6197.jpg', '/home/nano/Desktop/images/23012025/19/43/image_23012025_19_43_25_6194.jpg', '/home/nano/Desktop/images/23012025/19/43/image_23012025_19_43_18_6191.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/43/image_23012025_19_43_48_6192.jpg
/home/nano/Desktop/images/23012025/19/43/image_23012025_19_43_42_6195.jpg
/home/nano/Desktop/images/23012025/19/43/image_23012025_19_43_36_5191.jpg
/home/nano/Desktop/images/23012025/19/43/image_23012025_19_43_31_6197.jpg
/home/nano/Desktop/images/23012025/19/43/image_23012025_19_43_25_6194.jpg
/home/nano/Desktop/images/23012025/19/43/image_23012025_19_43_18_6191.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330852663","1330852672","1330852666","1330852660","1330852665","1330852668"],"photo_ids_order":["1330852660","1330852663","1330852665","1330852666","1330852668","1330852672"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0f1b53579302c500da8f937509a60cfe.jpg","text":"TemporaryFile(/tmp/multipartBody285122732712575930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657904118,"filename":"image_23012025_19_43_42_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d47b9c371c1ce194a04251501dd0a2cf.jpg","text":"TemporaryFile(/tmp/multipartBody8245810639304768841asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657904118,"filename":"image_23012025_19_43_18_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6cf9836d6a61c7b3167985464d5c996a.jpg","text":"TemporaryFile(/tmp/multipartBody4705486959533352105asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657904118,"filename":"image_23012025_19_43_31_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f9e91d68fc145c76d7fd053d5d6624fc.jpg","text":"TemporaryFile(/tmp/multipartBody4461598809761900700asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657904118,"filename":"image_23012025_19_43_48_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/79f01cc6c7df6c60091a28eaa058de2e.jpg","text":"TemporaryFile(/tmp/multipartBody5984527125444760233asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657904118,"filename":"image_23012025_19_43_36_5191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/06c1213c6b12063200455d73e8feddd4.jpg","text":"TemporaryFile(/tmp/multipartBody7314115861368126293asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657904118,"filename":"image_23012025_19_43_25_6194.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330852665","file1":"1330852663","file0":"1330852660","file4":"1330852668","file5":"1330852672","file3":"1330852666"},"map_files_photo_id_array":[{"photo_id":"1330852672","filename":"file5"},{"photo_id":"1330852665","filename":"file2"},{"photo_id":"1330852668","filename":"file4"},{"photo_id":"1330852663","filename":"file1"},{"photo_id":"1330852660","filename":"file0"},{"photo_id":"1330852666","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330852663":["hashtag1","hashtag2"]},{"1330852672":["hashtag1","hashtag2"]},{"1330852666":["hashtag1","hashtag2"]},{"1330852660":["hashtag1","hashtag2"]},{"1330852665":["hashtag1","hashtag2"]},{"1330852668":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330852663, 1330852672, 1330852666, 1330852660, 1330852665, 1330852668)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.55374050140381 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:45:02.583243
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/44/image_23012025_19_44_55_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/19/44/image_23012025_19_44_42_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/19/44/image_23012025_19_44_36_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/44/image_23012025_19_44_31_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/19/44/image_23012025_19_44_25_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/19/44/image_23012025_19_44_18_6215.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/44/image_23012025_19_44_55_6201.jpg', '/home/nano/Desktop/images/23012025/19/44/image_23012025_19_44_42_6190.jpg', '/home/nano/Desktop/images/23012025/19/44/image_23012025_19_44_36_5189.jpg', '/home/nano/Desktop/images/23012025/19/44/image_23012025_19_44_31_6193.jpg', '/home/nano/Desktop/images/23012025/19/44/image_23012025_19_44_25_6191.jpg', '/home/nano/Desktop/images/23012025/19/44/image_23012025_19_44_18_6215.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/44/image_23012025_19_44_55_6201.jpg
/home/nano/Desktop/images/23012025/19/44/image_23012025_19_44_42_6190.jpg
/home/nano/Desktop/images/23012025/19/44/image_23012025_19_44_36_5189.jpg
/home/nano/Desktop/images/23012025/19/44/image_23012025_19_44_31_6193.jpg
/home/nano/Desktop/images/23012025/19/44/image_23012025_19_44_25_6191.jpg
/home/nano/Desktop/images/23012025/19/44/image_23012025_19_44_18_6215.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330852757","1330852771","1330852759","1330852753","1330852735","1330852791"],"photo_ids_order":["1330852735","1330852753","1330852757","1330852759","1330852771","1330852791"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/944a28c4507efa9d63343283ce5184ba.jpg","text":"TemporaryFile(/tmp/multipartBody1989699155754078111asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657963066,"filename":"image_23012025_19_44_36_5189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/df3712f1f8c11af2a77fedcf376fd95a.jpg","text":"TemporaryFile(/tmp/multipartBody337674978087107286asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657963066,"filename":"image_23012025_19_44_25_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2be32e647b692c677633c65ef4629e1c.jpg","text":"TemporaryFile(/tmp/multipartBody5317156604633898819asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657963066,"filename":"image_23012025_19_44_31_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a8ee607f7e2ad9648db0346a74744411.jpg","text":"TemporaryFile(/tmp/multipartBody6699495061999505865asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657963066,"filename":"image_23012025_19_44_42_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/05fb56e28bf0eaeeafe2d1842948d418.jpg","text":"TemporaryFile(/tmp/multipartBody6956067018089220394asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657963066,"filename":"image_23012025_19_44_55_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/995d744d3104ae029ed53517bbb61e68.jpg","text":"TemporaryFile(/tmp/multipartBody2165885224449660154asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737657963066,"filename":"image_23012025_19_44_18_6215.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330852757","file1":"1330852753","file0":"1330852735","file4":"1330852771","file5":"1330852791","file3":"1330852759"},"map_files_photo_id_array":[{"photo_id":"1330852791","filename":"file5"},{"photo_id":"1330852757","filename":"file2"},{"photo_id":"1330852771","filename":"file4"},{"photo_id":"1330852753","filename":"file1"},{"photo_id":"1330852735","filename":"file0"},{"photo_id":"1330852759","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330852757":["hashtag1","hashtag2"]},{"1330852771":["hashtag1","hashtag2"]},{"1330852759":["hashtag1","hashtag2"]},{"1330852753":["hashtag1","hashtag2"]},{"1330852735":["hashtag1","hashtag2"]},{"1330852791":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330852757, 1330852771, 1330852759, 1330852753, 1330852735, 1330852791)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.13849711418152 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:46:02.446307
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/45/image_23012025_19_45_54_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/19/45/image_23012025_19_45_48_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/19/45/image_23012025_19_45_42_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/19/45/image_23012025_19_45_36_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/19/45/image_23012025_19_45_31_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/19/45/image_23012025_19_45_25_6191.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/45/image_23012025_19_45_54_6191.jpg', '/home/nano/Desktop/images/23012025/19/45/image_23012025_19_45_48_6194.jpg', '/home/nano/Desktop/images/23012025/19/45/image_23012025_19_45_42_6193.jpg', '/home/nano/Desktop/images/23012025/19/45/image_23012025_19_45_36_5183.jpg', '/home/nano/Desktop/images/23012025/19/45/image_23012025_19_45_31_6198.jpg', '/home/nano/Desktop/images/23012025/19/45/image_23012025_19_45_25_6191.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/45/image_23012025_19_45_54_6191.jpg
/home/nano/Desktop/images/23012025/19/45/image_23012025_19_45_48_6194.jpg
/home/nano/Desktop/images/23012025/19/45/image_23012025_19_45_42_6193.jpg
/home/nano/Desktop/images/23012025/19/45/image_23012025_19_45_36_5183.jpg
/home/nano/Desktop/images/23012025/19/45/image_23012025_19_45_31_6198.jpg
/home/nano/Desktop/images/23012025/19/45/image_23012025_19_45_25_6191.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330852885","1330852816","1330852875","1330852878","1330852824","1330852871"],"photo_ids_order":["1330852816","1330852824","1330852871","1330852875","1330852878","1330852885"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8d52ab4a5b88f550cc644806e86760ed.jpg","text":"TemporaryFile(/tmp/multipartBody1600560220979115077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658023063,"filename":"image_23012025_19_45_25_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5820a7f05ffac77d156a9ff60b57661d.jpg","text":"TemporaryFile(/tmp/multipartBody4182386514883625848asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658023063,"filename":"image_23012025_19_45_54_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/875b1a7eee321cb5b360a1fb78328e84.jpg","text":"TemporaryFile(/tmp/multipartBody1965695096430254651asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658023063,"filename":"image_23012025_19_45_36_5183.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5bcd8cffdce91876d145bb7c0cd271d5.jpg","text":"TemporaryFile(/tmp/multipartBody2128190401466675237asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658023063,"filename":"image_23012025_19_45_31_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9c8482beca90d8424df4562dd75dbcda.jpg","text":"TemporaryFile(/tmp/multipartBody6248869615310489969asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658023063,"filename":"image_23012025_19_45_48_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ec3a4c07bcd926800d4ac659c2791152.jpg","text":"TemporaryFile(/tmp/multipartBody6345023762745035512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658023063,"filename":"image_23012025_19_45_42_6193.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330852871","file1":"1330852824","file0":"1330852816","file4":"1330852878","file5":"1330852885","file3":"1330852875"},"map_files_photo_id_array":[{"photo_id":"1330852885","filename":"file5"},{"photo_id":"1330852871","filename":"file2"},{"photo_id":"1330852878","filename":"file4"},{"photo_id":"1330852824","filename":"file1"},{"photo_id":"1330852816","filename":"file0"},{"photo_id":"1330852875","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330852885":["hashtag1","hashtag2"]},{"1330852816":["hashtag1","hashtag2"]},{"1330852875":["hashtag1","hashtag2"]},{"1330852878":["hashtag1","hashtag2"]},{"1330852824":["hashtag1","hashtag2"]},{"1330852871":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330852885, 1330852816, 1330852875, 1330852878, 1330852824, 1330852871)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.483879566192627 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:47:02.716160
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/46/image_23012025_19_46_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/46/image_23012025_19_46_48_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/46/image_23012025_19_46_42_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/19/46/image_23012025_19_46_36_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/19/46/image_23012025_19_46_31_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/46/image_23012025_19_46_25_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/46/image_23012025_19_46_55_6188.jpg', '/home/nano/Desktop/images/23012025/19/46/image_23012025_19_46_48_6188.jpg', '/home/nano/Desktop/images/23012025/19/46/image_23012025_19_46_42_6186.jpg', '/home/nano/Desktop/images/23012025/19/46/image_23012025_19_46_36_5178.jpg', '/home/nano/Desktop/images/23012025/19/46/image_23012025_19_46_31_6188.jpg', '/home/nano/Desktop/images/23012025/19/46/image_23012025_19_46_25_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/46/image_23012025_19_46_55_6188.jpg
/home/nano/Desktop/images/23012025/19/46/image_23012025_19_46_48_6188.jpg
/home/nano/Desktop/images/23012025/19/46/image_23012025_19_46_42_6186.jpg
/home/nano/Desktop/images/23012025/19/46/image_23012025_19_46_36_5178.jpg
/home/nano/Desktop/images/23012025/19/46/image_23012025_19_46_31_6188.jpg
/home/nano/Desktop/images/23012025/19/46/image_23012025_19_46_25_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330852949","1330852942","1330852927","1330852935","1330852952","1330852931"],"photo_ids_order":["1330852927","1330852931","1330852935","1330852942","1330852949","1330852952"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f89a60680bca3048af29b7edea45e9a9.jpg","text":"TemporaryFile(/tmp/multipartBody6419311104641126107asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658083146,"filename":"image_23012025_19_46_31_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e4dc2e08ffdfe930c11b173a7947630b.jpg","text":"TemporaryFile(/tmp/multipartBody6161276674191049093asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658083146,"filename":"image_23012025_19_46_36_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1437c74827044c0db110e90f90e14452.jpg","text":"TemporaryFile(/tmp/multipartBody7733742061656464457asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658083146,"filename":"image_23012025_19_46_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a25c8d6b6c918b07f220b659b4146ac3.jpg","text":"TemporaryFile(/tmp/multipartBody3332192023620535869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658083146,"filename":"image_23012025_19_46_42_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3dec5e9fc1da97baa51100867d76548e.jpg","text":"TemporaryFile(/tmp/multipartBody1883005130275132293asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658083146,"filename":"image_23012025_19_46_25_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/74e6cc9dc5b8c619da3ed8382ce8240a.jpg","text":"TemporaryFile(/tmp/multipartBody8131121791600712826asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658083146,"filename":"image_23012025_19_46_48_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330852935","file1":"1330852931","file0":"1330852927","file4":"1330852949","file5":"1330852952","file3":"1330852942"},"map_files_photo_id_array":[{"photo_id":"1330852952","filename":"file5"},{"photo_id":"1330852935","filename":"file2"},{"photo_id":"1330852949","filename":"file4"},{"photo_id":"1330852931","filename":"file1"},{"photo_id":"1330852927","filename":"file0"},{"photo_id":"1330852942","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330852949":["hashtag1","hashtag2"]},{"1330852942":["hashtag1","hashtag2"]},{"1330852927":["hashtag1","hashtag2"]},{"1330852935":["hashtag1","hashtag2"]},{"1330852952":["hashtag1","hashtag2"]},{"1330852931":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330852949, 1330852942, 1330852927, 1330852935, 1330852952, 1330852931)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.435351371765137 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:48:02.634265
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/47/image_23012025_19_47_55_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/19/47/image_23012025_19_47_49_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/19/47/image_23012025_19_47_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/19/47/image_23012025_19_47_36_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/47/image_23012025_19_47_30_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/19/47/image_23012025_19_47_25_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/47/image_23012025_19_47_55_6206.jpg', '/home/nano/Desktop/images/23012025/19/47/image_23012025_19_47_49_6200.jpg', '/home/nano/Desktop/images/23012025/19/47/image_23012025_19_47_42_6196.jpg', '/home/nano/Desktop/images/23012025/19/47/image_23012025_19_47_36_6189.jpg', '/home/nano/Desktop/images/23012025/19/47/image_23012025_19_47_30_5179.jpg', '/home/nano/Desktop/images/23012025/19/47/image_23012025_19_47_25_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/47/image_23012025_19_47_55_6206.jpg
/home/nano/Desktop/images/23012025/19/47/image_23012025_19_47_49_6200.jpg
/home/nano/Desktop/images/23012025/19/47/image_23012025_19_47_42_6196.jpg
/home/nano/Desktop/images/23012025/19/47/image_23012025_19_47_36_6189.jpg
/home/nano/Desktop/images/23012025/19/47/image_23012025_19_47_30_5179.jpg
/home/nano/Desktop/images/23012025/19/47/image_23012025_19_47_25_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330853046","1330853043","1330853051","1330853039","1330853030","1330853033"],"photo_ids_order":["1330853030","1330853033","1330853039","1330853043","1330853046","1330853051"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/78bef4f394ad452b8cff9352be441afd.jpg","text":"TemporaryFile(/tmp/multipartBody8083111752660294008asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658143250,"filename":"image_23012025_19_47_30_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/08dbdbc1fc2267f8c9c101f85048f158.jpg","text":"TemporaryFile(/tmp/multipartBody2460104612528807198asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658143250,"filename":"image_23012025_19_47_36_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/64cfa17bc48c146e993b5332065c5877.jpg","text":"TemporaryFile(/tmp/multipartBody2112750917654204343asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658143250,"filename":"image_23012025_19_47_25_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/de3a330743669d070c91038d3173e1cd.jpg","text":"TemporaryFile(/tmp/multipartBody7226642549582058491asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658143250,"filename":"image_23012025_19_47_42_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ab8aed227b259ff60b13a9f46ff525d6.jpg","text":"TemporaryFile(/tmp/multipartBody1229669654658244267asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658143250,"filename":"image_23012025_19_47_55_6206.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/89bf6cdb0ffe6837c4a6e6c96dc03d91.jpg","text":"TemporaryFile(/tmp/multipartBody4122668067807534596asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658143250,"filename":"image_23012025_19_47_49_6200.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330853039","file1":"1330853033","file0":"1330853030","file4":"1330853046","file5":"1330853051","file3":"1330853043"},"map_files_photo_id_array":[{"photo_id":"1330853051","filename":"file5"},{"photo_id":"1330853039","filename":"file2"},{"photo_id":"1330853046","filename":"file4"},{"photo_id":"1330853033","filename":"file1"},{"photo_id":"1330853030","filename":"file0"},{"photo_id":"1330853043","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330853046":["hashtag1","hashtag2"]},{"1330853043":["hashtag1","hashtag2"]},{"1330853051":["hashtag1","hashtag2"]},{"1330853039":["hashtag1","hashtag2"]},{"1330853030":["hashtag1","hashtag2"]},{"1330853033":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330853046, 1330853043, 1330853051, 1330853039, 1330853030, 1330853033)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.299769163131714 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:49:03.044973
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/48/image_23012025_19_48_55_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/19/48/image_23012025_19_48_48_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/19/48/image_23012025_19_48_42_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/19/48/image_23012025_19_48_36_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/19/48/image_23012025_19_48_30_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/19/48/image_23012025_19_48_25_6189.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/48/image_23012025_19_48_55_6193.jpg', '/home/nano/Desktop/images/23012025/19/48/image_23012025_19_48_48_6194.jpg', '/home/nano/Desktop/images/23012025/19/48/image_23012025_19_48_42_6194.jpg', '/home/nano/Desktop/images/23012025/19/48/image_23012025_19_48_36_6198.jpg', '/home/nano/Desktop/images/23012025/19/48/image_23012025_19_48_30_5183.jpg', '/home/nano/Desktop/images/23012025/19/48/image_23012025_19_48_25_6189.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/48/image_23012025_19_48_55_6193.jpg
/home/nano/Desktop/images/23012025/19/48/image_23012025_19_48_48_6194.jpg
/home/nano/Desktop/images/23012025/19/48/image_23012025_19_48_42_6194.jpg
/home/nano/Desktop/images/23012025/19/48/image_23012025_19_48_36_6198.jpg
/home/nano/Desktop/images/23012025/19/48/image_23012025_19_48_30_5183.jpg
/home/nano/Desktop/images/23012025/19/48/image_23012025_19_48_25_6189.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330853204","1330853196","1330853209","1330853208","1330853192","1330853213"],"photo_ids_order":["1330853192","1330853196","1330853204","1330853208","1330853209","1330853213"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6a4fb46dbe4ae427963e2d4fff2f849d.jpg","text":"TemporaryFile(/tmp/multipartBody8221004981724490467asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658203706,"filename":"image_23012025_19_48_42_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7199b7ed317402d24cde14b99be99814.jpg","text":"TemporaryFile(/tmp/multipartBody8587063893864765831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658203706,"filename":"image_23012025_19_48_48_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d40909018857c55a0399473cf1c39593.jpg","text":"TemporaryFile(/tmp/multipartBody635529005981012843asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658203706,"filename":"image_23012025_19_48_30_5183.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ed637d16d3d8d17e03601ac4eab1ec16.jpg","text":"TemporaryFile(/tmp/multipartBody736989501692920277asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658203706,"filename":"image_23012025_19_48_36_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/97efe87fa247172a64c859149184d0c1.jpg","text":"TemporaryFile(/tmp/multipartBody2996113158518502162asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658203706,"filename":"image_23012025_19_48_55_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/eb31d53bcf537c514e294ce35d768e4e.jpg","text":"TemporaryFile(/tmp/multipartBody7177155560328178186asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658203706,"filename":"image_23012025_19_48_25_6189.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330853204","file1":"1330853196","file0":"1330853192","file4":"1330853209","file5":"1330853213","file3":"1330853208"},"map_files_photo_id_array":[{"photo_id":"1330853213","filename":"file5"},{"photo_id":"1330853204","filename":"file2"},{"photo_id":"1330853209","filename":"file4"},{"photo_id":"1330853196","filename":"file1"},{"photo_id":"1330853192","filename":"file0"},{"photo_id":"1330853208","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330853204":["hashtag1","hashtag2"]},{"1330853196":["hashtag1","hashtag2"]},{"1330853209":["hashtag1","hashtag2"]},{"1330853208":["hashtag1","hashtag2"]},{"1330853192":["hashtag1","hashtag2"]},{"1330853213":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330853204, 1330853196, 1330853209, 1330853208, 1330853192, 1330853213)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.07493734359741 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:50:02.785712
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/49/image_23012025_19_49_55_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/19/49/image_23012025_19_49_48_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/19/49/image_23012025_19_49_42_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/19/49/image_23012025_19_49_36_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/19/49/image_23012025_19_49_30_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/19/49/image_23012025_19_49_25_6194.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/49/image_23012025_19_49_55_6193.jpg', '/home/nano/Desktop/images/23012025/19/49/image_23012025_19_49_48_6192.jpg', '/home/nano/Desktop/images/23012025/19/49/image_23012025_19_49_42_6199.jpg', '/home/nano/Desktop/images/23012025/19/49/image_23012025_19_49_36_6201.jpg', '/home/nano/Desktop/images/23012025/19/49/image_23012025_19_49_30_5186.jpg', '/home/nano/Desktop/images/23012025/19/49/image_23012025_19_49_25_6194.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/49/image_23012025_19_49_55_6193.jpg
/home/nano/Desktop/images/23012025/19/49/image_23012025_19_49_48_6192.jpg
/home/nano/Desktop/images/23012025/19/49/image_23012025_19_49_42_6199.jpg
/home/nano/Desktop/images/23012025/19/49/image_23012025_19_49_36_6201.jpg
/home/nano/Desktop/images/23012025/19/49/image_23012025_19_49_30_5186.jpg
/home/nano/Desktop/images/23012025/19/49/image_23012025_19_49_25_6194.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330853260","1330853248","1330853242","1330853235","1330853237","1330853240"],"photo_ids_order":["1330853235","1330853237","1330853240","1330853242","1330853248","1330853260"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f9438b171040da9f4e6c55b978b1146e.jpg","text":"TemporaryFile(/tmp/multipartBody8926058463250196503asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658263393,"filename":"image_23012025_19_49_25_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a48c4051d91cccd189ece00b9ad3499b.jpg","text":"TemporaryFile(/tmp/multipartBody4130135133283321952asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658263393,"filename":"image_23012025_19_49_30_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5d676662a0d4939974f861e709626298.jpg","text":"TemporaryFile(/tmp/multipartBody4480884970335395340asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658263393,"filename":"image_23012025_19_49_36_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/223f5e0f569d244510406be64d08eff6.jpg","text":"TemporaryFile(/tmp/multipartBody1668991213743039525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658263393,"filename":"image_23012025_19_49_55_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9e701cf6c05167ee723cafb55fe55ace.jpg","text":"TemporaryFile(/tmp/multipartBody2567681716935150219asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658263393,"filename":"image_23012025_19_49_48_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c5d824f97ac417a3ae2e74a6cd353351.jpg","text":"TemporaryFile(/tmp/multipartBody1118467050420312886asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658263393,"filename":"image_23012025_19_49_42_6199.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330853240","file1":"1330853237","file0":"1330853235","file4":"1330853248","file5":"1330853260","file3":"1330853242"},"map_files_photo_id_array":[{"photo_id":"1330853260","filename":"file5"},{"photo_id":"1330853240","filename":"file2"},{"photo_id":"1330853248","filename":"file4"},{"photo_id":"1330853237","filename":"file1"},{"photo_id":"1330853235","filename":"file0"},{"photo_id":"1330853242","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330853260":["hashtag1","hashtag2"]},{"1330853248":["hashtag1","hashtag2"]},{"1330853242":["hashtag1","hashtag2"]},{"1330853235":["hashtag1","hashtag2"]},{"1330853237":["hashtag1","hashtag2"]},{"1330853240":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330853260, 1330853248, 1330853242, 1330853235, 1330853237, 1330853240)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.41053128242493 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:51:03.241560
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/50/image_23012025_19_50_55_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/19/50/image_23012025_19_50_48_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/19/50/image_23012025_19_50_42_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/19/50/image_23012025_19_50_36_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/19/50/image_23012025_19_50_30_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/19/50/image_23012025_19_50_25_6202.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/50/image_23012025_19_50_55_6194.jpg', '/home/nano/Desktop/images/23012025/19/50/image_23012025_19_50_48_6195.jpg', '/home/nano/Desktop/images/23012025/19/50/image_23012025_19_50_42_6192.jpg', '/home/nano/Desktop/images/23012025/19/50/image_23012025_19_50_36_6200.jpg', '/home/nano/Desktop/images/23012025/19/50/image_23012025_19_50_30_5190.jpg', '/home/nano/Desktop/images/23012025/19/50/image_23012025_19_50_25_6202.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/50/image_23012025_19_50_55_6194.jpg
/home/nano/Desktop/images/23012025/19/50/image_23012025_19_50_48_6195.jpg
/home/nano/Desktop/images/23012025/19/50/image_23012025_19_50_42_6192.jpg
/home/nano/Desktop/images/23012025/19/50/image_23012025_19_50_36_6200.jpg
/home/nano/Desktop/images/23012025/19/50/image_23012025_19_50_30_5190.jpg
/home/nano/Desktop/images/23012025/19/50/image_23012025_19_50_25_6202.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330853321","1330853317","1330853313","1330853495","1330853747","1330853324"],"photo_ids_order":["1330853313","1330853317","1330853321","1330853324","1330853495","1330853747"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ebe04403be0eac1a7e9e26157c14ae65.jpg","text":"TemporaryFile(/tmp/multipartBody2649646952092539199asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658323768,"filename":"image_23012025_19_50_42_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4f7ccfd765c435adfde12915a428418a.jpg","text":"TemporaryFile(/tmp/multipartBody7203880046471418156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658323768,"filename":"image_23012025_19_50_48_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a8dbfc0b82d9dc858ab47760ecb9daed.jpg","text":"TemporaryFile(/tmp/multipartBody5435818839707630776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658323768,"filename":"image_23012025_19_50_55_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/869f70885f3c84ac112737a727422a41.jpg","text":"TemporaryFile(/tmp/multipartBody8340642852576904577asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658323768,"filename":"image_23012025_19_50_30_5190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d47e95e5f5d2846fe90b92e52adc1a07.jpg","text":"TemporaryFile(/tmp/multipartBody6284230535672379552asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658323768,"filename":"image_23012025_19_50_25_6202.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a636b669397aba0bc8623ccad0112023.jpg","text":"TemporaryFile(/tmp/multipartBody5987422543433796119asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658323768,"filename":"image_23012025_19_50_36_6200.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330853321","file1":"1330853317","file0":"1330853313","file4":"1330853495","file5":"1330853747","file3":"1330853324"},"map_files_photo_id_array":[{"photo_id":"1330853747","filename":"file5"},{"photo_id":"1330853321","filename":"file2"},{"photo_id":"1330853495","filename":"file4"},{"photo_id":"1330853317","filename":"file1"},{"photo_id":"1330853313","filename":"file0"},{"photo_id":"1330853324","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330853321":["hashtag1","hashtag2"]},{"1330853317":["hashtag1","hashtag2"]},{"1330853313":["hashtag1","hashtag2"]},{"1330853495":["hashtag1","hashtag2"]},{"1330853747":["hashtag1","hashtag2"]},{"1330853324":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330853321, 1330853317, 1330853313, 1330853495, 1330853747, 1330853324)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.94438648223877 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:52:02.978375
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/51/image_23012025_19_51_55_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/19/51/image_23012025_19_51_48_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/19/51/image_23012025_19_51_42_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/19/51/image_23012025_19_51_36_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/19/51/image_23012025_19_51_31_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/19/51/image_23012025_19_51_25_6192.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/51/image_23012025_19_51_55_6195.jpg', '/home/nano/Desktop/images/23012025/19/51/image_23012025_19_51_48_6203.jpg', '/home/nano/Desktop/images/23012025/19/51/image_23012025_19_51_42_6200.jpg', '/home/nano/Desktop/images/23012025/19/51/image_23012025_19_51_36_5183.jpg', '/home/nano/Desktop/images/23012025/19/51/image_23012025_19_51_31_6192.jpg', '/home/nano/Desktop/images/23012025/19/51/image_23012025_19_51_25_6192.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/51/image_23012025_19_51_55_6195.jpg
/home/nano/Desktop/images/23012025/19/51/image_23012025_19_51_48_6203.jpg
/home/nano/Desktop/images/23012025/19/51/image_23012025_19_51_42_6200.jpg
/home/nano/Desktop/images/23012025/19/51/image_23012025_19_51_36_5183.jpg
/home/nano/Desktop/images/23012025/19/51/image_23012025_19_51_31_6192.jpg
/home/nano/Desktop/images/23012025/19/51/image_23012025_19_51_25_6192.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330854186","1330854099","1330854201","1330854170","1330854146","1330853948"],"photo_ids_order":["1330853948","1330854099","1330854146","1330854170","1330854186","1330854201"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fabc72da958fd1bb4405c7446a3489a7.jpg","text":"TemporaryFile(/tmp/multipartBody7945318552602926564asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658383615,"filename":"image_23012025_19_51_31_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4139cfab50eac015b36c0548c9ffe31a.jpg","text":"TemporaryFile(/tmp/multipartBody4067232287783822449asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658383615,"filename":"image_23012025_19_51_48_6203.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7688c5115c3aef95c71ff3665bbd890b.jpg","text":"TemporaryFile(/tmp/multipartBody217361966331310261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658383615,"filename":"image_23012025_19_51_25_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9e4f52225db19bc45925fed418e9cea2.jpg","text":"TemporaryFile(/tmp/multipartBody9053206714785296939asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658383615,"filename":"image_23012025_19_51_36_5183.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cf93c5a69f5f47d53926b7faf51e9a08.jpg","text":"TemporaryFile(/tmp/multipartBody1896192560775596713asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658383615,"filename":"image_23012025_19_51_42_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d954910621cbe23512e463071d7dca23.jpg","text":"TemporaryFile(/tmp/multipartBody6127280083825229668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658383615,"filename":"image_23012025_19_51_55_6195.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330854146","file1":"1330854099","file0":"1330853948","file4":"1330854186","file5":"1330854201","file3":"1330854170"},"map_files_photo_id_array":[{"photo_id":"1330854201","filename":"file5"},{"photo_id":"1330854146","filename":"file2"},{"photo_id":"1330854186","filename":"file4"},{"photo_id":"1330854099","filename":"file1"},{"photo_id":"1330853948","filename":"file0"},{"photo_id":"1330854170","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330854186":["hashtag1","hashtag2"]},{"1330854099":["hashtag1","hashtag2"]},{"1330854201":["hashtag1","hashtag2"]},{"1330854170":["hashtag1","hashtag2"]},{"1330854146":["hashtag1","hashtag2"]},{"1330853948":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330854186, 1330854099, 1330854201, 1330854170, 1330854146, 1330853948)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.52729630470276 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:53:03.331199
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/53/image_23012025_19_54_01_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/19/52/image_23012025_19_52_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/52/image_23012025_19_52_48_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/52/image_23012025_19_52_42_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/52/image_23012025_19_52_36_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/19/52/image_23012025_19_52_31_6193.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/53/image_23012025_19_54_01_6196.jpg', '/home/nano/Desktop/images/23012025/19/52/image_23012025_19_52_55_6188.jpg', '/home/nano/Desktop/images/23012025/19/52/image_23012025_19_52_48_6188.jpg', '/home/nano/Desktop/images/23012025/19/52/image_23012025_19_52_42_6187.jpg', '/home/nano/Desktop/images/23012025/19/52/image_23012025_19_52_36_5179.jpg', '/home/nano/Desktop/images/23012025/19/52/image_23012025_19_52_31_6193.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/53/image_23012025_19_54_01_6196.jpg
/home/nano/Desktop/images/23012025/19/52/image_23012025_19_52_55_6188.jpg
/home/nano/Desktop/images/23012025/19/52/image_23012025_19_52_48_6188.jpg
/home/nano/Desktop/images/23012025/19/52/image_23012025_19_52_42_6187.jpg
/home/nano/Desktop/images/23012025/19/52/image_23012025_19_52_36_5179.jpg
/home/nano/Desktop/images/23012025/19/52/image_23012025_19_52_31_6193.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330854349","1330854372","1330854366","1330854375","1330854478","1330854358"],"photo_ids_order":["1330854349","1330854358","1330854366","1330854372","1330854375","1330854478"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c94003204186d85fbb82dd49039b6460.jpg","text":"TemporaryFile(/tmp/multipartBody801663697692451563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658443759,"filename":"image_23012025_19_54_01_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/89e58e9743f646bf987cb89a1938b908.jpg","text":"TemporaryFile(/tmp/multipartBody3282704627340355721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658443759,"filename":"image_23012025_19_52_42_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bd807c0d799062404d619a08a1c53032.jpg","text":"TemporaryFile(/tmp/multipartBody6684228136979461977asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658443759,"filename":"image_23012025_19_52_48_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/038bd02b29f50621abf2704eb2228e34.jpg","text":"TemporaryFile(/tmp/multipartBody5147766875826988867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658443759,"filename":"image_23012025_19_52_36_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b68209143feb8876a675915d378cc67a.jpg","text":"TemporaryFile(/tmp/multipartBody3816378363393198032asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658443759,"filename":"image_23012025_19_52_31_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e5567ac6d7d7604c3d0c0a09139c487c.jpg","text":"TemporaryFile(/tmp/multipartBody3841573327075864886asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658443759,"filename":"image_23012025_19_52_55_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330854366","file1":"1330854358","file0":"1330854349","file4":"1330854375","file5":"1330854478","file3":"1330854372"},"map_files_photo_id_array":[{"photo_id":"1330854478","filename":"file5"},{"photo_id":"1330854366","filename":"file2"},{"photo_id":"1330854375","filename":"file4"},{"photo_id":"1330854358","filename":"file1"},{"photo_id":"1330854349","filename":"file0"},{"photo_id":"1330854372","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330854349":["hashtag1","hashtag2"]},{"1330854372":["hashtag1","hashtag2"]},{"1330854366":["hashtag1","hashtag2"]},{"1330854375":["hashtag1","hashtag2"]},{"1330854478":["hashtag1","hashtag2"]},{"1330854358":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330854349, 1330854372, 1330854366, 1330854375, 1330854478, 1330854358)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.571635246276855 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:54:03.545966
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/53/image_23012025_19_53_48_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/19/53/image_23012025_19_53_42_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/19/53/image_23012025_19_53_36_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/53/image_23012025_19_53_31_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/19/53/image_23012025_19_53_25_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/19/53/image_23012025_19_53_18_6198.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/53/image_23012025_19_53_48_6197.jpg', '/home/nano/Desktop/images/23012025/19/53/image_23012025_19_53_42_6197.jpg', '/home/nano/Desktop/images/23012025/19/53/image_23012025_19_53_36_5188.jpg', '/home/nano/Desktop/images/23012025/19/53/image_23012025_19_53_31_6196.jpg', '/home/nano/Desktop/images/23012025/19/53/image_23012025_19_53_25_6195.jpg', '/home/nano/Desktop/images/23012025/19/53/image_23012025_19_53_18_6198.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/53/image_23012025_19_53_48_6197.jpg
/home/nano/Desktop/images/23012025/19/53/image_23012025_19_53_42_6197.jpg
/home/nano/Desktop/images/23012025/19/53/image_23012025_19_53_36_5188.jpg
/home/nano/Desktop/images/23012025/19/53/image_23012025_19_53_31_6196.jpg
/home/nano/Desktop/images/23012025/19/53/image_23012025_19_53_25_6195.jpg
/home/nano/Desktop/images/23012025/19/53/image_23012025_19_53_18_6198.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.643944501876831 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:54:32.705484
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/54/image_23012025_19_54_55_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/54/image_23012025_19_54_48_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/19/54/image_23012025_19_54_42_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/19/54/image_23012025_19_54_36_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/54/image_23012025_19_54_31_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/19/54/image_23012025_19_54_25_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/54/image_23012025_19_54_55_6189.jpg', '/home/nano/Desktop/images/23012025/19/54/image_23012025_19_54_48_6197.jpg', '/home/nano/Desktop/images/23012025/19/54/image_23012025_19_54_42_6203.jpg', '/home/nano/Desktop/images/23012025/19/54/image_23012025_19_54_36_5187.jpg', '/home/nano/Desktop/images/23012025/19/54/image_23012025_19_54_31_6197.jpg', '/home/nano/Desktop/images/23012025/19/54/image_23012025_19_54_25_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/54/image_23012025_19_54_55_6189.jpg
/home/nano/Desktop/images/23012025/19/54/image_23012025_19_54_48_6197.jpg
/home/nano/Desktop/images/23012025/19/54/image_23012025_19_54_42_6203.jpg
/home/nano/Desktop/images/23012025/19/54/image_23012025_19_54_36_5187.jpg
/home/nano/Desktop/images/23012025/19/54/image_23012025_19_54_31_6197.jpg
/home/nano/Desktop/images/23012025/19/54/image_23012025_19_54_25_6197.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330854696","1330854687","1330854692","1330854677","1330854694","1330854682"],"photo_ids_order":["1330854677","1330854682","1330854687","1330854692","1330854694","1330854696"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9a470aef50816dcdf6e17bafe50b3743.jpg","text":"TemporaryFile(/tmp/multipartBody3859165382168427783asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658533193,"filename":"image_23012025_19_54_25_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cefbe02c9de6813d6f7dff7d6a77b428.jpg","text":"TemporaryFile(/tmp/multipartBody1678299192755038970asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658533193,"filename":"image_23012025_19_54_42_6203.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/22010a7689ed6cae48b419f4ac0b27f7.jpg","text":"TemporaryFile(/tmp/multipartBody6794139060521333195asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658533193,"filename":"image_23012025_19_54_36_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/496740057b2b82877b8c40d9c7c7231a.jpg","text":"TemporaryFile(/tmp/multipartBody6406115359610345645asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658533193,"filename":"image_23012025_19_54_55_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7c203dd0c66d8f094d20bd6dcd9db510.jpg","text":"TemporaryFile(/tmp/multipartBody4609349572175409163asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658533193,"filename":"image_23012025_19_54_31_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f7ead22244ed05a96fb1a0783aad8931.jpg","text":"TemporaryFile(/tmp/multipartBody5718452212029470429asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658533193,"filename":"image_23012025_19_54_48_6197.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330854687","file1":"1330854682","file0":"1330854677","file4":"1330854694","file5":"1330854696","file3":"1330854692"},"map_files_photo_id_array":[{"photo_id":"1330854696","filename":"file5"},{"photo_id":"1330854687","filename":"file2"},{"photo_id":"1330854694","filename":"file4"},{"photo_id":"1330854682","filename":"file1"},{"photo_id":"1330854677","filename":"file0"},{"photo_id":"1330854692","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330854696":["hashtag1","hashtag2"]},{"1330854687":["hashtag1","hashtag2"]},{"1330854692":["hashtag1","hashtag2"]},{"1330854677":["hashtag1","hashtag2"]},{"1330854694":["hashtag1","hashtag2"]},{"1330854682":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330854696, 1330854687, 1330854692, 1330854677, 1330854694, 1330854682)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.40278744697571 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:55:31.861301
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/55/image_23012025_19_55_54_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/55/image_23012025_19_55_48_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/19/55/image_23012025_19_55_42_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/19/55/image_23012025_19_55_37_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/55/image_23012025_19_55_31_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/55/image_23012025_19_55_24_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/55/image_23012025_19_55_54_6188.jpg', '/home/nano/Desktop/images/23012025/19/55/image_23012025_19_55_48_6194.jpg', '/home/nano/Desktop/images/23012025/19/55/image_23012025_19_55_42_5179.jpg', '/home/nano/Desktop/images/23012025/19/55/image_23012025_19_55_37_6189.jpg', '/home/nano/Desktop/images/23012025/19/55/image_23012025_19_55_31_6188.jpg', '/home/nano/Desktop/images/23012025/19/55/image_23012025_19_55_24_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/55/image_23012025_19_55_54_6188.jpg
/home/nano/Desktop/images/23012025/19/55/image_23012025_19_55_48_6194.jpg
/home/nano/Desktop/images/23012025/19/55/image_23012025_19_55_42_5179.jpg
/home/nano/Desktop/images/23012025/19/55/image_23012025_19_55_37_6189.jpg
/home/nano/Desktop/images/23012025/19/55/image_23012025_19_55_31_6188.jpg
/home/nano/Desktop/images/23012025/19/55/image_23012025_19_55_24_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330854745","1330854739","1330854750","1330854758","1330854754","1330854748"],"photo_ids_order":["1330854739","1330854745","1330854748","1330854750","1330854754","1330854758"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c285fa8cec8c1cc6ea78f891b58503be.jpg","text":"TemporaryFile(/tmp/multipartBody8799218787492061580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658592227,"filename":"image_23012025_19_55_48_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/93b86b743889162f9cc8775e74a43992.jpg","text":"TemporaryFile(/tmp/multipartBody4974077419943885448asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658592227,"filename":"image_23012025_19_55_54_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2938df62063a4ad849313fa7722043d7.jpg","text":"TemporaryFile(/tmp/multipartBody8074007785090386018asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658592227,"filename":"image_23012025_19_55_37_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4d3ca0f8ac2cf958a8f3d509c309f7fc.jpg","text":"TemporaryFile(/tmp/multipartBody4026291854081599534asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658592227,"filename":"image_23012025_19_55_24_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8bdbbdac2be34a335a827b39f8bed194.jpg","text":"TemporaryFile(/tmp/multipartBody2515723326903815706asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658592227,"filename":"image_23012025_19_55_31_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/aa4c9fc9750b437b40fd36efac70dcd3.jpg","text":"TemporaryFile(/tmp/multipartBody7453489806115721184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658592227,"filename":"image_23012025_19_55_42_5179.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330854748","file1":"1330854745","file0":"1330854739","file4":"1330854754","file5":"1330854758","file3":"1330854750"},"map_files_photo_id_array":[{"photo_id":"1330854758","filename":"file5"},{"photo_id":"1330854748","filename":"file2"},{"photo_id":"1330854754","filename":"file4"},{"photo_id":"1330854745","filename":"file1"},{"photo_id":"1330854739","filename":"file0"},{"photo_id":"1330854750","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330854745":["hashtag1","hashtag2"]},{"1330854739":["hashtag1","hashtag2"]},{"1330854750":["hashtag1","hashtag2"]},{"1330854758":["hashtag1","hashtag2"]},{"1330854754":["hashtag1","hashtag2"]},{"1330854748":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330854745, 1330854739, 1330854750, 1330854758, 1330854754, 1330854748)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.441351413726807 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:56:31.930102
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_54_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_48_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_42_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_37_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_31_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_24_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_54_6188.jpg', '/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_48_6189.jpg', '/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_42_5180.jpg', '/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_37_6191.jpg', '/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_31_6188.jpg', '/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_24_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_54_6188.jpg
/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_48_6189.jpg
/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_42_5180.jpg
/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_37_6191.jpg
/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_31_6188.jpg
/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_24_6188.jpg
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330854910","1330854904","1330854876","1330854863","1330854883","1330854853"],"photo_ids_order":["1330854853","1330854863","1330854876","1330854883","1330854904","1330854910"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ff22dc3f57d43fb037ab48d6fbddef28.jpg","text":"TemporaryFile(/tmp/multipartBody6018221410483895962asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658652336,"filename":"image_23012025_19_56_24_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5a5f484fcc8f0af5cf766fe625e3ba67.jpg","text":"TemporaryFile(/tmp/multipartBody999073657280431400asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658652336,"filename":"image_23012025_19_56_31_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d6615fd8fdca1237cbb26aff6ddd146b.jpg","text":"TemporaryFile(/tmp/multipartBody2094785776417278076asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658652336,"filename":"image_23012025_19_56_42_5180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c7f9dffe15467971395c4fb14f2ee101.jpg","text":"TemporaryFile(/tmp/multipartBody5966723942043109150asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658652336,"filename":"image_23012025_19_56_48_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/21735f19e32342208c02715c0dd8abbc.jpg","text":"TemporaryFile(/tmp/multipartBody4923703819312708187asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658652336,"filename":"image_23012025_19_56_37_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2e4bf586f210ce8f00a614f2c1ebf851.jpg","text":"TemporaryFile(/tmp/multipartBody4608369347164395615asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658652336,"filename":"image_23012025_19_56_54_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330854876","file1":"1330854863","file0":"1330854853","file4":"1330854904","file5":"1330854910","file3":"1330854883"},"map_files_photo_id_array":[{"photo_id":"1330854910","filename":"file5"},{"photo_id":"1330854876","filename":"file2"},{"photo_id":"1330854904","filename":"file4"},{"photo_id":"1330854863","filename":"file1"},{"photo_id":"1330854853","filename":"file0"},{"photo_id":"1330854883","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330854910":["hashtag1","hashtag2"]},{"1330854904":["hashtag1","hashtag2"]},{"1330854876":["hashtag1","hashtag2"]},{"1330854863":["hashtag1","hashtag2"]},{"1330854883":["hashtag1","hashtag2"]},{"1330854853":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330854910, 1330854904, 1330854876, 1330854863, 1330854883, 1330854853)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.465059280395508 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:57:02.582095
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_18_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_12_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_07_6296.jpg', 2), ('/home/nano/Desktop/images/23012025/19/55/image_23012025_19_56_01_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/55/image_23012025_19_55_18_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/55/image_23012025_19_55_12_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_18_6197.jpg', '/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_12_5179.jpg', '/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_07_6296.jpg', '/home/nano/Desktop/images/23012025/19/55/image_23012025_19_56_01_6189.jpg', '/home/nano/Desktop/images/23012025/19/55/image_23012025_19_55_18_6187.jpg', '/home/nano/Desktop/images/23012025/19/55/image_23012025_19_55_12_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_18_6197.jpg
/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_12_5179.jpg
/home/nano/Desktop/images/23012025/19/56/image_23012025_19_56_07_6296.jpg
/home/nano/Desktop/images/23012025/19/55/image_23012025_19_56_01_6189.jpg
/home/nano/Desktop/images/23012025/19/55/image_23012025_19_55_18_6187.jpg
/home/nano/Desktop/images/23012025/19/55/image_23012025_19_55_12_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330854949","1330854947","1330854941","1330854944","1330854938","1330854976"],"photo_ids_order":["1330854938","1330854941","1330854944","1330854947","1330854949","1330854976"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/08e1fa449b0aa083d2d43e09daf372fa.jpg","text":"TemporaryFile(/tmp/multipartBody5969646967615824205asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658683022,"filename":"image_23012025_19_55_18_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7511bc269e4f39aefbcbb62a2f23a0ae.jpg","text":"TemporaryFile(/tmp/multipartBody5794502869172676649asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658683022,"filename":"image_23012025_19_56_01_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9afa3ddc8b069e4fdf37ffe35bacb0d1.jpg","text":"TemporaryFile(/tmp/multipartBody9159352790952764598asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658683022,"filename":"image_23012025_19_56_12_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0f89fbd0dc6966fc9231f21f44e6e6c0.jpg","text":"TemporaryFile(/tmp/multipartBody2828978151082585622asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658683022,"filename":"image_23012025_19_56_07_6296.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/07ce9409bee70fe21e3a73d27f3c1263.jpg","text":"TemporaryFile(/tmp/multipartBody1856684371626321384asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658683022,"filename":"image_23012025_19_56_18_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c89285540e8ac96d150a3a3d95edc95b.jpg","text":"TemporaryFile(/tmp/multipartBody851043538027931553asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658683022,"filename":"image_23012025_19_55_12_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330854944","file1":"1330854941","file0":"1330854938","file4":"1330854949","file5":"1330854976","file3":"1330854947"},"map_files_photo_id_array":[{"photo_id":"1330854976","filename":"file5"},{"photo_id":"1330854944","filename":"file2"},{"photo_id":"1330854949","filename":"file4"},{"photo_id":"1330854941","filename":"file1"},{"photo_id":"1330854938","filename":"file0"},{"photo_id":"1330854947","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330854949":["hashtag1","hashtag2"]},{"1330854947":["hashtag1","hashtag2"]},{"1330854941":["hashtag1","hashtag2"]},{"1330854944":["hashtag1","hashtag2"]},{"1330854938":["hashtag1","hashtag2"]},{"1330854976":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330854949, 1330854947, 1330854941, 1330854944, 1330854938, 1330854976)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.806421041488647 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:58:02.668208
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/57/image_23012025_19_57_54_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/19/57/image_23012025_19_57_48_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/19/57/image_23012025_19_57_42_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/19/57/image_23012025_19_57_37_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/19/57/image_23012025_19_57_31_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/19/57/image_23012025_19_57_24_6194.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/57/image_23012025_19_57_54_6194.jpg', '/home/nano/Desktop/images/23012025/19/57/image_23012025_19_57_48_6193.jpg', '/home/nano/Desktop/images/23012025/19/57/image_23012025_19_57_42_5185.jpg', '/home/nano/Desktop/images/23012025/19/57/image_23012025_19_57_37_6191.jpg', '/home/nano/Desktop/images/23012025/19/57/image_23012025_19_57_31_6190.jpg', '/home/nano/Desktop/images/23012025/19/57/image_23012025_19_57_24_6194.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/57/image_23012025_19_57_54_6194.jpg
/home/nano/Desktop/images/23012025/19/57/image_23012025_19_57_48_6193.jpg
/home/nano/Desktop/images/23012025/19/57/image_23012025_19_57_42_5185.jpg
/home/nano/Desktop/images/23012025/19/57/image_23012025_19_57_37_6191.jpg
/home/nano/Desktop/images/23012025/19/57/image_23012025_19_57_31_6190.jpg
/home/nano/Desktop/images/23012025/19/57/image_23012025_19_57_24_6194.jpg
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330855137","1330855119","1330855139","1330855136","1330855130","1330855141"],"photo_ids_order":["1330855119","1330855130","1330855136","1330855137","1330855139","1330855141"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/086b32782f06d3622763012cc569d87b.jpg","text":"TemporaryFile(/tmp/multipartBody4893830498671428768asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658743133,"filename":"image_23012025_19_57_37_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8a2eeb76b45aa4452e7156c05a84aa47.jpg","text":"TemporaryFile(/tmp/multipartBody8881649287065309226asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658743133,"filename":"image_23012025_19_57_54_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8461981c4340a8b3c88d99f9c70ff686.jpg","text":"TemporaryFile(/tmp/multipartBody4764119137520830535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658743133,"filename":"image_23012025_19_57_31_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8dd42b86c3ef16f89816f87d0e403dcb.jpg","text":"TemporaryFile(/tmp/multipartBody2182663414822273302asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658743133,"filename":"image_23012025_19_57_42_5185.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f985413ccf8f82461fad80e5bed1526e.jpg","text":"TemporaryFile(/tmp/multipartBody8266420823608281575asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658743133,"filename":"image_23012025_19_57_48_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7edc89bb4d49c6f2e4592924db3c843a.jpg","text":"TemporaryFile(/tmp/multipartBody2786012918653384740asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658743133,"filename":"image_23012025_19_57_24_6194.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330855136","file1":"1330855130","file0":"1330855119","file4":"1330855139","file5":"1330855141","file3":"1330855137"},"map_files_photo_id_array":[{"photo_id":"1330855141","filename":"file5"},{"photo_id":"1330855136","filename":"file2"},{"photo_id":"1330855139","filename":"file4"},{"photo_id":"1330855130","filename":"file1"},{"photo_id":"1330855119","filename":"file0"},{"photo_id":"1330855137","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330855137":["hashtag1","hashtag2"]},{"1330855119":["hashtag1","hashtag2"]},{"1330855139":["hashtag1","hashtag2"]},{"1330855136":["hashtag1","hashtag2"]},{"1330855130":["hashtag1","hashtag2"]},{"1330855141":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330855137, 1330855119, 1330855139, 1330855136, 1330855130, 1330855141)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.920329332351685 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 19:59:03.167911
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/58/image_23012025_19_58_54_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/19/58/image_23012025_19_58_48_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/19/58/image_23012025_19_58_43_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/19/58/image_23012025_19_58_37_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/19/58/image_23012025_19_58_30_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/19/58/image_23012025_19_58_24_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/58/image_23012025_19_58_54_6193.jpg', '/home/nano/Desktop/images/23012025/19/58/image_23012025_19_58_48_5182.jpg', '/home/nano/Desktop/images/23012025/19/58/image_23012025_19_58_43_6193.jpg', '/home/nano/Desktop/images/23012025/19/58/image_23012025_19_58_37_6191.jpg', '/home/nano/Desktop/images/23012025/19/58/image_23012025_19_58_30_6196.jpg', '/home/nano/Desktop/images/23012025/19/58/image_23012025_19_58_24_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/58/image_23012025_19_58_54_6193.jpg
/home/nano/Desktop/images/23012025/19/58/image_23012025_19_58_48_5182.jpg
/home/nano/Desktop/images/23012025/19/58/image_23012025_19_58_43_6193.jpg
/home/nano/Desktop/images/23012025/19/58/image_23012025_19_58_37_6191.jpg
/home/nano/Desktop/images/23012025/19/58/image_23012025_19_58_30_6196.jpg
/home/nano/Desktop/images/23012025/19/58/image_23012025_19_58_24_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330855191","1330855170","1330855242","1330855250","1330855183","1330855177"],"photo_ids_order":["1330855170","1330855177","1330855183","1330855191","1330855242","1330855250"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/17b8c426f93d6bb13880a63ef7973904.jpg","text":"TemporaryFile(/tmp/multipartBody6861494515584180897asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658803719,"filename":"image_23012025_19_58_37_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/89147ecd003b82171daa027056cdf59e.jpg","text":"TemporaryFile(/tmp/multipartBody6182656969688133981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658803719,"filename":"image_23012025_19_58_54_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/279bbe66d0351720bf047a0313c6792b.jpg","text":"TemporaryFile(/tmp/multipartBody3871196248336099403asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658803719,"filename":"image_23012025_19_58_30_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/26734a2aa5468cfed617b71ce47938ee.jpg","text":"TemporaryFile(/tmp/multipartBody1858621699414576460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658803719,"filename":"image_23012025_19_58_24_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4a4f7b2fa363df8ff6b809414910c001.jpg","text":"TemporaryFile(/tmp/multipartBody9080741786636537252asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658803719,"filename":"image_23012025_19_58_43_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1684d8975562c45a4053c0e6632f0ee4.jpg","text":"TemporaryFile(/tmp/multipartBody7757949209881551554asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658803719,"filename":"image_23012025_19_58_48_5182.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330855183","file1":"1330855177","file0":"1330855170","file4":"1330855242","file5":"1330855250","file3":"1330855191"},"map_files_photo_id_array":[{"photo_id":"1330855250","filename":"file5"},{"photo_id":"1330855183","filename":"file2"},{"photo_id":"1330855242","filename":"file4"},{"photo_id":"1330855177","filename":"file1"},{"photo_id":"1330855170","filename":"file0"},{"photo_id":"1330855191","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330855191":["hashtag1","hashtag2"]},{"1330855170":["hashtag1","hashtag2"]},{"1330855242":["hashtag1","hashtag2"]},{"1330855250":["hashtag1","hashtag2"]},{"1330855183":["hashtag1","hashtag2"]},{"1330855177":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330855191, 1330855170, 1330855242, 1330855250, 1330855183, 1330855177)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.67803406715393 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:00:02.454484
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/19/59/image_23012025_19_59_54_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/59/image_23012025_19_59_48_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/19/59/image_23012025_19_59_43_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/19/59/image_23012025_19_59_37_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/19/59/image_23012025_19_59_30_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/19/59/image_23012025_19_59_24_6200.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/19/59/image_23012025_19_59_54_6187.jpg', '/home/nano/Desktop/images/23012025/19/59/image_23012025_19_59_48_5178.jpg', '/home/nano/Desktop/images/23012025/19/59/image_23012025_19_59_43_6188.jpg', '/home/nano/Desktop/images/23012025/19/59/image_23012025_19_59_37_6187.jpg', '/home/nano/Desktop/images/23012025/19/59/image_23012025_19_59_30_6189.jpg', '/home/nano/Desktop/images/23012025/19/59/image_23012025_19_59_24_6200.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/19/59/image_23012025_19_59_54_6187.jpg
/home/nano/Desktop/images/23012025/19/59/image_23012025_19_59_48_5178.jpg
/home/nano/Desktop/images/23012025/19/59/image_23012025_19_59_43_6188.jpg
/home/nano/Desktop/images/23012025/19/59/image_23012025_19_59_37_6187.jpg
/home/nano/Desktop/images/23012025/19/59/image_23012025_19_59_30_6189.jpg
/home/nano/Desktop/images/23012025/19/59/image_23012025_19_59_24_6200.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330855335","1330855331","1330855342","1330855336","1330855321","1330855339"],"photo_ids_order":["1330855321","1330855331","1330855335","1330855336","1330855339","1330855342"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cdfd1153c8fe8872dd5ca76c89dd7ab2.jpg","text":"TemporaryFile(/tmp/multipartBody2177860749183941747asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658862879,"filename":"image_23012025_19_59_43_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ab7f3ec3fd62598605b66cd360985eda.jpg","text":"TemporaryFile(/tmp/multipartBody8681218372637352783asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658862879,"filename":"image_23012025_19_59_48_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/15a65de77f74c4ddb1c1f49b0c7bd5c4.jpg","text":"TemporaryFile(/tmp/multipartBody6156671857623016654asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658862879,"filename":"image_23012025_19_59_24_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/27864d61cacd7d35cb8d21e07bf0bd82.jpg","text":"TemporaryFile(/tmp/multipartBody209086891261933360asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658862879,"filename":"image_23012025_19_59_37_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2f70cc707d6c33560407e64dff51602a.jpg","text":"TemporaryFile(/tmp/multipartBody816936254812376695asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658862879,"filename":"image_23012025_19_59_54_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0d2dc496d65f5414889b623ce2d45d76.jpg","text":"TemporaryFile(/tmp/multipartBody378017345621052383asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658862879,"filename":"image_23012025_19_59_30_6189.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330855335","file1":"1330855331","file0":"1330855321","file4":"1330855339","file5":"1330855342","file3":"1330855336"},"map_files_photo_id_array":[{"photo_id":"1330855342","filename":"file5"},{"photo_id":"1330855335","filename":"file2"},{"photo_id":"1330855339","filename":"file4"},{"photo_id":"1330855331","filename":"file1"},{"photo_id":"1330855321","filename":"file0"},{"photo_id":"1330855336","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330855335":["hashtag1","hashtag2"]},{"1330855331":["hashtag1","hashtag2"]},{"1330855342":["hashtag1","hashtag2"]},{"1330855336":["hashtag1","hashtag2"]},{"1330855321":["hashtag1","hashtag2"]},{"1330855339":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330855335, 1330855331, 1330855342, 1330855336, 1330855321, 1330855339)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.978588581085205 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:01:03.010435
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/00/image_23012025_20_00_54_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/20/00/image_23012025_20_00_49_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/20/00/image_23012025_20_00_43_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/20/00/image_23012025_20_00_37_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/20/00/image_23012025_20_00_30_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/20/00/image_23012025_20_00_24_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/00/image_23012025_20_00_54_5182.jpg', '/home/nano/Desktop/images/23012025/20/00/image_23012025_20_00_49_6191.jpg', '/home/nano/Desktop/images/23012025/20/00/image_23012025_20_00_43_6187.jpg', '/home/nano/Desktop/images/23012025/20/00/image_23012025_20_00_37_6192.jpg', '/home/nano/Desktop/images/23012025/20/00/image_23012025_20_00_30_6187.jpg', '/home/nano/Desktop/images/23012025/20/00/image_23012025_20_00_24_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/00/image_23012025_20_00_54_5182.jpg
/home/nano/Desktop/images/23012025/20/00/image_23012025_20_00_49_6191.jpg
/home/nano/Desktop/images/23012025/20/00/image_23012025_20_00_43_6187.jpg
/home/nano/Desktop/images/23012025/20/00/image_23012025_20_00_37_6192.jpg
/home/nano/Desktop/images/23012025/20/00/image_23012025_20_00_30_6187.jpg
/home/nano/Desktop/images/23012025/20/00/image_23012025_20_00_24_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330855397","1330855385","1330855400","1330855393","1330855395","1330855389"],"photo_ids_order":["1330855385","1330855389","1330855393","1330855395","1330855397","1330855400"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/37044181315044a01562dd1d85ceb49c.jpg","text":"TemporaryFile(/tmp/multipartBody8730131892153524147asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658923449,"filename":"image_23012025_20_00_30_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/915e40beb4fb2afe6d2994005eccc314.jpg","text":"TemporaryFile(/tmp/multipartBody7184493907909395723asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658923449,"filename":"image_23012025_20_00_54_5182.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/74e3258979c0117ecc943ede88cfbaad.jpg","text":"TemporaryFile(/tmp/multipartBody6451431334673393034asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658923449,"filename":"image_23012025_20_00_24_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9f27ac0fb5b9eabe37db953f61f02f2d.jpg","text":"TemporaryFile(/tmp/multipartBody9160858575905754912asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658923449,"filename":"image_23012025_20_00_43_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/51f73ecdc4056807c25828310e20ee06.jpg","text":"TemporaryFile(/tmp/multipartBody3275753130594672305asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658923449,"filename":"image_23012025_20_00_37_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b8ffccef2bcef3b8a896bcf94785d300.jpg","text":"TemporaryFile(/tmp/multipartBody8488182076958115633asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658923449,"filename":"image_23012025_20_00_49_6191.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330855393","file1":"1330855389","file0":"1330855385","file4":"1330855397","file5":"1330855400","file3":"1330855395"},"map_files_photo_id_array":[{"photo_id":"1330855400","filename":"file5"},{"photo_id":"1330855393","filename":"file2"},{"photo_id":"1330855397","filename":"file4"},{"photo_id":"1330855389","filename":"file1"},{"photo_id":"1330855385","filename":"file0"},{"photo_id":"1330855395","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330855397":["hashtag1","hashtag2"]},{"1330855385":["hashtag1","hashtag2"]},{"1330855400":["hashtag1","hashtag2"]},{"1330855393":["hashtag1","hashtag2"]},{"1330855395":["hashtag1","hashtag2"]},{"1330855389":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330855397, 1330855385, 1330855400, 1330855393, 1330855395, 1330855389)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.758577346801758 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:02:02.941104
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/01/image_23012025_20_01_54_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/20/01/image_23012025_20_01_49_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/20/01/image_23012025_20_01_43_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/20/01/image_23012025_20_01_36_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/01/image_23012025_20_01_30_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/01/image_23012025_20_01_24_5182.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/01/image_23012025_20_01_54_5182.jpg', '/home/nano/Desktop/images/23012025/20/01/image_23012025_20_01_49_6187.jpg', '/home/nano/Desktop/images/23012025/20/01/image_23012025_20_01_43_6189.jpg', '/home/nano/Desktop/images/23012025/20/01/image_23012025_20_01_36_6188.jpg', '/home/nano/Desktop/images/23012025/20/01/image_23012025_20_01_30_6188.jpg', '/home/nano/Desktop/images/23012025/20/01/image_23012025_20_01_24_5182.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/01/image_23012025_20_01_54_5182.jpg
/home/nano/Desktop/images/23012025/20/01/image_23012025_20_01_49_6187.jpg
/home/nano/Desktop/images/23012025/20/01/image_23012025_20_01_43_6189.jpg
/home/nano/Desktop/images/23012025/20/01/image_23012025_20_01_36_6188.jpg
/home/nano/Desktop/images/23012025/20/01/image_23012025_20_01_30_6188.jpg
/home/nano/Desktop/images/23012025/20/01/image_23012025_20_01_24_5182.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330855466","1330855433","1330855520","1330855516","1330855438","1330855426"],"photo_ids_order":["1330855426","1330855433","1330855438","1330855466","1330855516","1330855520"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/17c5f2b29519d8dabd404b90ef69b260.jpg","text":"TemporaryFile(/tmp/multipartBody8557548201219888868asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658983354,"filename":"image_23012025_20_01_36_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/14831c268075ea93c7517058584a8ebd.jpg","text":"TemporaryFile(/tmp/multipartBody6685165339258891911asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658983354,"filename":"image_23012025_20_01_49_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/09b3f70d962fbd40d088e3c606b63255.jpg","text":"TemporaryFile(/tmp/multipartBody2111895367851377718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658983354,"filename":"image_23012025_20_01_24_5182.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6f650f00fe2124f8720ed3e6ec271f2a.jpg","text":"TemporaryFile(/tmp/multipartBody944170207290992093asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658983354,"filename":"image_23012025_20_01_30_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f2833a4a63af05245a9edab553c84774.jpg","text":"TemporaryFile(/tmp/multipartBody1977310076192682729asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658983354,"filename":"image_23012025_20_01_43_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a941e42fb3d604a774a4fb026236b1a2.jpg","text":"TemporaryFile(/tmp/multipartBody6520098556838040249asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737658983354,"filename":"image_23012025_20_01_54_5182.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330855438","file1":"1330855433","file0":"1330855426","file4":"1330855516","file5":"1330855520","file3":"1330855466"},"map_files_photo_id_array":[{"photo_id":"1330855520","filename":"file5"},{"photo_id":"1330855438","filename":"file2"},{"photo_id":"1330855516","filename":"file4"},{"photo_id":"1330855433","filename":"file1"},{"photo_id":"1330855426","filename":"file0"},{"photo_id":"1330855466","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330855466":["hashtag1","hashtag2"]},{"1330855433":["hashtag1","hashtag2"]},{"1330855520":["hashtag1","hashtag2"]},{"1330855516":["hashtag1","hashtag2"]},{"1330855438":["hashtag1","hashtag2"]},{"1330855426":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330855466, 1330855433, 1330855520, 1330855516, 1330855438, 1330855426)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.03740334510803 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:03:03.293978
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/03/image_23012025_20_04_00_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/20/02/image_23012025_20_02_54_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/20/02/image_23012025_20_02_49_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/02/image_23012025_20_02_43_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/20/02/image_23012025_20_02_36_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/20/02/image_23012025_20_02_30_6189.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/03/image_23012025_20_04_00_5177.jpg', '/home/nano/Desktop/images/23012025/20/02/image_23012025_20_02_54_5181.jpg', '/home/nano/Desktop/images/23012025/20/02/image_23012025_20_02_49_6193.jpg', '/home/nano/Desktop/images/23012025/20/02/image_23012025_20_02_43_6191.jpg', '/home/nano/Desktop/images/23012025/20/02/image_23012025_20_02_36_6197.jpg', '/home/nano/Desktop/images/23012025/20/02/image_23012025_20_02_30_6189.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/03/image_23012025_20_04_00_5177.jpg
/home/nano/Desktop/images/23012025/20/02/image_23012025_20_02_54_5181.jpg
/home/nano/Desktop/images/23012025/20/02/image_23012025_20_02_49_6193.jpg
/home/nano/Desktop/images/23012025/20/02/image_23012025_20_02_43_6191.jpg
/home/nano/Desktop/images/23012025/20/02/image_23012025_20_02_36_6197.jpg
/home/nano/Desktop/images/23012025/20/02/image_23012025_20_02_30_6189.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330855554","1330855548","1330855568","1330855556","1330855547","1330855561"],"photo_ids_order":["1330855547","1330855548","1330855554","1330855556","1330855561","1330855568"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6a0014082db5c5d4d2bbf7e5d1f5fe69.jpg","text":"TemporaryFile(/tmp/multipartBody1884395719577592593asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659043781,"filename":"image_23012025_20_02_49_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e7d64409663d0abb25b6fde3efd6bec6.jpg","text":"TemporaryFile(/tmp/multipartBody2116096107952749077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659043781,"filename":"image_23012025_20_02_54_5181.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/10b206961e8530b117ca3888d74be9d1.jpg","text":"TemporaryFile(/tmp/multipartBody460904405902342851asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659043781,"filename":"image_23012025_20_02_30_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0fd24a56a4854449029ebf156c8469e8.jpg","text":"TemporaryFile(/tmp/multipartBody5536637915918921420asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659043781,"filename":"image_23012025_20_02_43_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8aa82073c9ed59f1133660b7eb297d56.jpg","text":"TemporaryFile(/tmp/multipartBody2373379502043681250asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659043781,"filename":"image_23012025_20_04_00_5177.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/520eb8b57a5f743baea0c8f503fb8af8.jpg","text":"TemporaryFile(/tmp/multipartBody4987703218939183231asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659043781,"filename":"image_23012025_20_02_36_6197.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330855554","file1":"1330855548","file0":"1330855547","file4":"1330855561","file5":"1330855568","file3":"1330855556"},"map_files_photo_id_array":[{"photo_id":"1330855568","filename":"file5"},{"photo_id":"1330855554","filename":"file2"},{"photo_id":"1330855561","filename":"file4"},{"photo_id":"1330855548","filename":"file1"},{"photo_id":"1330855547","filename":"file0"},{"photo_id":"1330855556","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330855554":["hashtag1","hashtag2"]},{"1330855548":["hashtag1","hashtag2"]},{"1330855568":["hashtag1","hashtag2"]},{"1330855556":["hashtag1","hashtag2"]},{"1330855547":["hashtag1","hashtag2"]},{"1330855561":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330855554, 1330855548, 1330855568, 1330855556, 1330855547, 1330855561)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.07423734664917 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:04:02.605105
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/03/image_23012025_20_03_49_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/20/03/image_23012025_20_03_42_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/03/image_23012025_20_03_36_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/20/03/image_23012025_20_03_30_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/20/03/image_23012025_20_03_25_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/20/03/image_23012025_20_03_19_6186.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/03/image_23012025_20_03_49_6187.jpg', '/home/nano/Desktop/images/23012025/20/03/image_23012025_20_03_42_6188.jpg', '/home/nano/Desktop/images/23012025/20/03/image_23012025_20_03_36_6187.jpg', '/home/nano/Desktop/images/23012025/20/03/image_23012025_20_03_30_5178.jpg', '/home/nano/Desktop/images/23012025/20/03/image_23012025_20_03_25_6187.jpg', '/home/nano/Desktop/images/23012025/20/03/image_23012025_20_03_19_6186.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/03/image_23012025_20_03_49_6187.jpg
/home/nano/Desktop/images/23012025/20/03/image_23012025_20_03_42_6188.jpg
/home/nano/Desktop/images/23012025/20/03/image_23012025_20_03_36_6187.jpg
/home/nano/Desktop/images/23012025/20/03/image_23012025_20_03_30_5178.jpg
/home/nano/Desktop/images/23012025/20/03/image_23012025_20_03_25_6187.jpg
/home/nano/Desktop/images/23012025/20/03/image_23012025_20_03_19_6186.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330855617","1330855595","1330855619","1330855597","1330855588","1330855621"],"photo_ids_order":["1330855588","1330855595","1330855597","1330855617","1330855619","1330855621"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b9a82bd89b16288b75bd4d21025f7f2f.jpg","text":"TemporaryFile(/tmp/multipartBody6405470452860892810asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659103091,"filename":"image_23012025_20_03_30_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a8fbdf0c995a29dfc1207ba0e89054bf.jpg","text":"TemporaryFile(/tmp/multipartBody4341343837705302951asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659103091,"filename":"image_23012025_20_03_42_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/362d61d14e53731e6bf43852109b15fe.jpg","text":"TemporaryFile(/tmp/multipartBody2179664315351270685asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659103091,"filename":"image_23012025_20_03_25_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ccba1e56a754d7b33b1cf05624b2ff68.jpg","text":"TemporaryFile(/tmp/multipartBody854897699975231614asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659103091,"filename":"image_23012025_20_03_36_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/44c466b4f18df60d069f23ae75473582.jpg","text":"TemporaryFile(/tmp/multipartBody5237478384551731363asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659103091,"filename":"image_23012025_20_03_49_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a933ac31e404f19a107e189d476a8820.jpg","text":"TemporaryFile(/tmp/multipartBody2607763929962538566asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659103091,"filename":"image_23012025_20_03_19_6186.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330855597","file1":"1330855595","file0":"1330855588","file4":"1330855619","file5":"1330855621","file3":"1330855617"},"map_files_photo_id_array":[{"photo_id":"1330855621","filename":"file5"},{"photo_id":"1330855597","filename":"file2"},{"photo_id":"1330855619","filename":"file4"},{"photo_id":"1330855595","filename":"file1"},{"photo_id":"1330855588","filename":"file0"},{"photo_id":"1330855617","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330855617":["hashtag1","hashtag2"]},{"1330855595":["hashtag1","hashtag2"]},{"1330855619":["hashtag1","hashtag2"]},{"1330855597":["hashtag1","hashtag2"]},{"1330855588":["hashtag1","hashtag2"]},{"1330855621":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330855617, 1330855595, 1330855619, 1330855597, 1330855588, 1330855621)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.92199397087097 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:05:02.644906
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/04/image_23012025_20_04_55_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/20/04/image_23012025_20_04_48_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/04/image_23012025_20_04_42_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/20/04/image_23012025_20_04_36_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/20/04/image_23012025_20_04_30_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/20/04/image_23012025_20_04_25_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/04/image_23012025_20_04_55_6194.jpg', '/home/nano/Desktop/images/23012025/20/04/image_23012025_20_04_48_6188.jpg', '/home/nano/Desktop/images/23012025/20/04/image_23012025_20_04_42_6190.jpg', '/home/nano/Desktop/images/23012025/20/04/image_23012025_20_04_36_6200.jpg', '/home/nano/Desktop/images/23012025/20/04/image_23012025_20_04_30_5179.jpg', '/home/nano/Desktop/images/23012025/20/04/image_23012025_20_04_25_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/04/image_23012025_20_04_55_6194.jpg
/home/nano/Desktop/images/23012025/20/04/image_23012025_20_04_48_6188.jpg
/home/nano/Desktop/images/23012025/20/04/image_23012025_20_04_42_6190.jpg
/home/nano/Desktop/images/23012025/20/04/image_23012025_20_04_36_6200.jpg
/home/nano/Desktop/images/23012025/20/04/image_23012025_20_04_30_5179.jpg
/home/nano/Desktop/images/23012025/20/04/image_23012025_20_04_25_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330855695","1330855716","1330855691","1330855718","1330855712","1330855678"],"photo_ids_order":["1330855678","1330855691","1330855695","1330855712","1330855716","1330855718"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/55eebf0135836765cc51d9eb06d1e1be.jpg","text":"TemporaryFile(/tmp/multipartBody5586989399758537427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659163202,"filename":"image_23012025_20_04_42_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4d2711b3acd1eee21fe7736205c3d7d8.jpg","text":"TemporaryFile(/tmp/multipartBody2277719164149790471asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659163202,"filename":"image_23012025_20_04_30_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c63a4907ad3f3f44ec1bae3cb2325868.jpg","text":"TemporaryFile(/tmp/multipartBody4019355338980070846asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659163202,"filename":"image_23012025_20_04_48_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d13305b16a641e7d8482f5f7f7b87719.jpg","text":"TemporaryFile(/tmp/multipartBody6110102577593048061asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659163202,"filename":"image_23012025_20_04_25_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b8fd194a1b494d010fe9ed92c9eeca47.jpg","text":"TemporaryFile(/tmp/multipartBody8152146043856119916asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659163202,"filename":"image_23012025_20_04_36_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a3451f2adae5f10a93102c66602f72a4.jpg","text":"TemporaryFile(/tmp/multipartBody4219766992572884175asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659163202,"filename":"image_23012025_20_04_55_6194.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330855695","file1":"1330855691","file0":"1330855678","file4":"1330855716","file5":"1330855718","file3":"1330855712"},"map_files_photo_id_array":[{"photo_id":"1330855718","filename":"file5"},{"photo_id":"1330855695","filename":"file2"},{"photo_id":"1330855716","filename":"file4"},{"photo_id":"1330855691","filename":"file1"},{"photo_id":"1330855678","filename":"file0"},{"photo_id":"1330855712","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330855695":["hashtag1","hashtag2"]},{"1330855716":["hashtag1","hashtag2"]},{"1330855691":["hashtag1","hashtag2"]},{"1330855718":["hashtag1","hashtag2"]},{"1330855712":["hashtag1","hashtag2"]},{"1330855678":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330855695, 1330855716, 1330855691, 1330855718, 1330855712, 1330855678)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.362064123153687 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:06:02.447471
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/05/image_23012025_20_05_55_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/05/image_23012025_20_05_49_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/20/05/image_23012025_20_05_42_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/20/05/image_23012025_20_05_36_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/20/05/image_23012025_20_05_30_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/20/05/image_23012025_20_05_24_5189.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/05/image_23012025_20_05_55_6193.jpg', '/home/nano/Desktop/images/23012025/20/05/image_23012025_20_05_49_6192.jpg', '/home/nano/Desktop/images/23012025/20/05/image_23012025_20_05_42_6192.jpg', '/home/nano/Desktop/images/23012025/20/05/image_23012025_20_05_36_6192.jpg', '/home/nano/Desktop/images/23012025/20/05/image_23012025_20_05_30_6200.jpg', '/home/nano/Desktop/images/23012025/20/05/image_23012025_20_05_24_5189.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/05/image_23012025_20_05_55_6193.jpg
/home/nano/Desktop/images/23012025/20/05/image_23012025_20_05_49_6192.jpg
/home/nano/Desktop/images/23012025/20/05/image_23012025_20_05_42_6192.jpg
/home/nano/Desktop/images/23012025/20/05/image_23012025_20_05_36_6192.jpg
/home/nano/Desktop/images/23012025/20/05/image_23012025_20_05_30_6200.jpg
/home/nano/Desktop/images/23012025/20/05/image_23012025_20_05_24_5189.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330855903","1330855893","1330855906","1330855896","1330855900","1330855890"],"photo_ids_order":["1330855890","1330855893","1330855896","1330855900","1330855903","1330855906"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9bc262b0f2618860639eacd98b0ba206.jpg","text":"TemporaryFile(/tmp/multipartBody802416268978931910asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659223094,"filename":"image_23012025_20_05_30_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/415f5fa203cca61919d12c1968de8441.jpg","text":"TemporaryFile(/tmp/multipartBody4914300898362756093asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659223094,"filename":"image_23012025_20_05_49_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/905803b87a321b3e9f0cf122d51e038d.jpg","text":"TemporaryFile(/tmp/multipartBody1738663651823025602asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659223094,"filename":"image_23012025_20_05_24_5189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/dce435428c172a8c0256cfa0819d350f.jpg","text":"TemporaryFile(/tmp/multipartBody6517899984348374786asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659223094,"filename":"image_23012025_20_05_42_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/24145e500c166524cd9ca11d392836f1.jpg","text":"TemporaryFile(/tmp/multipartBody7887966731553815651asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659223094,"filename":"image_23012025_20_05_36_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6bd6601540f7158adc6bc8fb9a303d67.jpg","text":"TemporaryFile(/tmp/multipartBody8636859749402579528asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659223094,"filename":"image_23012025_20_05_55_6193.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330855896","file1":"1330855893","file0":"1330855890","file4":"1330855903","file5":"1330855906","file3":"1330855900"},"map_files_photo_id_array":[{"photo_id":"1330855906","filename":"file5"},{"photo_id":"1330855896","filename":"file2"},{"photo_id":"1330855903","filename":"file4"},{"photo_id":"1330855893","filename":"file1"},{"photo_id":"1330855890","filename":"file0"},{"photo_id":"1330855900","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330855903":["hashtag1","hashtag2"]},{"1330855893":["hashtag1","hashtag2"]},{"1330855906":["hashtag1","hashtag2"]},{"1330855896":["hashtag1","hashtag2"]},{"1330855900":["hashtag1","hashtag2"]},{"1330855890":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330855903, 1330855893, 1330855906, 1330855896, 1330855900, 1330855890)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.0039758682251 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:07:02.793808
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/06/image_23012025_20_06_55_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/06/image_23012025_20_06_49_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/20/06/image_23012025_20_06_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/20/06/image_23012025_20_06_36_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/20/06/image_23012025_20_06_30_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/20/06/image_23012025_20_06_25_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/06/image_23012025_20_06_55_6193.jpg', '/home/nano/Desktop/images/23012025/20/06/image_23012025_20_06_49_6195.jpg', '/home/nano/Desktop/images/23012025/20/06/image_23012025_20_06_42_6196.jpg', '/home/nano/Desktop/images/23012025/20/06/image_23012025_20_06_36_6194.jpg', '/home/nano/Desktop/images/23012025/20/06/image_23012025_20_06_30_5183.jpg', '/home/nano/Desktop/images/23012025/20/06/image_23012025_20_06_25_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/06/image_23012025_20_06_55_6193.jpg
/home/nano/Desktop/images/23012025/20/06/image_23012025_20_06_49_6195.jpg
/home/nano/Desktop/images/23012025/20/06/image_23012025_20_06_42_6196.jpg
/home/nano/Desktop/images/23012025/20/06/image_23012025_20_06_36_6194.jpg
/home/nano/Desktop/images/23012025/20/06/image_23012025_20_06_30_5183.jpg
/home/nano/Desktop/images/23012025/20/06/image_23012025_20_06_25_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330855959","1330855962","1330855982","1330855970","1330855973","1330855966"],"photo_ids_order":["1330855959","1330855962","1330855966","1330855970","1330855973","1330855982"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f7eb1a7e7ffac6742d410ddd35a5b9f2.jpg","text":"TemporaryFile(/tmp/multipartBody2104213095313125332asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659283365,"filename":"image_23012025_20_06_55_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c6a828247730731b9c2310aac3cada1d.jpg","text":"TemporaryFile(/tmp/multipartBody5788253817785249132asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659283365,"filename":"image_23012025_20_06_49_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/06db4d8d5f44d3f41280e7d5f3cafd13.jpg","text":"TemporaryFile(/tmp/multipartBody5133670624399203214asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659283365,"filename":"image_23012025_20_06_25_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5a3bb7d7d4d18efd3794899db76852b2.jpg","text":"TemporaryFile(/tmp/multipartBody7247495118791424587asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659283365,"filename":"image_23012025_20_06_36_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7d8204797b2563951dfe00166292455c.jpg","text":"TemporaryFile(/tmp/multipartBody497240542096781767asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659283365,"filename":"image_23012025_20_06_30_5183.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3ad279229d4847396fd606d91568fce5.jpg","text":"TemporaryFile(/tmp/multipartBody9124715335052982927asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659283365,"filename":"image_23012025_20_06_42_6196.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330855966","file1":"1330855962","file0":"1330855959","file4":"1330855973","file5":"1330855982","file3":"1330855970"},"map_files_photo_id_array":[{"photo_id":"1330855982","filename":"file5"},{"photo_id":"1330855966","filename":"file2"},{"photo_id":"1330855973","filename":"file4"},{"photo_id":"1330855962","filename":"file1"},{"photo_id":"1330855959","filename":"file0"},{"photo_id":"1330855970","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330855959":["hashtag1","hashtag2"]},{"1330855962":["hashtag1","hashtag2"]},{"1330855982":["hashtag1","hashtag2"]},{"1330855970":["hashtag1","hashtag2"]},{"1330855973":["hashtag1","hashtag2"]},{"1330855966":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330855959, 1330855962, 1330855982, 1330855970, 1330855973, 1330855966)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.061577558517456 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:08:02.590958
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/07/image_23012025_20_07_55_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/20/07/image_23012025_20_07_49_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/20/07/image_23012025_20_07_42_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/20/07/image_23012025_20_07_36_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/07/image_23012025_20_07_30_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/20/07/image_23012025_20_07_25_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/07/image_23012025_20_07_55_6197.jpg', '/home/nano/Desktop/images/23012025/20/07/image_23012025_20_07_49_6190.jpg', '/home/nano/Desktop/images/23012025/20/07/image_23012025_20_07_42_6192.jpg', '/home/nano/Desktop/images/23012025/20/07/image_23012025_20_07_36_6193.jpg', '/home/nano/Desktop/images/23012025/20/07/image_23012025_20_07_30_5182.jpg', '/home/nano/Desktop/images/23012025/20/07/image_23012025_20_07_25_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/07/image_23012025_20_07_55_6197.jpg
/home/nano/Desktop/images/23012025/20/07/image_23012025_20_07_49_6190.jpg
/home/nano/Desktop/images/23012025/20/07/image_23012025_20_07_42_6192.jpg
/home/nano/Desktop/images/23012025/20/07/image_23012025_20_07_36_6193.jpg
/home/nano/Desktop/images/23012025/20/07/image_23012025_20_07_30_5182.jpg
/home/nano/Desktop/images/23012025/20/07/image_23012025_20_07_25_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330856864","1330856858","1330856711","1330856408","1330856860","1330856584"],"photo_ids_order":["1330856408","1330856584","1330856711","1330856858","1330856860","1330856864"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/332e9c037ff91afd5fd26d2d08f805b7.jpg","text":"TemporaryFile(/tmp/multipartBody5359456342528162041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659343081,"filename":"image_23012025_20_07_25_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8c8657fba40ebbaed0d7bd023f653a5d.jpg","text":"TemporaryFile(/tmp/multipartBody350006731379772483asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659343081,"filename":"image_23012025_20_07_36_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cc38de2d0097c213f69ab0f8044e3d4d.jpg","text":"TemporaryFile(/tmp/multipartBody4463010491730726011asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659343081,"filename":"image_23012025_20_07_42_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4ae045eb2ec35c3a1d8392ae62ac3bec.jpg","text":"TemporaryFile(/tmp/multipartBody2015029929621693741asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659343081,"filename":"image_23012025_20_07_55_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1b779b6a4802cb5c1bf8d7062447ed79.jpg","text":"TemporaryFile(/tmp/multipartBody3653039128152482900asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659343081,"filename":"image_23012025_20_07_30_5182.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a94c2174f763bc8d1702ac724b37ffc5.jpg","text":"TemporaryFile(/tmp/multipartBody8149636781697071794asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659343081,"filename":"image_23012025_20_07_49_6190.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330856711","file1":"1330856584","file0":"1330856408","file4":"1330856860","file5":"1330856864","file3":"1330856858"},"map_files_photo_id_array":[{"photo_id":"1330856864","filename":"file5"},{"photo_id":"1330856711","filename":"file2"},{"photo_id":"1330856860","filename":"file4"},{"photo_id":"1330856584","filename":"file1"},{"photo_id":"1330856408","filename":"file0"},{"photo_id":"1330856858","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330856864":["hashtag1","hashtag2"]},{"1330856858":["hashtag1","hashtag2"]},{"1330856711":["hashtag1","hashtag2"]},{"1330856408":["hashtag1","hashtag2"]},{"1330856860":["hashtag1","hashtag2"]},{"1330856584":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330856864, 1330856858, 1330856711, 1330856408, 1330856860, 1330856584)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.52424931526184 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:09:03.315455
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/08/image_23012025_20_08_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/08/image_23012025_20_08_48_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/20/08/image_23012025_20_08_42_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/20/08/image_23012025_20_08_36_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/08/image_23012025_20_08_30_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/20/08/image_23012025_20_08_25_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/08/image_23012025_20_08_55_6188.jpg', '/home/nano/Desktop/images/23012025/20/08/image_23012025_20_08_48_6187.jpg', '/home/nano/Desktop/images/23012025/20/08/image_23012025_20_08_42_6187.jpg', '/home/nano/Desktop/images/23012025/20/08/image_23012025_20_08_36_6193.jpg', '/home/nano/Desktop/images/23012025/20/08/image_23012025_20_08_30_5187.jpg', '/home/nano/Desktop/images/23012025/20/08/image_23012025_20_08_25_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/08/image_23012025_20_08_55_6188.jpg
/home/nano/Desktop/images/23012025/20/08/image_23012025_20_08_48_6187.jpg
/home/nano/Desktop/images/23012025/20/08/image_23012025_20_08_42_6187.jpg
/home/nano/Desktop/images/23012025/20/08/image_23012025_20_08_36_6193.jpg
/home/nano/Desktop/images/23012025/20/08/image_23012025_20_08_30_5187.jpg
/home/nano/Desktop/images/23012025/20/08/image_23012025_20_08_25_6197.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330856913","1330856910","1330856904","1330856897","1330856899","1330856917"],"photo_ids_order":["1330856897","1330856899","1330856904","1330856910","1330856913","1330856917"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f42e312cf47ace1ca0156cb83c71f74e.jpg","text":"TemporaryFile(/tmp/multipartBody6324600426022501579asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659403769,"filename":"image_23012025_20_08_30_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/409df3cba4a69914aa22d026b0bbf35b.jpg","text":"TemporaryFile(/tmp/multipartBody4592992937935560804asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659403769,"filename":"image_23012025_20_08_36_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d721198873322b9477fdd1b04015ecdb.jpg","text":"TemporaryFile(/tmp/multipartBody1277277940699477019asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659403769,"filename":"image_23012025_20_08_42_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9f6efeb2b627adfafca5189b3049c2b7.jpg","text":"TemporaryFile(/tmp/multipartBody1888495281255475341asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659403769,"filename":"image_23012025_20_08_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e706a74b30eb51bc1778ed7ffc8ba737.jpg","text":"TemporaryFile(/tmp/multipartBody2014992676798776095asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659403769,"filename":"image_23012025_20_08_48_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/97f3969397a085478f68a7dba46a6bf8.jpg","text":"TemporaryFile(/tmp/multipartBody4061051499452114194asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659403769,"filename":"image_23012025_20_08_25_6197.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330856904","file1":"1330856899","file0":"1330856897","file4":"1330856913","file5":"1330856917","file3":"1330856910"},"map_files_photo_id_array":[{"photo_id":"1330856917","filename":"file5"},{"photo_id":"1330856904","filename":"file2"},{"photo_id":"1330856913","filename":"file4"},{"photo_id":"1330856899","filename":"file1"},{"photo_id":"1330856897","filename":"file0"},{"photo_id":"1330856910","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330856913":["hashtag1","hashtag2"]},{"1330856910":["hashtag1","hashtag2"]},{"1330856904":["hashtag1","hashtag2"]},{"1330856897":["hashtag1","hashtag2"]},{"1330856899":["hashtag1","hashtag2"]},{"1330856917":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330856913, 1330856910, 1330856904, 1330856897, 1330856899, 1330856917)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.09620475769043 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:10:02.834984
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/09/image_23012025_20_09_55_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/20/09/image_23012025_20_09_48_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/20/09/image_23012025_20_09_42_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/20/09/image_23012025_20_09_36_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/20/09/image_23012025_20_09_31_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/20/09/image_23012025_20_09_25_6198.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/09/image_23012025_20_09_55_6204.jpg', '/home/nano/Desktop/images/23012025/20/09/image_23012025_20_09_48_6198.jpg', '/home/nano/Desktop/images/23012025/20/09/image_23012025_20_09_42_6197.jpg', '/home/nano/Desktop/images/23012025/20/09/image_23012025_20_09_36_5187.jpg', '/home/nano/Desktop/images/23012025/20/09/image_23012025_20_09_31_6197.jpg', '/home/nano/Desktop/images/23012025/20/09/image_23012025_20_09_25_6198.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/09/image_23012025_20_09_55_6204.jpg
/home/nano/Desktop/images/23012025/20/09/image_23012025_20_09_48_6198.jpg
/home/nano/Desktop/images/23012025/20/09/image_23012025_20_09_42_6197.jpg
/home/nano/Desktop/images/23012025/20/09/image_23012025_20_09_36_5187.jpg
/home/nano/Desktop/images/23012025/20/09/image_23012025_20_09_31_6197.jpg
/home/nano/Desktop/images/23012025/20/09/image_23012025_20_09_25_6198.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330857245","1330857262","1330857256","1330857253","1330857249","1330857258"],"photo_ids_order":["1330857245","1330857249","1330857253","1330857256","1330857258","1330857262"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/94b9d679d491a4a8213b9fc0da3d61c3.jpg","text":"TemporaryFile(/tmp/multipartBody2453738031403474826asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659463429,"filename":"image_23012025_20_09_55_6204.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2b3d5f7ae6fe95297bb8d6f9dda7ac16.jpg","text":"TemporaryFile(/tmp/multipartBody1413368318876869917asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659463429,"filename":"image_23012025_20_09_25_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/81aec73cd6254b75fc15df14d621322d.jpg","text":"TemporaryFile(/tmp/multipartBody1905496256769142742asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659463429,"filename":"image_23012025_20_09_36_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fcbea9611f8911b1f5ac809e7a96aabb.jpg","text":"TemporaryFile(/tmp/multipartBody2886539846192895753asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659463429,"filename":"image_23012025_20_09_42_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/242fa8bfda8ad9223f7010ee31341757.jpg","text":"TemporaryFile(/tmp/multipartBody7891210037555060756asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659463429,"filename":"image_23012025_20_09_48_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/221c52721d4e137c17b237e654e74680.jpg","text":"TemporaryFile(/tmp/multipartBody8296662110228513655asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659463429,"filename":"image_23012025_20_09_31_6197.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330857253","file1":"1330857249","file0":"1330857245","file4":"1330857258","file5":"1330857262","file3":"1330857256"},"map_files_photo_id_array":[{"photo_id":"1330857262","filename":"file5"},{"photo_id":"1330857253","filename":"file2"},{"photo_id":"1330857258","filename":"file4"},{"photo_id":"1330857249","filename":"file1"},{"photo_id":"1330857245","filename":"file0"},{"photo_id":"1330857256","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330857245":["hashtag1","hashtag2"]},{"1330857262":["hashtag1","hashtag2"]},{"1330857256":["hashtag1","hashtag2"]},{"1330857253":["hashtag1","hashtag2"]},{"1330857249":["hashtag1","hashtag2"]},{"1330857258":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330857245, 1330857262, 1330857256, 1330857253, 1330857249, 1330857258)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.78095102310181 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:11:03.293028
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/10/image_23012025_20_10_55_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/20/10/image_23012025_20_10_48_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/20/10/image_23012025_20_10_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/20/10/image_23012025_20_10_36_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/20/10/image_23012025_20_10_31_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/20/10/image_23012025_20_10_25_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/10/image_23012025_20_10_55_6196.jpg', '/home/nano/Desktop/images/23012025/20/10/image_23012025_20_10_48_6195.jpg', '/home/nano/Desktop/images/23012025/20/10/image_23012025_20_10_42_6196.jpg', '/home/nano/Desktop/images/23012025/20/10/image_23012025_20_10_36_5187.jpg', '/home/nano/Desktop/images/23012025/20/10/image_23012025_20_10_31_6195.jpg', '/home/nano/Desktop/images/23012025/20/10/image_23012025_20_10_25_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/10/image_23012025_20_10_55_6196.jpg
/home/nano/Desktop/images/23012025/20/10/image_23012025_20_10_48_6195.jpg
/home/nano/Desktop/images/23012025/20/10/image_23012025_20_10_42_6196.jpg
/home/nano/Desktop/images/23012025/20/10/image_23012025_20_10_36_5187.jpg
/home/nano/Desktop/images/23012025/20/10/image_23012025_20_10_31_6195.jpg
/home/nano/Desktop/images/23012025/20/10/image_23012025_20_10_25_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330857290","1330857293","1330857287","1330857283","1330857331","1330857319"],"photo_ids_order":["1330857283","1330857287","1330857290","1330857293","1330857319","1330857331"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1387bfc2fe5c52dfb211946ae942ef23.jpg","text":"TemporaryFile(/tmp/multipartBody4742034595125926916asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659523925,"filename":"image_23012025_20_10_42_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f18e4faa1d5f6940be1f2681978de02f.jpg","text":"TemporaryFile(/tmp/multipartBody3628921258708769944asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659523925,"filename":"image_23012025_20_10_36_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a6f7526810ebf8fe3ce614d20e6f2b58.jpg","text":"TemporaryFile(/tmp/multipartBody2679650916009863880asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659523925,"filename":"image_23012025_20_10_48_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/89d2086959eeb2cc5f7cfcdc2a16317d.jpg","text":"TemporaryFile(/tmp/multipartBody3697952412573667703asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659523925,"filename":"image_23012025_20_10_55_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bce65541b24aadc85078308d3ad6a1e3.jpg","text":"TemporaryFile(/tmp/multipartBody4961674601090542905asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659523925,"filename":"image_23012025_20_10_25_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d6b3362e8ef99e04d5e59ce421861df7.jpg","text":"TemporaryFile(/tmp/multipartBody2662512041057625436asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659523925,"filename":"image_23012025_20_10_31_6195.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330857290","file1":"1330857287","file0":"1330857283","file4":"1330857319","file5":"1330857331","file3":"1330857293"},"map_files_photo_id_array":[{"photo_id":"1330857331","filename":"file5"},{"photo_id":"1330857290","filename":"file2"},{"photo_id":"1330857319","filename":"file4"},{"photo_id":"1330857287","filename":"file1"},{"photo_id":"1330857283","filename":"file0"},{"photo_id":"1330857293","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330857290":["hashtag1","hashtag2"]},{"1330857293":["hashtag1","hashtag2"]},{"1330857287":["hashtag1","hashtag2"]},{"1330857283":["hashtag1","hashtag2"]},{"1330857331":["hashtag1","hashtag2"]},{"1330857319":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330857290, 1330857293, 1330857287, 1330857283, 1330857331, 1330857319)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.694204330444336 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:12:03.215172
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/11/image_23012025_20_11_55_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/20/11/image_23012025_20_11_48_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/20/11/image_23012025_20_11_42_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/20/11/image_23012025_20_11_36_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/20/11/image_23012025_20_11_31_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/20/11/image_23012025_20_11_25_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/11/image_23012025_20_11_55_6195.jpg', '/home/nano/Desktop/images/23012025/20/11/image_23012025_20_11_48_6196.jpg', '/home/nano/Desktop/images/23012025/20/11/image_23012025_20_11_42_6204.jpg', '/home/nano/Desktop/images/23012025/20/11/image_23012025_20_11_36_5186.jpg', '/home/nano/Desktop/images/23012025/20/11/image_23012025_20_11_31_6197.jpg', '/home/nano/Desktop/images/23012025/20/11/image_23012025_20_11_25_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/11/image_23012025_20_11_55_6195.jpg
/home/nano/Desktop/images/23012025/20/11/image_23012025_20_11_48_6196.jpg
/home/nano/Desktop/images/23012025/20/11/image_23012025_20_11_42_6204.jpg
/home/nano/Desktop/images/23012025/20/11/image_23012025_20_11_36_5186.jpg
/home/nano/Desktop/images/23012025/20/11/image_23012025_20_11_31_6197.jpg
/home/nano/Desktop/images/23012025/20/11/image_23012025_20_11_25_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330857374","1330857407","1330857401","1330857410","1330857404","1330857390"],"photo_ids_order":["1330857374","1330857390","1330857401","1330857404","1330857407","1330857410"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/dd6f8171d84c35d088cb6d75cf5ac6ce.jpg","text":"TemporaryFile(/tmp/multipartBody8860368844070320391asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659583829,"filename":"image_23012025_20_11_55_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d4e13ca4fb00b45453b353f3bb17d0ff.jpg","text":"TemporaryFile(/tmp/multipartBody1288725187649501345asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659583829,"filename":"image_23012025_20_11_31_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e98585dda28abb75526e4282903d2ec3.jpg","text":"TemporaryFile(/tmp/multipartBody3744642302738571314asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659583829,"filename":"image_23012025_20_11_42_6204.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e9433063ce256a5aae46d3caf7a08b01.jpg","text":"TemporaryFile(/tmp/multipartBody8897582946303951604asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659583829,"filename":"image_23012025_20_11_25_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2a5fe53ed264a3497de8b259cc5be0a2.jpg","text":"TemporaryFile(/tmp/multipartBody4804079508261238864asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659583829,"filename":"image_23012025_20_11_36_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8dacef17f1200e95c1f43635da5e80f1.jpg","text":"TemporaryFile(/tmp/multipartBody852492847374921145asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659583829,"filename":"image_23012025_20_11_48_6196.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330857401","file1":"1330857390","file0":"1330857374","file4":"1330857407","file5":"1330857410","file3":"1330857404"},"map_files_photo_id_array":[{"photo_id":"1330857410","filename":"file5"},{"photo_id":"1330857401","filename":"file2"},{"photo_id":"1330857407","filename":"file4"},{"photo_id":"1330857390","filename":"file1"},{"photo_id":"1330857374","filename":"file0"},{"photo_id":"1330857404","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330857374":["hashtag1","hashtag2"]},{"1330857407":["hashtag1","hashtag2"]},{"1330857401":["hashtag1","hashtag2"]},{"1330857410":["hashtag1","hashtag2"]},{"1330857404":["hashtag1","hashtag2"]},{"1330857390":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330857374, 1330857407, 1330857401, 1330857410, 1330857404, 1330857390)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.986504554748535 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:13:02.639186
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/13/image_23012025_20_14_01_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/20/12/image_23012025_20_12_48_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/20/12/image_23012025_20_12_42_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/20/12/image_23012025_20_12_36_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/20/12/image_23012025_20_12_31_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/20/12/image_23012025_20_12_25_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/13/image_23012025_20_14_01_6198.jpg', '/home/nano/Desktop/images/23012025/20/12/image_23012025_20_12_48_6196.jpg', '/home/nano/Desktop/images/23012025/20/12/image_23012025_20_12_42_6200.jpg', '/home/nano/Desktop/images/23012025/20/12/image_23012025_20_12_36_5186.jpg', '/home/nano/Desktop/images/23012025/20/12/image_23012025_20_12_31_6196.jpg', '/home/nano/Desktop/images/23012025/20/12/image_23012025_20_12_25_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/13/image_23012025_20_14_01_6198.jpg
/home/nano/Desktop/images/23012025/20/12/image_23012025_20_12_48_6196.jpg
/home/nano/Desktop/images/23012025/20/12/image_23012025_20_12_42_6200.jpg
/home/nano/Desktop/images/23012025/20/12/image_23012025_20_12_36_5186.jpg
/home/nano/Desktop/images/23012025/20/12/image_23012025_20_12_31_6196.jpg
/home/nano/Desktop/images/23012025/20/12/image_23012025_20_12_25_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330857446","1330857440","1330857465","1330857468","1330857462","1330857456"],"photo_ids_order":["1330857440","1330857446","1330857456","1330857462","1330857465","1330857468"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b1a61456c5bf84f3c213830c9b13bb30.jpg","text":"TemporaryFile(/tmp/multipartBody3813110838363399571asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659643218,"filename":"image_23012025_20_12_48_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d56834417ef9dfa3fb704cb4e522fba1.jpg","text":"TemporaryFile(/tmp/multipartBody1404608237256654795asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659643218,"filename":"image_23012025_20_14_01_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4d8078f54e55e7fef73222c2312af5f2.jpg","text":"TemporaryFile(/tmp/multipartBody5362600553285060135asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659643218,"filename":"image_23012025_20_12_31_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9e6b6e7575c74d1980f2dc73f2ab7647.jpg","text":"TemporaryFile(/tmp/multipartBody7221645883306807811asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659643218,"filename":"image_23012025_20_12_25_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c19608d8b39a152296cf4cc881bffa3d.jpg","text":"TemporaryFile(/tmp/multipartBody1770013914292423910asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659643218,"filename":"image_23012025_20_12_36_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6d1036be6566d9a3e1ad356d2d8cb67b.jpg","text":"TemporaryFile(/tmp/multipartBody2712744758145037056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659643218,"filename":"image_23012025_20_12_42_6200.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330857456","file1":"1330857446","file0":"1330857440","file4":"1330857465","file5":"1330857468","file3":"1330857462"},"map_files_photo_id_array":[{"photo_id":"1330857468","filename":"file5"},{"photo_id":"1330857456","filename":"file2"},{"photo_id":"1330857465","filename":"file4"},{"photo_id":"1330857446","filename":"file1"},{"photo_id":"1330857440","filename":"file0"},{"photo_id":"1330857462","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330857446":["hashtag1","hashtag2"]},{"1330857440":["hashtag1","hashtag2"]},{"1330857465":["hashtag1","hashtag2"]},{"1330857468":["hashtag1","hashtag2"]},{"1330857462":["hashtag1","hashtag2"]},{"1330857456":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330857446, 1330857440, 1330857465, 1330857468, 1330857462, 1330857456)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.90008854866028 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:14:02.713005
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/13/image_23012025_20_13_48_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/20/13/image_23012025_20_13_42_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/20/13/image_23012025_20_13_36_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/20/13/image_23012025_20_13_31_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/20/13/image_23012025_20_13_25_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/20/13/image_23012025_20_13_18_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/13/image_23012025_20_13_48_6195.jpg', '/home/nano/Desktop/images/23012025/20/13/image_23012025_20_13_42_6197.jpg', '/home/nano/Desktop/images/23012025/20/13/image_23012025_20_13_36_5186.jpg', '/home/nano/Desktop/images/23012025/20/13/image_23012025_20_13_31_6197.jpg', '/home/nano/Desktop/images/23012025/20/13/image_23012025_20_13_25_6197.jpg', '/home/nano/Desktop/images/23012025/20/13/image_23012025_20_13_18_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/13/image_23012025_20_13_48_6195.jpg
/home/nano/Desktop/images/23012025/20/13/image_23012025_20_13_42_6197.jpg
/home/nano/Desktop/images/23012025/20/13/image_23012025_20_13_36_5186.jpg
/home/nano/Desktop/images/23012025/20/13/image_23012025_20_13_31_6197.jpg
/home/nano/Desktop/images/23012025/20/13/image_23012025_20_13_25_6197.jpg
/home/nano/Desktop/images/23012025/20/13/image_23012025_20_13_18_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330857509","1330857493","1330857498","1330857513","1330857522","1330857504"],"photo_ids_order":["1330857493","1330857498","1330857504","1330857509","1330857513","1330857522"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/adcb309412c143b349924f157eea081c.jpg","text":"TemporaryFile(/tmp/multipartBody3818857231047209046asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659703272,"filename":"image_23012025_20_13_31_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/54a1237cf074e6340c4773b2e3d3cd7d.jpg","text":"TemporaryFile(/tmp/multipartBody9210225736277123479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659703272,"filename":"image_23012025_20_13_48_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/585ffa8d331f9d198be6aadfd959b61c.jpg","text":"TemporaryFile(/tmp/multipartBody2896189160951156396asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659703272,"filename":"image_23012025_20_13_42_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/51340412e3f151f89325734eba6ac274.jpg","text":"TemporaryFile(/tmp/multipartBody3600397152714536932asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659703272,"filename":"image_23012025_20_13_25_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1b1204ac4e1c476fab422952bc9f81f2.jpg","text":"TemporaryFile(/tmp/multipartBody1430514002655990601asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659703272,"filename":"image_23012025_20_13_18_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/77ec34df69a048ce6723fe98907e6a56.jpg","text":"TemporaryFile(/tmp/multipartBody2277108263748710911asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659703272,"filename":"image_23012025_20_13_36_5186.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330857504","file1":"1330857498","file0":"1330857493","file4":"1330857513","file5":"1330857522","file3":"1330857509"},"map_files_photo_id_array":[{"photo_id":"1330857522","filename":"file5"},{"photo_id":"1330857504","filename":"file2"},{"photo_id":"1330857513","filename":"file4"},{"photo_id":"1330857498","filename":"file1"},{"photo_id":"1330857493","filename":"file0"},{"photo_id":"1330857509","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330857509":["hashtag1","hashtag2"]},{"1330857493":["hashtag1","hashtag2"]},{"1330857498":["hashtag1","hashtag2"]},{"1330857513":["hashtag1","hashtag2"]},{"1330857522":["hashtag1","hashtag2"]},{"1330857504":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330857509, 1330857493, 1330857498, 1330857513, 1330857522, 1330857504)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.107081174850464 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:15:02.619589
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/14/image_23012025_20_14_55_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/20/14/image_23012025_20_14_48_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/14/image_23012025_20_14_42_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/20/14/image_23012025_20_14_36_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/20/14/image_23012025_20_14_30_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/20/14/image_23012025_20_14_25_6186.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/14/image_23012025_20_14_55_6186.jpg', '/home/nano/Desktop/images/23012025/20/14/image_23012025_20_14_48_6188.jpg', '/home/nano/Desktop/images/23012025/20/14/image_23012025_20_14_42_6189.jpg', '/home/nano/Desktop/images/23012025/20/14/image_23012025_20_14_36_6192.jpg', '/home/nano/Desktop/images/23012025/20/14/image_23012025_20_14_30_5178.jpg', '/home/nano/Desktop/images/23012025/20/14/image_23012025_20_14_25_6186.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/14/image_23012025_20_14_55_6186.jpg
/home/nano/Desktop/images/23012025/20/14/image_23012025_20_14_48_6188.jpg
/home/nano/Desktop/images/23012025/20/14/image_23012025_20_14_42_6189.jpg
/home/nano/Desktop/images/23012025/20/14/image_23012025_20_14_36_6192.jpg
/home/nano/Desktop/images/23012025/20/14/image_23012025_20_14_30_5178.jpg
/home/nano/Desktop/images/23012025/20/14/image_23012025_20_14_25_6186.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330857581","1330857575","1330857569","1330857580","1330857576","1330857573"],"photo_ids_order":["1330857569","1330857573","1330857575","1330857576","1330857580","1330857581"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/eff7e47632dd7900ee291558fa1bada8.jpg","text":"TemporaryFile(/tmp/multipartBody5535151570525546808asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659763009,"filename":"image_23012025_20_14_25_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/99578b1b5deaf163ae7b06f8045344bb.jpg","text":"TemporaryFile(/tmp/multipartBody4252131136019093039asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659763009,"filename":"image_23012025_20_14_42_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9e4ff000bff9c62c7af4b4db8aa75b5a.jpg","text":"TemporaryFile(/tmp/multipartBody5746380012352880077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659763009,"filename":"image_23012025_20_14_55_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/da7d4adadb25a01eed49aca62a6883ad.jpg","text":"TemporaryFile(/tmp/multipartBody8383770968855232560asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659763009,"filename":"image_23012025_20_14_30_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e5129702818383df8c63625e4ca711cb.jpg","text":"TemporaryFile(/tmp/multipartBody9171391375558087194asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659763009,"filename":"image_23012025_20_14_36_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/696fe8dbcebdeaf70ed87177fddefa0d.jpg","text":"TemporaryFile(/tmp/multipartBody3527623129518554897asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659763009,"filename":"image_23012025_20_14_48_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330857575","file1":"1330857573","file0":"1330857569","file4":"1330857580","file5":"1330857581","file3":"1330857576"},"map_files_photo_id_array":[{"photo_id":"1330857581","filename":"file5"},{"photo_id":"1330857575","filename":"file2"},{"photo_id":"1330857580","filename":"file4"},{"photo_id":"1330857573","filename":"file1"},{"photo_id":"1330857569","filename":"file0"},{"photo_id":"1330857576","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330857581":["hashtag1","hashtag2"]},{"1330857575":["hashtag1","hashtag2"]},{"1330857569":["hashtag1","hashtag2"]},{"1330857580":["hashtag1","hashtag2"]},{"1330857576":["hashtag1","hashtag2"]},{"1330857573":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330857581, 1330857575, 1330857569, 1330857580, 1330857576, 1330857573)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.09452223777771 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:16:02.553308
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/15/image_23012025_20_15_55_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/20/15/image_23012025_20_15_49_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/20/15/image_23012025_20_15_42_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/20/15/image_23012025_20_15_36_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/20/15/image_23012025_20_15_30_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/20/15/image_23012025_20_15_25_6191.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/15/image_23012025_20_15_55_6199.jpg', '/home/nano/Desktop/images/23012025/20/15/image_23012025_20_15_49_6206.jpg', '/home/nano/Desktop/images/23012025/20/15/image_23012025_20_15_42_6195.jpg', '/home/nano/Desktop/images/23012025/20/15/image_23012025_20_15_36_6194.jpg', '/home/nano/Desktop/images/23012025/20/15/image_23012025_20_15_30_5179.jpg', '/home/nano/Desktop/images/23012025/20/15/image_23012025_20_15_25_6191.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/15/image_23012025_20_15_55_6199.jpg
/home/nano/Desktop/images/23012025/20/15/image_23012025_20_15_49_6206.jpg
/home/nano/Desktop/images/23012025/20/15/image_23012025_20_15_42_6195.jpg
/home/nano/Desktop/images/23012025/20/15/image_23012025_20_15_36_6194.jpg
/home/nano/Desktop/images/23012025/20/15/image_23012025_20_15_30_5179.jpg
/home/nano/Desktop/images/23012025/20/15/image_23012025_20_15_25_6191.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330857812","1330857806","1330857809","1330857814","1330857802","1330857780"],"photo_ids_order":["1330857780","1330857802","1330857806","1330857809","1330857812","1330857814"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6a06b4e7fdef09d560919724b39370b4.jpg","text":"TemporaryFile(/tmp/multipartBody7705488689089349705asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659823193,"filename":"image_23012025_20_15_30_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d4be5f416cab43294f12e40475e250d7.jpg","text":"TemporaryFile(/tmp/multipartBody2642018505118484125asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659823193,"filename":"image_23012025_20_15_42_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9d86dbdf1449bcc3c11758f04803c62f.jpg","text":"TemporaryFile(/tmp/multipartBody3769468493523322796asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659823193,"filename":"image_23012025_20_15_36_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e304166b406933600f6aa2a3246ea208.jpg","text":"TemporaryFile(/tmp/multipartBody6934693605318506502asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659823193,"filename":"image_23012025_20_15_25_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c081f7f02b017199b3ed592d9a50096f.jpg","text":"TemporaryFile(/tmp/multipartBody8298265862532852279asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659823193,"filename":"image_23012025_20_15_49_6206.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/02fce5f382467b336ca046913a16169e.jpg","text":"TemporaryFile(/tmp/multipartBody776079135725199052asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659823193,"filename":"image_23012025_20_15_55_6199.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330857806","file1":"1330857802","file0":"1330857780","file4":"1330857812","file5":"1330857814","file3":"1330857809"},"map_files_photo_id_array":[{"photo_id":"1330857814","filename":"file5"},{"photo_id":"1330857806","filename":"file2"},{"photo_id":"1330857812","filename":"file4"},{"photo_id":"1330857802","filename":"file1"},{"photo_id":"1330857780","filename":"file0"},{"photo_id":"1330857809","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330857812":["hashtag1","hashtag2"]},{"1330857806":["hashtag1","hashtag2"]},{"1330857809":["hashtag1","hashtag2"]},{"1330857814":["hashtag1","hashtag2"]},{"1330857802":["hashtag1","hashtag2"]},{"1330857780":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330857812, 1330857806, 1330857809, 1330857814, 1330857802, 1330857780)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.082513093948364 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:17:02.788024
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/16/image_23012025_20_16_55_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/20/16/image_23012025_20_16_49_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/20/16/image_23012025_20_16_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/20/16/image_23012025_20_16_36_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/16/image_23012025_20_16_30_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/20/16/image_23012025_20_16_25_6198.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/16/image_23012025_20_16_55_6203.jpg', '/home/nano/Desktop/images/23012025/20/16/image_23012025_20_16_49_6205.jpg', '/home/nano/Desktop/images/23012025/20/16/image_23012025_20_16_42_6196.jpg', '/home/nano/Desktop/images/23012025/20/16/image_23012025_20_16_36_6193.jpg', '/home/nano/Desktop/images/23012025/20/16/image_23012025_20_16_30_5181.jpg', '/home/nano/Desktop/images/23012025/20/16/image_23012025_20_16_25_6198.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/16/image_23012025_20_16_55_6203.jpg
/home/nano/Desktop/images/23012025/20/16/image_23012025_20_16_49_6205.jpg
/home/nano/Desktop/images/23012025/20/16/image_23012025_20_16_42_6196.jpg
/home/nano/Desktop/images/23012025/20/16/image_23012025_20_16_36_6193.jpg
/home/nano/Desktop/images/23012025/20/16/image_23012025_20_16_30_5181.jpg
/home/nano/Desktop/images/23012025/20/16/image_23012025_20_16_25_6198.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330858016","1330858004","1330857997","1330857984","1330858011","1330858008"],"photo_ids_order":["1330857984","1330857997","1330858004","1330858008","1330858011","1330858016"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/27188336f983e6e733faff1507c3b3b1.jpg","text":"TemporaryFile(/tmp/multipartBody1949146390178497014asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659883459,"filename":"image_23012025_20_16_25_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8e75457bf4d6cd11807b29cf1cc1b80a.jpg","text":"TemporaryFile(/tmp/multipartBody3238066933993636598asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659883459,"filename":"image_23012025_20_16_42_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/26092bfb2b2f44ab40451aedcef352af.jpg","text":"TemporaryFile(/tmp/multipartBody2036857424086036564asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659883459,"filename":"image_23012025_20_16_49_6205.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7adcb282e837700350b85948ae3b46f3.jpg","text":"TemporaryFile(/tmp/multipartBody2849662866371881353asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659883459,"filename":"image_23012025_20_16_55_6203.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f0ec3a86c0ccc5630090fa2069d892c1.jpg","text":"TemporaryFile(/tmp/multipartBody4424736384024687108asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659883459,"filename":"image_23012025_20_16_30_5181.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e5b8278076dfdfebac139e3a11d1b8c9.jpg","text":"TemporaryFile(/tmp/multipartBody3179007513288151941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659883459,"filename":"image_23012025_20_16_36_6193.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330858004","file1":"1330857997","file0":"1330857984","file4":"1330858011","file5":"1330858016","file3":"1330858008"},"map_files_photo_id_array":[{"photo_id":"1330858016","filename":"file5"},{"photo_id":"1330858004","filename":"file2"},{"photo_id":"1330858011","filename":"file4"},{"photo_id":"1330857997","filename":"file1"},{"photo_id":"1330857984","filename":"file0"},{"photo_id":"1330858008","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330858016":["hashtag1","hashtag2"]},{"1330858004":["hashtag1","hashtag2"]},{"1330857997":["hashtag1","hashtag2"]},{"1330857984":["hashtag1","hashtag2"]},{"1330858011":["hashtag1","hashtag2"]},{"1330858008":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330858016, 1330858004, 1330857997, 1330857984, 1330858011, 1330858008)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.499715566635132 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:18:02.656394
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/17/image_23012025_20_17_55_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/20/17/image_23012025_20_17_49_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/20/17/image_23012025_20_17_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/20/17/image_23012025_20_17_36_6250.jpg', 2), ('/home/nano/Desktop/images/23012025/20/17/image_23012025_20_17_30_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/20/17/image_23012025_20_17_25_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/17/image_23012025_20_17_55_6201.jpg', '/home/nano/Desktop/images/23012025/20/17/image_23012025_20_17_49_6199.jpg', '/home/nano/Desktop/images/23012025/20/17/image_23012025_20_17_42_6196.jpg', '/home/nano/Desktop/images/23012025/20/17/image_23012025_20_17_36_6250.jpg', '/home/nano/Desktop/images/23012025/20/17/image_23012025_20_17_30_5180.jpg', '/home/nano/Desktop/images/23012025/20/17/image_23012025_20_17_25_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/17/image_23012025_20_17_55_6201.jpg
/home/nano/Desktop/images/23012025/20/17/image_23012025_20_17_49_6199.jpg
/home/nano/Desktop/images/23012025/20/17/image_23012025_20_17_42_6196.jpg
/home/nano/Desktop/images/23012025/20/17/image_23012025_20_17_36_6250.jpg
/home/nano/Desktop/images/23012025/20/17/image_23012025_20_17_30_5180.jpg
/home/nano/Desktop/images/23012025/20/17/image_23012025_20_17_25_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330858189","1330858159","1330858204","1330858194","1330858155","1330858199"],"photo_ids_order":["1330858155","1330858159","1330858189","1330858194","1330858199","1330858204"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4e61676501437882ddd9931013350216.jpg","text":"TemporaryFile(/tmp/multipartBody2692237609614641240asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659943305,"filename":"image_23012025_20_17_42_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/548b47f364de67d60e5358513b024218.jpg","text":"TemporaryFile(/tmp/multipartBody5159066472758462527asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659943305,"filename":"image_23012025_20_17_49_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/69690af2be08c4ca972ce933a06ebd5f.jpg","text":"TemporaryFile(/tmp/multipartBody5701243508117406239asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659943305,"filename":"image_23012025_20_17_25_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8b8f127eba71ca0f375abb7cd79cb8ff.jpg","text":"TemporaryFile(/tmp/multipartBody1908130756617731260asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659943305,"filename":"image_23012025_20_17_36_6250.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8feb2e355c1b83299993cadfacffc958.jpg","text":"TemporaryFile(/tmp/multipartBody3493347439874360774asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659943305,"filename":"image_23012025_20_17_55_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3b44e5b52a82088a5a79a7e0b61536d8.jpg","text":"TemporaryFile(/tmp/multipartBody8658195490261806979asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737659943305,"filename":"image_23012025_20_17_30_5180.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330858189","file1":"1330858159","file0":"1330858155","file4":"1330858199","file5":"1330858204","file3":"1330858194"},"map_files_photo_id_array":[{"photo_id":"1330858204","filename":"file5"},{"photo_id":"1330858189","filename":"file2"},{"photo_id":"1330858199","filename":"file4"},{"photo_id":"1330858159","filename":"file1"},{"photo_id":"1330858155","filename":"file0"},{"photo_id":"1330858194","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330858189":["hashtag1","hashtag2"]},{"1330858159":["hashtag1","hashtag2"]},{"1330858204":["hashtag1","hashtag2"]},{"1330858194":["hashtag1","hashtag2"]},{"1330858155":["hashtag1","hashtag2"]},{"1330858199":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330858189, 1330858159, 1330858204, 1330858194, 1330858155, 1330858199)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.203685522079468 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:19:03.528125
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/18/image_23012025_20_18_55_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/20/18/image_23012025_20_18_49_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/20/18/image_23012025_20_18_42_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/20/18/image_23012025_20_18_36_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/20/18/image_23012025_20_18_30_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/20/18/image_23012025_20_18_25_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/18/image_23012025_20_18_55_6200.jpg', '/home/nano/Desktop/images/23012025/20/18/image_23012025_20_18_49_6199.jpg', '/home/nano/Desktop/images/23012025/20/18/image_23012025_20_18_42_6191.jpg', '/home/nano/Desktop/images/23012025/20/18/image_23012025_20_18_36_6196.jpg', '/home/nano/Desktop/images/23012025/20/18/image_23012025_20_18_30_5180.jpg', '/home/nano/Desktop/images/23012025/20/18/image_23012025_20_18_25_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/18/image_23012025_20_18_55_6200.jpg
/home/nano/Desktop/images/23012025/20/18/image_23012025_20_18_49_6199.jpg
/home/nano/Desktop/images/23012025/20/18/image_23012025_20_18_42_6191.jpg
/home/nano/Desktop/images/23012025/20/18/image_23012025_20_18_36_6196.jpg
/home/nano/Desktop/images/23012025/20/18/image_23012025_20_18_30_5180.jpg
/home/nano/Desktop/images/23012025/20/18/image_23012025_20_18_25_6197.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330858297","1330858291","1330858294","1330858296","1330858299","1330858295"],"photo_ids_order":["1330858291","1330858294","1330858295","1330858296","1330858297","1330858299"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d4672f45e5319847f18af6c08bdb0440.jpg","text":"TemporaryFile(/tmp/multipartBody4932316775406029939asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660004143,"filename":"image_23012025_20_18_30_5180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fa1addd1f0f5c6bf466053806d2e48e5.jpg","text":"TemporaryFile(/tmp/multipartBody4990499898303805818asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660004143,"filename":"image_23012025_20_18_55_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ff820a68854405bd79a2517c5485c27e.jpg","text":"TemporaryFile(/tmp/multipartBody5043653020035860291asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660004143,"filename":"image_23012025_20_18_49_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/393a310a92e28a00b49eaf5b3db78928.jpg","text":"TemporaryFile(/tmp/multipartBody2273351373388666057asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660004143,"filename":"image_23012025_20_18_36_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/40d1d4f91dbeb2659497a411f5485a8a.jpg","text":"TemporaryFile(/tmp/multipartBody729408118263684633asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660004143,"filename":"image_23012025_20_18_25_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9f5803d76e5a62f95d3de87ae7151b50.jpg","text":"TemporaryFile(/tmp/multipartBody3724046727215906893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660004143,"filename":"image_23012025_20_18_42_6191.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330858295","file1":"1330858294","file0":"1330858291","file4":"1330858297","file5":"1330858299","file3":"1330858296"},"map_files_photo_id_array":[{"photo_id":"1330858299","filename":"file5"},{"photo_id":"1330858295","filename":"file2"},{"photo_id":"1330858297","filename":"file4"},{"photo_id":"1330858294","filename":"file1"},{"photo_id":"1330858291","filename":"file0"},{"photo_id":"1330858296","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330858297":["hashtag1","hashtag2"]},{"1330858291":["hashtag1","hashtag2"]},{"1330858294":["hashtag1","hashtag2"]},{"1330858296":["hashtag1","hashtag2"]},{"1330858299":["hashtag1","hashtag2"]},{"1330858295":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330858297, 1330858291, 1330858294, 1330858296, 1330858299, 1330858295)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.848734617233276 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:20:02.936498
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/19/image_23012025_20_19_55_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/20/19/image_23012025_20_19_49_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/20/19/image_23012025_20_19_42_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/20/19/image_23012025_20_19_36_6219.jpg', 2), ('/home/nano/Desktop/images/23012025/20/19/image_23012025_20_19_30_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/19/image_23012025_20_19_25_6192.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/19/image_23012025_20_19_55_6194.jpg', '/home/nano/Desktop/images/23012025/20/19/image_23012025_20_19_49_6190.jpg', '/home/nano/Desktop/images/23012025/20/19/image_23012025_20_19_42_6200.jpg', '/home/nano/Desktop/images/23012025/20/19/image_23012025_20_19_36_6219.jpg', '/home/nano/Desktop/images/23012025/20/19/image_23012025_20_19_30_5188.jpg', '/home/nano/Desktop/images/23012025/20/19/image_23012025_20_19_25_6192.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/19/image_23012025_20_19_55_6194.jpg
/home/nano/Desktop/images/23012025/20/19/image_23012025_20_19_49_6190.jpg
/home/nano/Desktop/images/23012025/20/19/image_23012025_20_19_42_6200.jpg
/home/nano/Desktop/images/23012025/20/19/image_23012025_20_19_36_6219.jpg
/home/nano/Desktop/images/23012025/20/19/image_23012025_20_19_30_5188.jpg
/home/nano/Desktop/images/23012025/20/19/image_23012025_20_19_25_6192.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330858351","1330858354","1330858345","1330858361","1330858364","1330858358"],"photo_ids_order":["1330858345","1330858351","1330858354","1330858358","1330858361","1330858364"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8e936748b32d26fcc3a584f9f1a4b93c.jpg","text":"TemporaryFile(/tmp/multipartBody1303771453619116462asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660063691,"filename":"image_23012025_20_19_49_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/26b8c6a49a2d9bb10e9aa0d0729297c7.jpg","text":"TemporaryFile(/tmp/multipartBody822021543780563762asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660063691,"filename":"image_23012025_20_19_42_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/659a0c61c7d258d352561936035c8886.jpg","text":"TemporaryFile(/tmp/multipartBody2226614751044458537asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660063691,"filename":"image_23012025_20_19_55_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4613e2b7f3a44cb484b02c26639abc66.jpg","text":"TemporaryFile(/tmp/multipartBody4831443352865380195asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660063691,"filename":"image_23012025_20_19_30_5188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3f9eaaecef8d930cb9de4367124c7ab7.jpg","text":"TemporaryFile(/tmp/multipartBody9091180751236870868asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660063691,"filename":"image_23012025_20_19_25_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/60c67394d4a33eed9b904fc12360f240.jpg","text":"TemporaryFile(/tmp/multipartBody5789218873473222689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660063691,"filename":"image_23012025_20_19_36_6219.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330858354","file1":"1330858351","file0":"1330858345","file4":"1330858361","file5":"1330858364","file3":"1330858358"},"map_files_photo_id_array":[{"photo_id":"1330858364","filename":"file5"},{"photo_id":"1330858354","filename":"file2"},{"photo_id":"1330858361","filename":"file4"},{"photo_id":"1330858351","filename":"file1"},{"photo_id":"1330858345","filename":"file0"},{"photo_id":"1330858358","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330858351":["hashtag1","hashtag2"]},{"1330858354":["hashtag1","hashtag2"]},{"1330858345":["hashtag1","hashtag2"]},{"1330858361":["hashtag1","hashtag2"]},{"1330858364":["hashtag1","hashtag2"]},{"1330858358":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330858351, 1330858354, 1330858345, 1330858361, 1330858364, 1330858358)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.790639877319336 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:21:03.228206
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/20/image_23012025_20_20_55_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/20/image_23012025_20_20_49_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/20/20/image_23012025_20_20_42_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/20/20/image_23012025_20_20_36_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/20/20/image_23012025_20_20_30_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/20/20/image_23012025_20_20_25_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/20/image_23012025_20_20_55_6193.jpg', '/home/nano/Desktop/images/23012025/20/20/image_23012025_20_20_49_6198.jpg', '/home/nano/Desktop/images/23012025/20/20/image_23012025_20_20_42_6200.jpg', '/home/nano/Desktop/images/23012025/20/20/image_23012025_20_20_36_6199.jpg', '/home/nano/Desktop/images/23012025/20/20/image_23012025_20_20_30_5182.jpg', '/home/nano/Desktop/images/23012025/20/20/image_23012025_20_20_25_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/20/image_23012025_20_20_55_6193.jpg
/home/nano/Desktop/images/23012025/20/20/image_23012025_20_20_49_6198.jpg
/home/nano/Desktop/images/23012025/20/20/image_23012025_20_20_42_6200.jpg
/home/nano/Desktop/images/23012025/20/20/image_23012025_20_20_36_6199.jpg
/home/nano/Desktop/images/23012025/20/20/image_23012025_20_20_30_5182.jpg
/home/nano/Desktop/images/23012025/20/20/image_23012025_20_20_25_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330858483","1330858477","1330858474","1330858453","1330858470","1330858478"],"photo_ids_order":["1330858453","1330858470","1330858474","1330858477","1330858478","1330858483"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/13b0009cc4277855689f8be5fdf29557.jpg","text":"TemporaryFile(/tmp/multipartBody4071575453891571028asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660123933,"filename":"image_23012025_20_20_25_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c2d6d9c76afb1ad19afe84786f0a5a7a.jpg","text":"TemporaryFile(/tmp/multipartBody7624298982052257660asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660123933,"filename":"image_23012025_20_20_36_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e802fd76db1f00a7b8e8a5bd5973872b.jpg","text":"TemporaryFile(/tmp/multipartBody2436075561939131298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660123933,"filename":"image_23012025_20_20_42_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/acd92c748cc1c9e3617b6effc7c3b5bc.jpg","text":"TemporaryFile(/tmp/multipartBody462403363760832941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660123933,"filename":"image_23012025_20_20_55_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/54c820d552225626a6b9b7584a2f3a59.jpg","text":"TemporaryFile(/tmp/multipartBody4302207925688162364asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660123933,"filename":"image_23012025_20_20_49_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9ac1db35a8d3283e8c6745cc82fe5a68.jpg","text":"TemporaryFile(/tmp/multipartBody5766680448379889572asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660123933,"filename":"image_23012025_20_20_30_5182.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330858474","file1":"1330858470","file0":"1330858453","file4":"1330858478","file5":"1330858483","file3":"1330858477"},"map_files_photo_id_array":[{"photo_id":"1330858483","filename":"file5"},{"photo_id":"1330858474","filename":"file2"},{"photo_id":"1330858478","filename":"file4"},{"photo_id":"1330858470","filename":"file1"},{"photo_id":"1330858453","filename":"file0"},{"photo_id":"1330858477","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330858483":["hashtag1","hashtag2"]},{"1330858477":["hashtag1","hashtag2"]},{"1330858474":["hashtag1","hashtag2"]},{"1330858453":["hashtag1","hashtag2"]},{"1330858470":["hashtag1","hashtag2"]},{"1330858478":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330858483, 1330858477, 1330858474, 1330858453, 1330858470, 1330858478)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.802024126052856 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:22:03.177022
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/21/image_23012025_20_21_55_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/20/21/image_23012025_20_21_48_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/20/21/image_23012025_20_21_42_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/21/image_23012025_20_21_36_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/20/21/image_23012025_20_21_30_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/20/21/image_23012025_20_21_25_6200.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/21/image_23012025_20_21_55_6199.jpg', '/home/nano/Desktop/images/23012025/20/21/image_23012025_20_21_48_6198.jpg', '/home/nano/Desktop/images/23012025/20/21/image_23012025_20_21_42_6193.jpg', '/home/nano/Desktop/images/23012025/20/21/image_23012025_20_21_36_6200.jpg', '/home/nano/Desktop/images/23012025/20/21/image_23012025_20_21_30_5190.jpg', '/home/nano/Desktop/images/23012025/20/21/image_23012025_20_21_25_6200.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/21/image_23012025_20_21_55_6199.jpg
/home/nano/Desktop/images/23012025/20/21/image_23012025_20_21_48_6198.jpg
/home/nano/Desktop/images/23012025/20/21/image_23012025_20_21_42_6193.jpg
/home/nano/Desktop/images/23012025/20/21/image_23012025_20_21_36_6200.jpg
/home/nano/Desktop/images/23012025/20/21/image_23012025_20_21_30_5190.jpg
/home/nano/Desktop/images/23012025/20/21/image_23012025_20_21_25_6200.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330858576","1330858564","1330858555","1330858543","1330858571","1330858568"],"photo_ids_order":["1330858543","1330858555","1330858564","1330858568","1330858571","1330858576"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2db9cd98aa5f11ec0eb68f2f42e66250.jpg","text":"TemporaryFile(/tmp/multipartBody6473195923421400204asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660183792,"filename":"image_23012025_20_21_25_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0f3269bf4bf065cd0c196691747185d5.jpg","text":"TemporaryFile(/tmp/multipartBody7521164152660231115asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660183792,"filename":"image_23012025_20_21_42_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2e9d286f299f68599b551aacf90ca06f.jpg","text":"TemporaryFile(/tmp/multipartBody1521848343157197077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660183792,"filename":"image_23012025_20_21_48_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2c14719a9532aa0d6d60f7f0e947b218.jpg","text":"TemporaryFile(/tmp/multipartBody2489289536949524470asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660183792,"filename":"image_23012025_20_21_55_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/969ca7b3801f420ccdb4d544dfdea149.jpg","text":"TemporaryFile(/tmp/multipartBody3511632409829982679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660183792,"filename":"image_23012025_20_21_30_5190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6b8711418459ec04fb49e383b8175b2e.jpg","text":"TemporaryFile(/tmp/multipartBody8411618904042361833asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660183792,"filename":"image_23012025_20_21_36_6200.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330858564","file1":"1330858555","file0":"1330858543","file4":"1330858571","file5":"1330858576","file3":"1330858568"},"map_files_photo_id_array":[{"photo_id":"1330858576","filename":"file5"},{"photo_id":"1330858564","filename":"file2"},{"photo_id":"1330858571","filename":"file4"},{"photo_id":"1330858555","filename":"file1"},{"photo_id":"1330858543","filename":"file0"},{"photo_id":"1330858568","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330858576":["hashtag1","hashtag2"]},{"1330858564":["hashtag1","hashtag2"]},{"1330858555":["hashtag1","hashtag2"]},{"1330858543":["hashtag1","hashtag2"]},{"1330858571":["hashtag1","hashtag2"]},{"1330858568":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330858576, 1330858564, 1330858555, 1330858543, 1330858571, 1330858568)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.311219215393066 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:23:03.448726
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/23/image_23012025_20_24_01_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/20/22/image_23012025_20_22_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/22/image_23012025_20_22_48_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/22/image_23012025_20_22_42_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/22/image_23012025_20_22_36_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/20/22/image_23012025_20_22_25_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/23/image_23012025_20_24_01_6190.jpg', '/home/nano/Desktop/images/23012025/20/22/image_23012025_20_22_55_6188.jpg', '/home/nano/Desktop/images/23012025/20/22/image_23012025_20_22_48_6188.jpg', '/home/nano/Desktop/images/23012025/20/22/image_23012025_20_22_42_6188.jpg', '/home/nano/Desktop/images/23012025/20/22/image_23012025_20_22_36_6204.jpg', '/home/nano/Desktop/images/23012025/20/22/image_23012025_20_22_25_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/23/image_23012025_20_24_01_6190.jpg
/home/nano/Desktop/images/23012025/20/22/image_23012025_20_22_55_6188.jpg
/home/nano/Desktop/images/23012025/20/22/image_23012025_20_22_48_6188.jpg
/home/nano/Desktop/images/23012025/20/22/image_23012025_20_22_42_6188.jpg
/home/nano/Desktop/images/23012025/20/22/image_23012025_20_22_36_6204.jpg
/home/nano/Desktop/images/23012025/20/22/image_23012025_20_22_25_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330858637","1330858639","1330858630","1330858633","1330858642","1330858635"],"photo_ids_order":["1330858630","1330858633","1330858635","1330858637","1330858639","1330858642"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e05f1cfbc1286c5d18f6e411223521ec.jpg","text":"TemporaryFile(/tmp/multipartBody5195873528358332586asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660243954,"filename":"image_23012025_20_22_42_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/13e6722deaf20fb09646730440b345e5.jpg","text":"TemporaryFile(/tmp/multipartBody3310260816835144090asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660243954,"filename":"image_23012025_20_22_36_6204.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/61addc7a9e60553c0ef0cd9f7e308421.jpg","text":"TemporaryFile(/tmp/multipartBody8769869103054796631asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660243954,"filename":"image_23012025_20_24_01_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3ab0731b0aab3bdaa875c20c1e416a9b.jpg","text":"TemporaryFile(/tmp/multipartBody8170624840871995422asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660243954,"filename":"image_23012025_20_22_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ddb0b190cc30641cae9ba42cfa74b1d9.jpg","text":"TemporaryFile(/tmp/multipartBody8402706532209677923asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660243954,"filename":"image_23012025_20_22_25_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3646fa4849938a4b03b5101ca0beed55.jpg","text":"TemporaryFile(/tmp/multipartBody8476837457094066965asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660243954,"filename":"image_23012025_20_22_48_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330858635","file1":"1330858633","file0":"1330858630","file4":"1330858639","file5":"1330858642","file3":"1330858637"},"map_files_photo_id_array":[{"photo_id":"1330858642","filename":"file5"},{"photo_id":"1330858635","filename":"file2"},{"photo_id":"1330858639","filename":"file4"},{"photo_id":"1330858633","filename":"file1"},{"photo_id":"1330858630","filename":"file0"},{"photo_id":"1330858637","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330858637":["hashtag1","hashtag2"]},{"1330858639":["hashtag1","hashtag2"]},{"1330858630":["hashtag1","hashtag2"]},{"1330858633":["hashtag1","hashtag2"]},{"1330858642":["hashtag1","hashtag2"]},{"1330858635":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330858637, 1330858639, 1330858630, 1330858633, 1330858642, 1330858635)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.37010192871094 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:24:02.856448
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/23/image_23012025_20_23_48_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/20/23/image_23012025_20_23_42_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/23/image_23012025_20_23_36_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/20/23/image_23012025_20_23_31_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/20/23/image_23012025_20_23_25_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/20/23/image_23012025_20_23_18_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/23/image_23012025_20_23_48_6189.jpg', '/home/nano/Desktop/images/23012025/20/23/image_23012025_20_23_42_6188.jpg', '/home/nano/Desktop/images/23012025/20/23/image_23012025_20_23_36_5179.jpg', '/home/nano/Desktop/images/23012025/20/23/image_23012025_20_23_31_6190.jpg', '/home/nano/Desktop/images/23012025/20/23/image_23012025_20_23_25_6189.jpg', '/home/nano/Desktop/images/23012025/20/23/image_23012025_20_23_18_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/23/image_23012025_20_23_48_6189.jpg
/home/nano/Desktop/images/23012025/20/23/image_23012025_20_23_42_6188.jpg
/home/nano/Desktop/images/23012025/20/23/image_23012025_20_23_36_5179.jpg
/home/nano/Desktop/images/23012025/20/23/image_23012025_20_23_31_6190.jpg
/home/nano/Desktop/images/23012025/20/23/image_23012025_20_23_25_6189.jpg
/home/nano/Desktop/images/23012025/20/23/image_23012025_20_23_18_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330858823","1330858817","1330858759","1330858813","1330858821","1330858826"],"photo_ids_order":["1330858759","1330858813","1330858817","1330858821","1330858823","1330858826"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4904eea048f54a29b35ca484a0cb261e.jpg","text":"TemporaryFile(/tmp/multipartBody159981704139357424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660303336,"filename":"image_23012025_20_23_25_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/064ffedf6c96de6bce9e3118f5773b48.jpg","text":"TemporaryFile(/tmp/multipartBody2746707919641134889asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660303336,"filename":"image_23012025_20_23_36_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0f87bc43e937468f6b8333fbd47c8104.jpg","text":"TemporaryFile(/tmp/multipartBody5374877437949414529asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660303336,"filename":"image_23012025_20_23_48_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/02ed6101fa0a5b47f7437c4c686171fc.jpg","text":"TemporaryFile(/tmp/multipartBody1289918741020274139asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660303336,"filename":"image_23012025_20_23_42_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5d1850839403ab4f86b39f436f83e252.jpg","text":"TemporaryFile(/tmp/multipartBody6430517520395834230asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660303336,"filename":"image_23012025_20_23_31_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/77ef7c8d1434a5d29553a2700d510d39.jpg","text":"TemporaryFile(/tmp/multipartBody3408448144067259414asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660303336,"filename":"image_23012025_20_23_18_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330858817","file1":"1330858813","file0":"1330858759","file4":"1330858823","file5":"1330858826","file3":"1330858821"},"map_files_photo_id_array":[{"photo_id":"1330858826","filename":"file5"},{"photo_id":"1330858817","filename":"file2"},{"photo_id":"1330858823","filename":"file4"},{"photo_id":"1330858813","filename":"file1"},{"photo_id":"1330858759","filename":"file0"},{"photo_id":"1330858821","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330858823":["hashtag1","hashtag2"]},{"1330858817":["hashtag1","hashtag2"]},{"1330858759":["hashtag1","hashtag2"]},{"1330858813":["hashtag1","hashtag2"]},{"1330858821":["hashtag1","hashtag2"]},{"1330858826":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330858823, 1330858817, 1330858759, 1330858813, 1330858821, 1330858826)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.65345048904419 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:25:02.706034
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/24/image_23012025_20_24_54_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/24/image_23012025_20_24_48_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/20/24/image_23012025_20_24_42_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/20/24/image_23012025_20_24_37_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/24/image_23012025_20_24_31_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/24/image_23012025_20_24_25_6185.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/24/image_23012025_20_24_54_6188.jpg', '/home/nano/Desktop/images/23012025/20/24/image_23012025_20_24_48_6186.jpg', '/home/nano/Desktop/images/23012025/20/24/image_23012025_20_24_42_5180.jpg', '/home/nano/Desktop/images/23012025/20/24/image_23012025_20_24_37_6193.jpg', '/home/nano/Desktop/images/23012025/20/24/image_23012025_20_24_31_6188.jpg', '/home/nano/Desktop/images/23012025/20/24/image_23012025_20_24_25_6185.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/24/image_23012025_20_24_54_6188.jpg
/home/nano/Desktop/images/23012025/20/24/image_23012025_20_24_48_6186.jpg
/home/nano/Desktop/images/23012025/20/24/image_23012025_20_24_42_5180.jpg
/home/nano/Desktop/images/23012025/20/24/image_23012025_20_24_37_6193.jpg
/home/nano/Desktop/images/23012025/20/24/image_23012025_20_24_31_6188.jpg
/home/nano/Desktop/images/23012025/20/24/image_23012025_20_24_25_6185.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330858907","1330858916","1330858901","1330858921","1330858912","1330858895"],"photo_ids_order":["1330858895","1330858901","1330858907","1330858912","1330858916","1330858921"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/eb359fd9190c8f2ff0112910989cec57.jpg","text":"TemporaryFile(/tmp/multipartBody8116245846635980735asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660363166,"filename":"image_23012025_20_24_42_5180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8c62450f5e33763c981a76117ea5afd7.jpg","text":"TemporaryFile(/tmp/multipartBody684430173264155491asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660363166,"filename":"image_23012025_20_24_31_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ad02ce86f0e16c1e98a2121ed060994d.jpg","text":"TemporaryFile(/tmp/multipartBody3355245260234671479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660363166,"filename":"image_23012025_20_24_48_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/16a6d20a304bdc8239bf19482080c978.jpg","text":"TemporaryFile(/tmp/multipartBody1223073031953523655asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660363166,"filename":"image_23012025_20_24_25_6185.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/277df90b14fbfc56854a6850ec36e8f8.jpg","text":"TemporaryFile(/tmp/multipartBody1075404536548866906asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660363166,"filename":"image_23012025_20_24_37_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3fe32831c484b5c03a7bb0323337657e.jpg","text":"TemporaryFile(/tmp/multipartBody7483746950031736806asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660363166,"filename":"image_23012025_20_24_54_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330858907","file1":"1330858901","file0":"1330858895","file4":"1330858916","file5":"1330858921","file3":"1330858912"},"map_files_photo_id_array":[{"photo_id":"1330858921","filename":"file5"},{"photo_id":"1330858907","filename":"file2"},{"photo_id":"1330858916","filename":"file4"},{"photo_id":"1330858901","filename":"file1"},{"photo_id":"1330858895","filename":"file0"},{"photo_id":"1330858912","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330858907":["hashtag1","hashtag2"]},{"1330858916":["hashtag1","hashtag2"]},{"1330858901":["hashtag1","hashtag2"]},{"1330858921":["hashtag1","hashtag2"]},{"1330858912":["hashtag1","hashtag2"]},{"1330858895":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330858907, 1330858916, 1330858901, 1330858921, 1330858912, 1330858895)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.91918182373047 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:26:02.619469
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/25/image_23012025_20_25_55_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/20/25/image_23012025_20_25_49_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/20/25/image_23012025_20_25_42_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/20/25/image_23012025_20_25_36_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/20/25/image_23012025_20_25_30_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/20/25/image_23012025_20_25_25_6190.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/25/image_23012025_20_25_55_6192.jpg', '/home/nano/Desktop/images/23012025/20/25/image_23012025_20_25_49_6191.jpg', '/home/nano/Desktop/images/23012025/20/25/image_23012025_20_25_42_6190.jpg', '/home/nano/Desktop/images/23012025/20/25/image_23012025_20_25_36_6192.jpg', '/home/nano/Desktop/images/23012025/20/25/image_23012025_20_25_30_5179.jpg', '/home/nano/Desktop/images/23012025/20/25/image_23012025_20_25_25_6190.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/25/image_23012025_20_25_55_6192.jpg
/home/nano/Desktop/images/23012025/20/25/image_23012025_20_25_49_6191.jpg
/home/nano/Desktop/images/23012025/20/25/image_23012025_20_25_42_6190.jpg
/home/nano/Desktop/images/23012025/20/25/image_23012025_20_25_36_6192.jpg
/home/nano/Desktop/images/23012025/20/25/image_23012025_20_25_30_5179.jpg
/home/nano/Desktop/images/23012025/20/25/image_23012025_20_25_25_6190.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330858984","1330858981","1330858960","1330858957","1330858968","1330858964"],"photo_ids_order":["1330858957","1330858960","1330858964","1330858968","1330858981","1330858984"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c8cbc8c12aab0a5f6de9dcdea50d12fd.jpg","text":"TemporaryFile(/tmp/multipartBody7317966116756158688asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660423101,"filename":"image_23012025_20_25_25_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f24b9e193adc4e7e095843c8812e9b81.jpg","text":"TemporaryFile(/tmp/multipartBody4056876674970652325asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660423101,"filename":"image_23012025_20_25_30_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/69aac48e7080001c4996c8871db64a2f.jpg","text":"TemporaryFile(/tmp/multipartBody8696862849564656546asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660423101,"filename":"image_23012025_20_25_49_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1ae6e066a369864fe7df0a3e9a5cbc95.jpg","text":"TemporaryFile(/tmp/multipartBody2672403349676780243asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660423101,"filename":"image_23012025_20_25_55_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/28e1bdf1428ff324b7306d7ed12951b1.jpg","text":"TemporaryFile(/tmp/multipartBody659001865974601457asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660423101,"filename":"image_23012025_20_25_36_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a944aa3ee666be1f50b413af4519ea41.jpg","text":"TemporaryFile(/tmp/multipartBody6160203927977144531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660423101,"filename":"image_23012025_20_25_42_6190.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330858964","file1":"1330858960","file0":"1330858957","file4":"1330858981","file5":"1330858984","file3":"1330858968"},"map_files_photo_id_array":[{"photo_id":"1330858984","filename":"file5"},{"photo_id":"1330858964","filename":"file2"},{"photo_id":"1330858981","filename":"file4"},{"photo_id":"1330858960","filename":"file1"},{"photo_id":"1330858957","filename":"file0"},{"photo_id":"1330858968","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330858984":["hashtag1","hashtag2"]},{"1330858981":["hashtag1","hashtag2"]},{"1330858960":["hashtag1","hashtag2"]},{"1330858957":["hashtag1","hashtag2"]},{"1330858968":["hashtag1","hashtag2"]},{"1330858964":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330858984, 1330858981, 1330858960, 1330858957, 1330858968, 1330858964)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.195630311965942 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:27:03.013936
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/26/image_23012025_20_26_55_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/20/26/image_23012025_20_26_49_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/26/image_23012025_20_26_42_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/20/26/image_23012025_20_26_36_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/20/26/image_23012025_20_26_30_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/20/26/image_23012025_20_26_25_6192.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/26/image_23012025_20_26_55_6194.jpg', '/home/nano/Desktop/images/23012025/20/26/image_23012025_20_26_49_6193.jpg', '/home/nano/Desktop/images/23012025/20/26/image_23012025_20_26_42_6192.jpg', '/home/nano/Desktop/images/23012025/20/26/image_23012025_20_26_36_6199.jpg', '/home/nano/Desktop/images/23012025/20/26/image_23012025_20_26_30_5184.jpg', '/home/nano/Desktop/images/23012025/20/26/image_23012025_20_26_25_6192.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/26/image_23012025_20_26_55_6194.jpg
/home/nano/Desktop/images/23012025/20/26/image_23012025_20_26_49_6193.jpg
/home/nano/Desktop/images/23012025/20/26/image_23012025_20_26_42_6192.jpg
/home/nano/Desktop/images/23012025/20/26/image_23012025_20_26_36_6199.jpg
/home/nano/Desktop/images/23012025/20/26/image_23012025_20_26_30_5184.jpg
/home/nano/Desktop/images/23012025/20/26/image_23012025_20_26_25_6192.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330859038","1330859085","1330859177","1330859036","1330859126","1330859033"],"photo_ids_order":["1330859033","1330859036","1330859038","1330859085","1330859126","1330859177"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/127272735146cd475456eeaa2b11e133.jpg","text":"TemporaryFile(/tmp/multipartBody2670332153155684327asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660483574,"filename":"image_23012025_20_26_42_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c5c16ce57f6cf1d28984d125bf88b3d0.jpg","text":"TemporaryFile(/tmp/multipartBody4335844579030159202asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660483574,"filename":"image_23012025_20_26_36_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1f2e99c9de6b111b69a0ac25ca55c214.jpg","text":"TemporaryFile(/tmp/multipartBody6562841854055428958asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660483574,"filename":"image_23012025_20_26_25_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e8fa78a17d8e48721920595c15fbf63d.jpg","text":"TemporaryFile(/tmp/multipartBody3376751160472858637asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660483574,"filename":"image_23012025_20_26_49_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ff00d0dabbf656b5cde35fbf2e1b4d6b.jpg","text":"TemporaryFile(/tmp/multipartBody348001476321736017asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660483574,"filename":"image_23012025_20_26_30_5184.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/05d7506be9415a8280a54959a1a3265d.jpg","text":"TemporaryFile(/tmp/multipartBody6481864651441173481asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660483574,"filename":"image_23012025_20_26_55_6194.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330859038","file1":"1330859036","file0":"1330859033","file4":"1330859126","file5":"1330859177","file3":"1330859085"},"map_files_photo_id_array":[{"photo_id":"1330859177","filename":"file5"},{"photo_id":"1330859038","filename":"file2"},{"photo_id":"1330859126","filename":"file4"},{"photo_id":"1330859036","filename":"file1"},{"photo_id":"1330859033","filename":"file0"},{"photo_id":"1330859085","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330859038":["hashtag1","hashtag2"]},{"1330859085":["hashtag1","hashtag2"]},{"1330859177":["hashtag1","hashtag2"]},{"1330859036":["hashtag1","hashtag2"]},{"1330859126":["hashtag1","hashtag2"]},{"1330859033":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330859038, 1330859085, 1330859177, 1330859036, 1330859126, 1330859033)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.4039306640625 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:28:02.814164
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/27/image_23012025_20_27_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/27/image_23012025_20_27_48_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/20/27/image_23012025_20_27_42_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/20/27/image_23012025_20_27_36_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/20/27/image_23012025_20_27_31_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/20/27/image_23012025_20_27_25_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/27/image_23012025_20_27_55_6188.jpg', '/home/nano/Desktop/images/23012025/20/27/image_23012025_20_27_48_6189.jpg', '/home/nano/Desktop/images/23012025/20/27/image_23012025_20_27_42_6190.jpg', '/home/nano/Desktop/images/23012025/20/27/image_23012025_20_27_36_5180.jpg', '/home/nano/Desktop/images/23012025/20/27/image_23012025_20_27_31_6187.jpg', '/home/nano/Desktop/images/23012025/20/27/image_23012025_20_27_25_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/27/image_23012025_20_27_55_6188.jpg
/home/nano/Desktop/images/23012025/20/27/image_23012025_20_27_48_6189.jpg
/home/nano/Desktop/images/23012025/20/27/image_23012025_20_27_42_6190.jpg
/home/nano/Desktop/images/23012025/20/27/image_23012025_20_27_36_5180.jpg
/home/nano/Desktop/images/23012025/20/27/image_23012025_20_27_31_6187.jpg
/home/nano/Desktop/images/23012025/20/27/image_23012025_20_27_25_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330859278","1330859283","1330859270","1330859273","1330859267","1330859281"],"photo_ids_order":["1330859267","1330859270","1330859273","1330859278","1330859281","1330859283"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/796ce057f2054337eb6ab06760adf5ba.jpg","text":"TemporaryFile(/tmp/multipartBody9117282843108946127asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660543248,"filename":"image_23012025_20_27_36_5180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2a40d0e8a3abaa9c9ce2f64592551a01.jpg","text":"TemporaryFile(/tmp/multipartBody6926768055852695056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660543248,"filename":"image_23012025_20_27_25_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/078a3c5e15cd71ee736ed536a0db75f9.jpg","text":"TemporaryFile(/tmp/multipartBody312560113082077433asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660543248,"filename":"image_23012025_20_27_48_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b3f08660046652f1e7b80a2889a98062.jpg","text":"TemporaryFile(/tmp/multipartBody7472390755003945619asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660543248,"filename":"image_23012025_20_27_42_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/92054ce03d9c233a00f08cd7ecaece07.jpg","text":"TemporaryFile(/tmp/multipartBody4516640727868716978asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660543248,"filename":"image_23012025_20_27_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c131980c5f74771ded1fc501678b0be7.jpg","text":"TemporaryFile(/tmp/multipartBody2756673630315594091asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660543248,"filename":"image_23012025_20_27_31_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330859273","file1":"1330859270","file0":"1330859267","file4":"1330859281","file5":"1330859283","file3":"1330859278"},"map_files_photo_id_array":[{"photo_id":"1330859283","filename":"file5"},{"photo_id":"1330859273","filename":"file2"},{"photo_id":"1330859281","filename":"file4"},{"photo_id":"1330859270","filename":"file1"},{"photo_id":"1330859267","filename":"file0"},{"photo_id":"1330859278","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330859278":["hashtag1","hashtag2"]},{"1330859283":["hashtag1","hashtag2"]},{"1330859270":["hashtag1","hashtag2"]},{"1330859273":["hashtag1","hashtag2"]},{"1330859267":["hashtag1","hashtag2"]},{"1330859281":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330859278, 1330859283, 1330859270, 1330859273, 1330859267, 1330859281)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.356318473815918 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:29:03.734541
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/28/image_23012025_20_28_55_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/20/28/image_23012025_20_28_48_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/28/image_23012025_20_28_42_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/20/28/image_23012025_20_28_36_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/20/28/image_23012025_20_28_31_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/28/image_23012025_20_28_25_6191.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/28/image_23012025_20_28_55_6190.jpg', '/home/nano/Desktop/images/23012025/20/28/image_23012025_20_28_48_6188.jpg', '/home/nano/Desktop/images/23012025/20/28/image_23012025_20_28_42_6186.jpg', '/home/nano/Desktop/images/23012025/20/28/image_23012025_20_28_36_5179.jpg', '/home/nano/Desktop/images/23012025/20/28/image_23012025_20_28_31_6188.jpg', '/home/nano/Desktop/images/23012025/20/28/image_23012025_20_28_25_6191.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/28/image_23012025_20_28_55_6190.jpg
/home/nano/Desktop/images/23012025/20/28/image_23012025_20_28_48_6188.jpg
/home/nano/Desktop/images/23012025/20/28/image_23012025_20_28_42_6186.jpg
/home/nano/Desktop/images/23012025/20/28/image_23012025_20_28_36_5179.jpg
/home/nano/Desktop/images/23012025/20/28/image_23012025_20_28_31_6188.jpg
/home/nano/Desktop/images/23012025/20/28/image_23012025_20_28_25_6191.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330859332","1330859340","1330859343","1330859352","1330859336","1330859324"],"photo_ids_order":["1330859324","1330859332","1330859336","1330859340","1330859343","1330859352"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e0c031009a7050400fe512a3b566c7a4.jpg","text":"TemporaryFile(/tmp/multipartBody7942750473452911521asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660604090,"filename":"image_23012025_20_28_48_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c183824422acf69a3fa4ea017874b585.jpg","text":"TemporaryFile(/tmp/multipartBody1183178711810977495asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660604090,"filename":"image_23012025_20_28_36_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/77bfa498d6b5a4093e9af49ea3d0529d.jpg","text":"TemporaryFile(/tmp/multipartBody6225776078755395434asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660604090,"filename":"image_23012025_20_28_31_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cfe18ed98c918734613c7b2b3341de0d.jpg","text":"TemporaryFile(/tmp/multipartBody6658719141798935202asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660604090,"filename":"image_23012025_20_28_25_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c871aa03d15335865eae05997e1b424b.jpg","text":"TemporaryFile(/tmp/multipartBody5905297282667153446asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660604090,"filename":"image_23012025_20_28_42_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f82a6370905fea7f5b7396e367d43668.jpg","text":"TemporaryFile(/tmp/multipartBody4251806676358729717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660604090,"filename":"image_23012025_20_28_55_6190.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330859336","file1":"1330859332","file0":"1330859324","file4":"1330859343","file5":"1330859352","file3":"1330859340"},"map_files_photo_id_array":[{"photo_id":"1330859352","filename":"file5"},{"photo_id":"1330859336","filename":"file2"},{"photo_id":"1330859343","filename":"file4"},{"photo_id":"1330859332","filename":"file1"},{"photo_id":"1330859324","filename":"file0"},{"photo_id":"1330859340","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330859332":["hashtag1","hashtag2"]},{"1330859340":["hashtag1","hashtag2"]},{"1330859343":["hashtag1","hashtag2"]},{"1330859352":["hashtag1","hashtag2"]},{"1330859336":["hashtag1","hashtag2"]},{"1330859324":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330859332, 1330859340, 1330859343, 1330859352, 1330859336, 1330859324)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.018522262573242 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:30:03.277749
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_54_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_48_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_42_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_37_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_31_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_24_6189.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_54_6191.jpg', '/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_48_6188.jpg', '/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_42_5177.jpg', '/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_37_6187.jpg', '/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_31_6188.jpg', '/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_24_6189.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_54_6191.jpg
/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_48_6188.jpg
/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_42_5177.jpg
/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_37_6187.jpg
/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_31_6188.jpg
/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_24_6189.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330859407","1330859401","1330859397","1330859418","1330859412","1330859423"],"photo_ids_order":["1330859397","1330859401","1330859407","1330859412","1330859418","1330859423"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/aeff27b08a8facbbac29c09ec3a2a184.jpg","text":"TemporaryFile(/tmp/multipartBody590813257181296817asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660663739,"filename":"image_23012025_20_29_42_5177.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9ae98ecaf993e1e13774fbc785912924.jpg","text":"TemporaryFile(/tmp/multipartBody5383395821368225496asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660663739,"filename":"image_23012025_20_29_48_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7b6e2596659f7ae2ce5bd50149abb9a7.jpg","text":"TemporaryFile(/tmp/multipartBody6347924682410238119asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660663739,"filename":"image_23012025_20_29_54_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/de378d2f55ca18e130148487eb9da38f.jpg","text":"TemporaryFile(/tmp/multipartBody8159700152068688885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660663739,"filename":"image_23012025_20_29_31_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0a0df3a58dd3f90b1aaca2bcb03a2b6e.jpg","text":"TemporaryFile(/tmp/multipartBody4254828236147814668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660663739,"filename":"image_23012025_20_29_37_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/eac05b1fbc5866e657043cfdb62f21a0.jpg","text":"TemporaryFile(/tmp/multipartBody2833378141293016870asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660663739,"filename":"image_23012025_20_29_24_6189.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330859407","file1":"1330859401","file0":"1330859397","file4":"1330859418","file5":"1330859423","file3":"1330859412"},"map_files_photo_id_array":[{"photo_id":"1330859423","filename":"file5"},{"photo_id":"1330859407","filename":"file2"},{"photo_id":"1330859418","filename":"file4"},{"photo_id":"1330859401","filename":"file1"},{"photo_id":"1330859397","filename":"file0"},{"photo_id":"1330859412","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330859407":["hashtag1","hashtag2"]},{"1330859401":["hashtag1","hashtag2"]},{"1330859397":["hashtag1","hashtag2"]},{"1330859418":["hashtag1","hashtag2"]},{"1330859412":["hashtag1","hashtag2"]},{"1330859423":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330859407, 1330859401, 1330859397, 1330859418, 1330859412, 1330859423)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.871285915374756 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:31:03.477605
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/30/image_23012025_20_30_31_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/20/30/image_23012025_20_30_18_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/30/image_23012025_20_30_12_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/20/30/image_23012025_20_30_07_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/20/29/image_23012025_20_30_01_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_18_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/30/image_23012025_20_30_31_6192.jpg', '/home/nano/Desktop/images/23012025/20/30/image_23012025_20_30_18_6193.jpg', '/home/nano/Desktop/images/23012025/20/30/image_23012025_20_30_12_5187.jpg', '/home/nano/Desktop/images/23012025/20/30/image_23012025_20_30_07_6196.jpg', '/home/nano/Desktop/images/23012025/20/29/image_23012025_20_30_01_6196.jpg', '/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_18_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/30/image_23012025_20_30_31_6192.jpg
/home/nano/Desktop/images/23012025/20/30/image_23012025_20_30_18_6193.jpg
/home/nano/Desktop/images/23012025/20/30/image_23012025_20_30_12_5187.jpg
/home/nano/Desktop/images/23012025/20/30/image_23012025_20_30_07_6196.jpg
/home/nano/Desktop/images/23012025/20/29/image_23012025_20_30_01_6196.jpg
/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_18_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330859464","1330859454","1330859459","1330859450","1330859447","1330859444"],"photo_ids_order":["1330859444","1330859447","1330859450","1330859454","1330859459","1330859464"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0dc6eb7f4a92cbabc1fd643ca9cd23df.jpg","text":"TemporaryFile(/tmp/multipartBody6389642638458116511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660724075,"filename":"image_23012025_20_29_18_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ec794a67b630dda159272dbb5f30ec65.jpg","text":"TemporaryFile(/tmp/multipartBody8438336187937401251asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660724075,"filename":"image_23012025_20_30_07_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d753bafc5cc5d32ff2f6a930f84a0048.jpg","text":"TemporaryFile(/tmp/multipartBody4594301521354583500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660724075,"filename":"image_23012025_20_30_01_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6e74c515eb113a388c40b2bf1b2e0a21.jpg","text":"TemporaryFile(/tmp/multipartBody2898655505408490186asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660724075,"filename":"image_23012025_20_30_12_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6bff1647e584c2b65c12a7b0c66b22e9.jpg","text":"TemporaryFile(/tmp/multipartBody8875220385289143720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660724075,"filename":"image_23012025_20_30_18_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f7dd63a53982130ed77b35574dc43456.jpg","text":"TemporaryFile(/tmp/multipartBody8915726144040154010asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660724075,"filename":"image_23012025_20_30_31_6192.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330859450","file1":"1330859447","file0":"1330859444","file4":"1330859459","file5":"1330859464","file3":"1330859454"},"map_files_photo_id_array":[{"photo_id":"1330859464","filename":"file5"},{"photo_id":"1330859450","filename":"file2"},{"photo_id":"1330859459","filename":"file4"},{"photo_id":"1330859447","filename":"file1"},{"photo_id":"1330859444","filename":"file0"},{"photo_id":"1330859454","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330859464":["hashtag1","hashtag2"]},{"1330859454":["hashtag1","hashtag2"]},{"1330859459":["hashtag1","hashtag2"]},{"1330859450":["hashtag1","hashtag2"]},{"1330859447":["hashtag1","hashtag2"]},{"1330859444":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330859464, 1330859454, 1330859459, 1330859450, 1330859447, 1330859444)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.333375692367554 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:32:02.290462
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/31/image_23012025_20_31_43_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/31/image_23012025_20_31_24_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/30/image_23012025_20_30_48_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_12_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_06_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/20/28/image_23012025_20_29_01_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/31/image_23012025_20_31_43_6193.jpg', '/home/nano/Desktop/images/23012025/20/31/image_23012025_20_31_24_6193.jpg', '/home/nano/Desktop/images/23012025/20/30/image_23012025_20_30_48_6193.jpg', '/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_12_6189.jpg', '/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_06_5186.jpg', '/home/nano/Desktop/images/23012025/20/28/image_23012025_20_29_01_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/31/image_23012025_20_31_43_6193.jpg
/home/nano/Desktop/images/23012025/20/31/image_23012025_20_31_24_6193.jpg
/home/nano/Desktop/images/23012025/20/30/image_23012025_20_30_48_6193.jpg
/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_12_6189.jpg
/home/nano/Desktop/images/23012025/20/29/image_23012025_20_29_06_5186.jpg
/home/nano/Desktop/images/23012025/20/28/image_23012025_20_29_01_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330859548","1330859533","1330859553","1330859520","1330859544","1330859540"],"photo_ids_order":["1330859520","1330859533","1330859540","1330859544","1330859548","1330859553"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e8a703c89626be97cf50f6663364369f.jpg","text":"TemporaryFile(/tmp/multipartBody1953129405661832616asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660782792,"filename":"image_23012025_20_29_06_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6e6d91290a446af5e74e0fa235a54791.jpg","text":"TemporaryFile(/tmp/multipartBody4006436105538172020asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660782792,"filename":"image_23012025_20_31_24_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3a414a742ce5e354e0c250950cf11b75.jpg","text":"TemporaryFile(/tmp/multipartBody345161763766864327asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660782792,"filename":"image_23012025_20_29_01_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1d06c2494dfdba5b1615144d1cf674e2.jpg","text":"TemporaryFile(/tmp/multipartBody6999616954885791274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660782792,"filename":"image_23012025_20_31_43_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/de73caa2fe8766c55961333bc89bdc0f.jpg","text":"TemporaryFile(/tmp/multipartBody476810725856983689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660782792,"filename":"image_23012025_20_29_12_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/626ecb9e17a57357d65e820beea1009a.jpg","text":"TemporaryFile(/tmp/multipartBody873067214405395268asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660782792,"filename":"image_23012025_20_30_48_6193.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330859540","file1":"1330859533","file0":"1330859520","file4":"1330859548","file5":"1330859553","file3":"1330859544"},"map_files_photo_id_array":[{"photo_id":"1330859553","filename":"file5"},{"photo_id":"1330859540","filename":"file2"},{"photo_id":"1330859548","filename":"file4"},{"photo_id":"1330859533","filename":"file1"},{"photo_id":"1330859520","filename":"file0"},{"photo_id":"1330859544","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330859548":["hashtag1","hashtag2"]},{"1330859533":["hashtag1","hashtag2"]},{"1330859553":["hashtag1","hashtag2"]},{"1330859520":["hashtag1","hashtag2"]},{"1330859544":["hashtag1","hashtag2"]},{"1330859540":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330859548, 1330859533, 1330859553, 1330859520, 1330859544, 1330859540)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.410313844680786 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:33:02.613983
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/33/image_23012025_20_34_00_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/20/32/image_23012025_20_32_54_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/20/32/image_23012025_20_32_48_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/20/32/image_23012025_20_32_30_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/32/image_23012025_20_32_18_5208.jpg', 2), ('/home/nano/Desktop/images/23012025/20/32/image_23012025_20_32_13_6194.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/33/image_23012025_20_34_00_6195.jpg', '/home/nano/Desktop/images/23012025/20/32/image_23012025_20_32_54_6191.jpg', '/home/nano/Desktop/images/23012025/20/32/image_23012025_20_32_48_5184.jpg', '/home/nano/Desktop/images/23012025/20/32/image_23012025_20_32_30_6193.jpg', '/home/nano/Desktop/images/23012025/20/32/image_23012025_20_32_18_5208.jpg', '/home/nano/Desktop/images/23012025/20/32/image_23012025_20_32_13_6194.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/33/image_23012025_20_34_00_6195.jpg
/home/nano/Desktop/images/23012025/20/32/image_23012025_20_32_54_6191.jpg
/home/nano/Desktop/images/23012025/20/32/image_23012025_20_32_48_5184.jpg
/home/nano/Desktop/images/23012025/20/32/image_23012025_20_32_30_6193.jpg
/home/nano/Desktop/images/23012025/20/32/image_23012025_20_32_18_5208.jpg
/home/nano/Desktop/images/23012025/20/32/image_23012025_20_32_13_6194.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330859602","1330859604","1330859597","1330859606","1330859600","1330859603"],"photo_ids_order":["1330859597","1330859600","1330859602","1330859603","1330859604","1330859606"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9f925dfba5aea8bc6ebf5df7af55306c.jpg","text":"TemporaryFile(/tmp/multipartBody1882310819594240289asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660843098,"filename":"image_23012025_20_32_48_5184.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b04f0598d89c69cf5eeaa1b542449144.jpg","text":"TemporaryFile(/tmp/multipartBody1144298443423409449asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660843098,"filename":"image_23012025_20_32_18_5208.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6259e925be3116ddb6efd28e47251240.jpg","text":"TemporaryFile(/tmp/multipartBody826971807096908796asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660843098,"filename":"image_23012025_20_34_00_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/819af5ea33dd2670c8dc84a52f72f0f7.jpg","text":"TemporaryFile(/tmp/multipartBody8778007419575543011asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660843098,"filename":"image_23012025_20_32_13_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/929b7fb38a1fee9f908d138ee9e03f5d.jpg","text":"TemporaryFile(/tmp/multipartBody4077439100116181433asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660843098,"filename":"image_23012025_20_32_54_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9bd9119a9df628ad147b9598fa177f5f.jpg","text":"TemporaryFile(/tmp/multipartBody917457446706581974asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660843098,"filename":"image_23012025_20_32_30_6193.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330859602","file1":"1330859600","file0":"1330859597","file4":"1330859604","file5":"1330859606","file3":"1330859603"},"map_files_photo_id_array":[{"photo_id":"1330859606","filename":"file5"},{"photo_id":"1330859602","filename":"file2"},{"photo_id":"1330859604","filename":"file4"},{"photo_id":"1330859600","filename":"file1"},{"photo_id":"1330859597","filename":"file0"},{"photo_id":"1330859603","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330859602":["hashtag1","hashtag2"]},{"1330859604":["hashtag1","hashtag2"]},{"1330859597":["hashtag1","hashtag2"]},{"1330859606":["hashtag1","hashtag2"]},{"1330859600":["hashtag1","hashtag2"]},{"1330859603":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330859602, 1330859604, 1330859597, 1330859606, 1330859600, 1330859603)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.548611640930176 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:34:02.903132
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/33/image_23012025_20_33_48_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/20/33/image_23012025_20_33_43_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/20/33/image_23012025_20_33_37_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/33/image_23012025_20_33_30_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/20/33/image_23012025_20_33_24_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/20/33/image_23012025_20_33_18_5179.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/33/image_23012025_20_33_48_5178.jpg', '/home/nano/Desktop/images/23012025/20/33/image_23012025_20_33_43_6191.jpg', '/home/nano/Desktop/images/23012025/20/33/image_23012025_20_33_37_6193.jpg', '/home/nano/Desktop/images/23012025/20/33/image_23012025_20_33_30_6189.jpg', '/home/nano/Desktop/images/23012025/20/33/image_23012025_20_33_24_6189.jpg', '/home/nano/Desktop/images/23012025/20/33/image_23012025_20_33_18_5179.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/33/image_23012025_20_33_48_5178.jpg
/home/nano/Desktop/images/23012025/20/33/image_23012025_20_33_43_6191.jpg
/home/nano/Desktop/images/23012025/20/33/image_23012025_20_33_37_6193.jpg
/home/nano/Desktop/images/23012025/20/33/image_23012025_20_33_30_6189.jpg
/home/nano/Desktop/images/23012025/20/33/image_23012025_20_33_24_6189.jpg
/home/nano/Desktop/images/23012025/20/33/image_23012025_20_33_18_5179.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.3801844120025635 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:34:32.065574
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/34/image_23012025_20_34_54_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/20/34/image_23012025_20_34_49_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/34/image_23012025_20_34_43_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/20/34/image_23012025_20_34_36_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/34/image_23012025_20_34_30_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/34/image_23012025_20_34_24_5179.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/34/image_23012025_20_34_54_5178.jpg', '/home/nano/Desktop/images/23012025/20/34/image_23012025_20_34_49_6188.jpg', '/home/nano/Desktop/images/23012025/20/34/image_23012025_20_34_43_6187.jpg', '/home/nano/Desktop/images/23012025/20/34/image_23012025_20_34_36_6188.jpg', '/home/nano/Desktop/images/23012025/20/34/image_23012025_20_34_30_6188.jpg', '/home/nano/Desktop/images/23012025/20/34/image_23012025_20_34_24_5179.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/34/image_23012025_20_34_54_5178.jpg
/home/nano/Desktop/images/23012025/20/34/image_23012025_20_34_49_6188.jpg
/home/nano/Desktop/images/23012025/20/34/image_23012025_20_34_43_6187.jpg
/home/nano/Desktop/images/23012025/20/34/image_23012025_20_34_36_6188.jpg
/home/nano/Desktop/images/23012025/20/34/image_23012025_20_34_30_6188.jpg
/home/nano/Desktop/images/23012025/20/34/image_23012025_20_34_24_5179.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330859731","1330859710","1330859713","1330859707","1330859727","1330859721"],"photo_ids_order":["1330859707","1330859710","1330859713","1330859721","1330859727","1330859731"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/86e5c2792fa03a4c19a51b454a23e072.jpg","text":"TemporaryFile(/tmp/multipartBody1867325586754371210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660932488,"filename":"image_23012025_20_34_24_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2739ac15a4c2aec66878b2749646daa0.jpg","text":"TemporaryFile(/tmp/multipartBody4847974431940274388asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660932488,"filename":"image_23012025_20_34_49_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/55ad3f21394de3e683785074eccdc627.jpg","text":"TemporaryFile(/tmp/multipartBody4108112111888150805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660932488,"filename":"image_23012025_20_34_43_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f6a007ab4fbac1262620f108bc28d429.jpg","text":"TemporaryFile(/tmp/multipartBody6148743869241916484asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660932488,"filename":"image_23012025_20_34_54_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/122f22acde3013eb536c3d139b19320e.jpg","text":"TemporaryFile(/tmp/multipartBody6283857586659309620asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660932488,"filename":"image_23012025_20_34_30_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9fcba5c01a52f1302818c0c8701c1635.jpg","text":"TemporaryFile(/tmp/multipartBody4525534855964102301asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660932488,"filename":"image_23012025_20_34_36_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330859713","file1":"1330859710","file0":"1330859707","file4":"1330859727","file5":"1330859731","file3":"1330859721"},"map_files_photo_id_array":[{"photo_id":"1330859731","filename":"file5"},{"photo_id":"1330859713","filename":"file2"},{"photo_id":"1330859727","filename":"file4"},{"photo_id":"1330859710","filename":"file1"},{"photo_id":"1330859707","filename":"file0"},{"photo_id":"1330859721","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330859731":["hashtag1","hashtag2"]},{"1330859710":["hashtag1","hashtag2"]},{"1330859713":["hashtag1","hashtag2"]},{"1330859707":["hashtag1","hashtag2"]},{"1330859727":["hashtag1","hashtag2"]},{"1330859721":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330859731, 1330859710, 1330859713, 1330859707, 1330859727, 1330859721)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.336148738861084 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:35:32.132128
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_54_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_49_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_43_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_36_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_30_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_24_5182.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_54_5178.jpg', '/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_49_6187.jpg', '/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_43_6188.jpg', '/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_36_6190.jpg', '/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_30_6189.jpg', '/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_24_5182.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_54_5178.jpg
/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_49_6187.jpg
/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_43_6188.jpg
/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_36_6190.jpg
/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_30_6189.jpg
/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_24_5182.jpg
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330859902","1330859781","1330859766","1330860296","1330860120","1330860278"],"photo_ids_order":["1330859766","1330859781","1330859902","1330860120","1330860278","1330860296"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7b6afba637eaebe22fc7da8c008d9107.jpg","text":"TemporaryFile(/tmp/multipartBody6639141838678225058asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660992546,"filename":"image_23012025_20_35_43_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/453d2fa94b1c6b5d5967e1570290f067.jpg","text":"TemporaryFile(/tmp/multipartBody6464179895726534585asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660992546,"filename":"image_23012025_20_35_49_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0febccc0d162cde2e9784320dca4f84d.jpg","text":"TemporaryFile(/tmp/multipartBody3035153049165959865asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660992546,"filename":"image_23012025_20_35_54_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fec65945674b3f5830f47284f7d7f8d3.jpg","text":"TemporaryFile(/tmp/multipartBody7624636820878023895asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660992546,"filename":"image_23012025_20_35_24_5182.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ef179ba918dc76b6624801c76d602fd3.jpg","text":"TemporaryFile(/tmp/multipartBody751665115795836411asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660992546,"filename":"image_23012025_20_35_36_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/33b1747d42e61abcba1677cff2211586.jpg","text":"TemporaryFile(/tmp/multipartBody8639532835388183722asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737660992546,"filename":"image_23012025_20_35_30_6189.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330859902","file1":"1330859781","file0":"1330859766","file4":"1330860278","file5":"1330860296","file3":"1330860120"},"map_files_photo_id_array":[{"photo_id":"1330860296","filename":"file5"},{"photo_id":"1330859902","filename":"file2"},{"photo_id":"1330860278","filename":"file4"},{"photo_id":"1330859781","filename":"file1"},{"photo_id":"1330859766","filename":"file0"},{"photo_id":"1330860120","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330859902":["hashtag1","hashtag2"]},{"1330859781":["hashtag1","hashtag2"]},{"1330859766":["hashtag1","hashtag2"]},{"1330860296":["hashtag1","hashtag2"]},{"1330860120":["hashtag1","hashtag2"]},{"1330860278":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330859902, 1330859781, 1330859766, 1330860296, 1330860120, 1330860278)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.421151399612427 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:36:02.988303
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_19_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_13_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_06_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/20/34/image_23012025_20_35_00_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/20/34/image_23012025_20_34_19_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/20/34/image_23012025_20_34_13_6194.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_19_6187.jpg', '/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_13_6187.jpg', '/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_06_6201.jpg', '/home/nano/Desktop/images/23012025/20/34/image_23012025_20_35_00_6195.jpg', '/home/nano/Desktop/images/23012025/20/34/image_23012025_20_34_19_6186.jpg', '/home/nano/Desktop/images/23012025/20/34/image_23012025_20_34_13_6194.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_19_6187.jpg
/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_13_6187.jpg
/home/nano/Desktop/images/23012025/20/35/image_23012025_20_35_06_6201.jpg
/home/nano/Desktop/images/23012025/20/34/image_23012025_20_35_00_6195.jpg
/home/nano/Desktop/images/23012025/20/34/image_23012025_20_34_19_6186.jpg
/home/nano/Desktop/images/23012025/20/34/image_23012025_20_34_13_6194.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330860338","1330860317","1330860384","1330860322","1330860393","1330860332"],"photo_ids_order":["1330860317","1330860322","1330860332","1330860338","1330860384","1330860393"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5b69723d497d6b3fcdd0b8f474aa4f8a.jpg","text":"TemporaryFile(/tmp/multipartBody1543884981668788917asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661023469,"filename":"image_23012025_20_35_00_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/45fd457fd3fc980a38e2ca13bb855c54.jpg","text":"TemporaryFile(/tmp/multipartBody4684361162885296629asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661023469,"filename":"image_23012025_20_35_19_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9d40bbf464481e1ba9e7d5de54564fff.jpg","text":"TemporaryFile(/tmp/multipartBody4341673485682454760asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661023469,"filename":"image_23012025_20_34_19_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8a8f00b3adbe86df18f4b57554a6749f.jpg","text":"TemporaryFile(/tmp/multipartBody1159081513199188386asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661023469,"filename":"image_23012025_20_35_13_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5311f8ddd8ef808acdb694edbfc3bc56.jpg","text":"TemporaryFile(/tmp/multipartBody6280680791933207803asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661023469,"filename":"image_23012025_20_34_13_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/00969165bd1945399aa803910bff97be.jpg","text":"TemporaryFile(/tmp/multipartBody7646229306542287138asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661023469,"filename":"image_23012025_20_35_06_6201.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330860332","file1":"1330860322","file0":"1330860317","file4":"1330860384","file5":"1330860393","file3":"1330860338"},"map_files_photo_id_array":[{"photo_id":"1330860393","filename":"file5"},{"photo_id":"1330860332","filename":"file2"},{"photo_id":"1330860384","filename":"file4"},{"photo_id":"1330860322","filename":"file1"},{"photo_id":"1330860317","filename":"file0"},{"photo_id":"1330860338","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330860338":["hashtag1","hashtag2"]},{"1330860317":["hashtag1","hashtag2"]},{"1330860384":["hashtag1","hashtag2"]},{"1330860322":["hashtag1","hashtag2"]},{"1330860393":["hashtag1","hashtag2"]},{"1330860332":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330860338, 1330860317, 1330860384, 1330860322, 1330860393, 1330860332)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.21757483482361 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:37:02.848091
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/36/image_23012025_20_36_55_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/20/36/image_23012025_20_36_49_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/20/36/image_23012025_20_36_42_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/20/36/image_23012025_20_36_36_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/20/36/image_23012025_20_36_30_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/20/36/image_23012025_20_36_25_6189.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/36/image_23012025_20_36_55_6190.jpg', '/home/nano/Desktop/images/23012025/20/36/image_23012025_20_36_49_6190.jpg', '/home/nano/Desktop/images/23012025/20/36/image_23012025_20_36_42_6186.jpg', '/home/nano/Desktop/images/23012025/20/36/image_23012025_20_36_36_6190.jpg', '/home/nano/Desktop/images/23012025/20/36/image_23012025_20_36_30_5178.jpg', '/home/nano/Desktop/images/23012025/20/36/image_23012025_20_36_25_6189.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/36/image_23012025_20_36_55_6190.jpg
/home/nano/Desktop/images/23012025/20/36/image_23012025_20_36_49_6190.jpg
/home/nano/Desktop/images/23012025/20/36/image_23012025_20_36_42_6186.jpg
/home/nano/Desktop/images/23012025/20/36/image_23012025_20_36_36_6190.jpg
/home/nano/Desktop/images/23012025/20/36/image_23012025_20_36_30_5178.jpg
/home/nano/Desktop/images/23012025/20/36/image_23012025_20_36_25_6189.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330860718","1330860777","1330860762","1330860770","1330860752","1330860650"],"photo_ids_order":["1330860650","1330860718","1330860752","1330860762","1330860770","1330860777"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/805b15c332e831c684fb231e3c574559.jpg","text":"TemporaryFile(/tmp/multipartBody7780220101835644801asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661083455,"filename":"image_23012025_20_36_49_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/72d5639753ae391530e591ccd5634d12.jpg","text":"TemporaryFile(/tmp/multipartBody4463794887331949798asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661083455,"filename":"image_23012025_20_36_25_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/566f72e962cb6a2c2461d8ef45a992d8.jpg","text":"TemporaryFile(/tmp/multipartBody6017487929852281778asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661083455,"filename":"image_23012025_20_36_36_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ebb96f87eeea67aeb9113edecf2f8fa7.jpg","text":"TemporaryFile(/tmp/multipartBody5187007223799381062asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661083455,"filename":"image_23012025_20_36_30_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9001c7b166c9c8f9867408eb5a6ab462.jpg","text":"TemporaryFile(/tmp/multipartBody7060362624515585412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661083455,"filename":"image_23012025_20_36_42_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e3bdff78bd1f12a59db56b158f85e4c7.jpg","text":"TemporaryFile(/tmp/multipartBody5980035823614747914asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661083455,"filename":"image_23012025_20_36_55_6190.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330860752","file1":"1330860718","file0":"1330860650","file4":"1330860770","file5":"1330860777","file3":"1330860762"},"map_files_photo_id_array":[{"photo_id":"1330860777","filename":"file5"},{"photo_id":"1330860752","filename":"file2"},{"photo_id":"1330860770","filename":"file4"},{"photo_id":"1330860718","filename":"file1"},{"photo_id":"1330860650","filename":"file0"},{"photo_id":"1330860762","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330860718":["hashtag1","hashtag2"]},{"1330860777":["hashtag1","hashtag2"]},{"1330860762":["hashtag1","hashtag2"]},{"1330860770":["hashtag1","hashtag2"]},{"1330860752":["hashtag1","hashtag2"]},{"1330860650":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330860718, 1330860777, 1330860762, 1330860770, 1330860752, 1330860650)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.46937084197998 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:38:02.892632
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/37/image_23012025_20_37_55_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/37/image_23012025_20_37_49_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/20/37/image_23012025_20_37_42_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/20/37/image_23012025_20_37_36_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/20/37/image_23012025_20_37_30_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/20/37/image_23012025_20_37_25_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/37/image_23012025_20_37_55_6193.jpg', '/home/nano/Desktop/images/23012025/20/37/image_23012025_20_37_49_6189.jpg', '/home/nano/Desktop/images/23012025/20/37/image_23012025_20_37_42_6189.jpg', '/home/nano/Desktop/images/23012025/20/37/image_23012025_20_37_36_6192.jpg', '/home/nano/Desktop/images/23012025/20/37/image_23012025_20_37_30_5184.jpg', '/home/nano/Desktop/images/23012025/20/37/image_23012025_20_37_25_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/37/image_23012025_20_37_55_6193.jpg
/home/nano/Desktop/images/23012025/20/37/image_23012025_20_37_49_6189.jpg
/home/nano/Desktop/images/23012025/20/37/image_23012025_20_37_42_6189.jpg
/home/nano/Desktop/images/23012025/20/37/image_23012025_20_37_36_6192.jpg
/home/nano/Desktop/images/23012025/20/37/image_23012025_20_37_30_5184.jpg
/home/nano/Desktop/images/23012025/20/37/image_23012025_20_37_25_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330860923","1330861153","1330860931","1330861018","1330860927","1330861148"],"photo_ids_order":["1330860923","1330860927","1330860931","1330861018","1330861148","1330861153"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6ed00f68f7e37b0e500ca8c879f2d90c.jpg","text":"TemporaryFile(/tmp/multipartBody8272663928302082240asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661143323,"filename":"image_23012025_20_37_55_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6f32ff9a324d7752f9ebf8eac137b02d.jpg","text":"TemporaryFile(/tmp/multipartBody1918154756707783341asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661143323,"filename":"image_23012025_20_37_25_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7e443312fd38ea37737369c8bfc34484.jpg","text":"TemporaryFile(/tmp/multipartBody4622753319784206261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661143323,"filename":"image_23012025_20_37_42_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/36443bacf465df365091dde5133a5af5.jpg","text":"TemporaryFile(/tmp/multipartBody7913338449484420765asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661143323,"filename":"image_23012025_20_37_36_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d70d1d60a42bb161d610e0a247441986.jpg","text":"TemporaryFile(/tmp/multipartBody7915723040438331276asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661143323,"filename":"image_23012025_20_37_49_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b157513ea00ff80632f4d5d5fb25183f.jpg","text":"TemporaryFile(/tmp/multipartBody3134860979926645531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661143323,"filename":"image_23012025_20_37_30_5184.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330860931","file1":"1330860927","file0":"1330860923","file4":"1330861148","file5":"1330861153","file3":"1330861018"},"map_files_photo_id_array":[{"photo_id":"1330861153","filename":"file5"},{"photo_id":"1330860931","filename":"file2"},{"photo_id":"1330861148","filename":"file4"},{"photo_id":"1330860927","filename":"file1"},{"photo_id":"1330860923","filename":"file0"},{"photo_id":"1330861018","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330860923":["hashtag1","hashtag2"]},{"1330861153":["hashtag1","hashtag2"]},{"1330860931":["hashtag1","hashtag2"]},{"1330861018":["hashtag1","hashtag2"]},{"1330860927":["hashtag1","hashtag2"]},{"1330861148":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330860923, 1330861153, 1330860931, 1330861018, 1330860927, 1330861148)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.515631198883057 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:39:03.525062
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/38/image_23012025_20_38_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/38/image_23012025_20_38_48_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/38/image_23012025_20_38_42_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/20/38/image_23012025_20_38_36_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/20/38/image_23012025_20_38_31_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/20/38/image_23012025_20_38_25_6189.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/38/image_23012025_20_38_55_6188.jpg', '/home/nano/Desktop/images/23012025/20/38/image_23012025_20_38_48_6188.jpg', '/home/nano/Desktop/images/23012025/20/38/image_23012025_20_38_42_6187.jpg', '/home/nano/Desktop/images/23012025/20/38/image_23012025_20_38_36_5179.jpg', '/home/nano/Desktop/images/23012025/20/38/image_23012025_20_38_31_6189.jpg', '/home/nano/Desktop/images/23012025/20/38/image_23012025_20_38_25_6189.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/38/image_23012025_20_38_55_6188.jpg
/home/nano/Desktop/images/23012025/20/38/image_23012025_20_38_48_6188.jpg
/home/nano/Desktop/images/23012025/20/38/image_23012025_20_38_42_6187.jpg
/home/nano/Desktop/images/23012025/20/38/image_23012025_20_38_36_5179.jpg
/home/nano/Desktop/images/23012025/20/38/image_23012025_20_38_31_6189.jpg
/home/nano/Desktop/images/23012025/20/38/image_23012025_20_38_25_6189.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330861231","1330861225","1330861233","1330861227","1330861271","1330861229"],"photo_ids_order":["1330861225","1330861227","1330861229","1330861231","1330861233","1330861271"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/33d6dbf36c1e1d7064855a0c6eda7e59.jpg","text":"TemporaryFile(/tmp/multipartBody1186116369934084035asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661203976,"filename":"image_23012025_20_38_36_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/35612744e8bdb92d5d4365c353c2b752.jpg","text":"TemporaryFile(/tmp/multipartBody80639842550586066asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661203976,"filename":"image_23012025_20_38_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f2c6c0a3a5436669de8eb325e856d37b.jpg","text":"TemporaryFile(/tmp/multipartBody1696988929820013981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661203976,"filename":"image_23012025_20_38_31_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/318966e1876a009463381f4f5ada5c55.jpg","text":"TemporaryFile(/tmp/multipartBody1298165563985360085asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661203976,"filename":"image_23012025_20_38_48_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b3bbfb511f3bb0d571f8b7319745d183.jpg","text":"TemporaryFile(/tmp/multipartBody6816050843427935227asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661203976,"filename":"image_23012025_20_38_25_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f4c0a50a1a8e87391da2eab56827029e.jpg","text":"TemporaryFile(/tmp/multipartBody8595766558275086453asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661203976,"filename":"image_23012025_20_38_42_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330861229","file1":"1330861227","file0":"1330861225","file4":"1330861233","file5":"1330861271","file3":"1330861231"},"map_files_photo_id_array":[{"photo_id":"1330861271","filename":"file5"},{"photo_id":"1330861229","filename":"file2"},{"photo_id":"1330861233","filename":"file4"},{"photo_id":"1330861227","filename":"file1"},{"photo_id":"1330861225","filename":"file0"},{"photo_id":"1330861231","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330861231":["hashtag1","hashtag2"]},{"1330861225":["hashtag1","hashtag2"]},{"1330861233":["hashtag1","hashtag2"]},{"1330861227":["hashtag1","hashtag2"]},{"1330861271":["hashtag1","hashtag2"]},{"1330861229":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330861231, 1330861225, 1330861233, 1330861227, 1330861271, 1330861229)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.886005878448486 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:40:03.133847
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/39/image_23012025_20_39_55_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/39/image_23012025_20_39_48_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/20/39/image_23012025_20_39_42_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/39/image_23012025_20_39_36_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/20/39/image_23012025_20_39_31_6239.jpg', 2), ('/home/nano/Desktop/images/23012025/20/39/image_23012025_20_39_25_6192.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/39/image_23012025_20_39_55_6193.jpg', '/home/nano/Desktop/images/23012025/20/39/image_23012025_20_39_48_6186.jpg', '/home/nano/Desktop/images/23012025/20/39/image_23012025_20_39_42_6188.jpg', '/home/nano/Desktop/images/23012025/20/39/image_23012025_20_39_36_5178.jpg', '/home/nano/Desktop/images/23012025/20/39/image_23012025_20_39_31_6239.jpg', '/home/nano/Desktop/images/23012025/20/39/image_23012025_20_39_25_6192.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/39/image_23012025_20_39_55_6193.jpg
/home/nano/Desktop/images/23012025/20/39/image_23012025_20_39_48_6186.jpg
/home/nano/Desktop/images/23012025/20/39/image_23012025_20_39_42_6188.jpg
/home/nano/Desktop/images/23012025/20/39/image_23012025_20_39_36_5178.jpg
/home/nano/Desktop/images/23012025/20/39/image_23012025_20_39_31_6239.jpg
/home/nano/Desktop/images/23012025/20/39/image_23012025_20_39_25_6192.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330861492","1330861389","1330861440","1330861490","1330861484","1330861394"],"photo_ids_order":["1330861389","1330861394","1330861440","1330861484","1330861490","1330861492"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2f6e2cb1567bf4706b68c94c8d437c34.jpg","text":"TemporaryFile(/tmp/multipartBody9218759938642611184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661263534,"filename":"image_23012025_20_39_25_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cbf47758256ece41c592c2f8a295d0b8.jpg","text":"TemporaryFile(/tmp/multipartBody3087071995102589495asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661263534,"filename":"image_23012025_20_39_55_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/dfa13674790ae246fca694defeb7dec0.jpg","text":"TemporaryFile(/tmp/multipartBody5173175897591326406asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661263534,"filename":"image_23012025_20_39_42_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2d402208f3e2813abc176f4776e00e8f.jpg","text":"TemporaryFile(/tmp/multipartBody7648359765311614883asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661263534,"filename":"image_23012025_20_39_31_6239.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2d0c79a77ec644d2a5f9d552c17c43ef.jpg","text":"TemporaryFile(/tmp/multipartBody9056928539169162804asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661263534,"filename":"image_23012025_20_39_36_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6337a51e8ffb61866275f920d5b3a0e3.jpg","text":"TemporaryFile(/tmp/multipartBody2105977574432425639asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661263534,"filename":"image_23012025_20_39_48_6186.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330861440","file1":"1330861394","file0":"1330861389","file4":"1330861490","file5":"1330861492","file3":"1330861484"},"map_files_photo_id_array":[{"photo_id":"1330861492","filename":"file5"},{"photo_id":"1330861440","filename":"file2"},{"photo_id":"1330861490","filename":"file4"},{"photo_id":"1330861394","filename":"file1"},{"photo_id":"1330861389","filename":"file0"},{"photo_id":"1330861484","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330861492":["hashtag1","hashtag2"]},{"1330861389":["hashtag1","hashtag2"]},{"1330861440":["hashtag1","hashtag2"]},{"1330861490":["hashtag1","hashtag2"]},{"1330861484":["hashtag1","hashtag2"]},{"1330861394":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330861492, 1330861389, 1330861440, 1330861490, 1330861484, 1330861394)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.786202669143677 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:41:03.617114
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/40/image_23012025_20_40_54_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/20/40/image_23012025_20_40_48_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/20/40/image_23012025_20_40_42_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/20/40/image_23012025_20_40_37_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/40/image_23012025_20_40_31_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/40/image_23012025_20_40_25_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/40/image_23012025_20_40_54_6190.jpg', '/home/nano/Desktop/images/23012025/20/40/image_23012025_20_40_48_6189.jpg', '/home/nano/Desktop/images/23012025/20/40/image_23012025_20_40_42_5177.jpg', '/home/nano/Desktop/images/23012025/20/40/image_23012025_20_40_37_6188.jpg', '/home/nano/Desktop/images/23012025/20/40/image_23012025_20_40_31_6188.jpg', '/home/nano/Desktop/images/23012025/20/40/image_23012025_20_40_25_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/40/image_23012025_20_40_54_6190.jpg
/home/nano/Desktop/images/23012025/20/40/image_23012025_20_40_48_6189.jpg
/home/nano/Desktop/images/23012025/20/40/image_23012025_20_40_42_5177.jpg
/home/nano/Desktop/images/23012025/20/40/image_23012025_20_40_37_6188.jpg
/home/nano/Desktop/images/23012025/20/40/image_23012025_20_40_31_6188.jpg
/home/nano/Desktop/images/23012025/20/40/image_23012025_20_40_25_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330861645","1330861633","1330861642","1330861676","1330861637","1330861681"],"photo_ids_order":["1330861633","1330861637","1330861642","1330861645","1330861676","1330861681"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b65c8e8895216b4e1795d59459cdd8b9.jpg","text":"TemporaryFile(/tmp/multipartBody4570851288957834504asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661324016,"filename":"image_23012025_20_40_37_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fe8eb03471c5916ab2f23a7c9f86b735.jpg","text":"TemporaryFile(/tmp/multipartBody2239396812751889258asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661324016,"filename":"image_23012025_20_40_54_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/10e8743a1b04e27e6f2b53f69ebe34ff.jpg","text":"TemporaryFile(/tmp/multipartBody8327725923607741330asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661324016,"filename":"image_23012025_20_40_42_5177.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/63b46ebdb117d72ec6fbc8e88050dafe.jpg","text":"TemporaryFile(/tmp/multipartBody911961324317905862asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661324016,"filename":"image_23012025_20_40_31_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7db6857c5de80c5fb59c53e38614cfb9.jpg","text":"TemporaryFile(/tmp/multipartBody1757006591835970034asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661324016,"filename":"image_23012025_20_40_48_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/882f199db89368943dd1c382668596c6.jpg","text":"TemporaryFile(/tmp/multipartBody5540091169095873043asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661324016,"filename":"image_23012025_20_40_25_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330861642","file1":"1330861637","file0":"1330861633","file4":"1330861676","file5":"1330861681","file3":"1330861645"},"map_files_photo_id_array":[{"photo_id":"1330861681","filename":"file5"},{"photo_id":"1330861642","filename":"file2"},{"photo_id":"1330861676","filename":"file4"},{"photo_id":"1330861637","filename":"file1"},{"photo_id":"1330861633","filename":"file0"},{"photo_id":"1330861645","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330861645":["hashtag1","hashtag2"]},{"1330861633":["hashtag1","hashtag2"]},{"1330861642":["hashtag1","hashtag2"]},{"1330861676":["hashtag1","hashtag2"]},{"1330861637":["hashtag1","hashtag2"]},{"1330861681":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330861645, 1330861633, 1330861642, 1330861676, 1330861637, 1330861681)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.419221878051758 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:42:02.311477
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/41/image_23012025_20_41_54_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/20/41/image_23012025_20_41_48_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/20/41/image_23012025_20_41_42_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/20/41/image_23012025_20_41_37_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/20/41/image_23012025_20_41_31_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/20/41/image_23012025_20_41_24_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/41/image_23012025_20_41_54_6196.jpg', '/home/nano/Desktop/images/23012025/20/41/image_23012025_20_41_48_6187.jpg', '/home/nano/Desktop/images/23012025/20/41/image_23012025_20_41_42_5178.jpg', '/home/nano/Desktop/images/23012025/20/41/image_23012025_20_41_37_6187.jpg', '/home/nano/Desktop/images/23012025/20/41/image_23012025_20_41_31_6187.jpg', '/home/nano/Desktop/images/23012025/20/41/image_23012025_20_41_24_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/41/image_23012025_20_41_54_6196.jpg
/home/nano/Desktop/images/23012025/20/41/image_23012025_20_41_48_6187.jpg
/home/nano/Desktop/images/23012025/20/41/image_23012025_20_41_42_5178.jpg
/home/nano/Desktop/images/23012025/20/41/image_23012025_20_41_37_6187.jpg
/home/nano/Desktop/images/23012025/20/41/image_23012025_20_41_31_6187.jpg
/home/nano/Desktop/images/23012025/20/41/image_23012025_20_41_24_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330861750","1330861726","1330861764","1330861754","1330861757","1330861768"],"photo_ids_order":["1330861726","1330861750","1330861754","1330861757","1330861764","1330861768"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/04b369f849a64a47de6274f1157cc755.jpg","text":"TemporaryFile(/tmp/multipartBody9202157441968023903asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661382710,"filename":"image_23012025_20_41_48_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4fe35e21435d4d7775ce10a65c4667a4.jpg","text":"TemporaryFile(/tmp/multipartBody4243131498983709980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661382710,"filename":"image_23012025_20_41_54_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c35a0eb0a87ed3327aaf3148b17f34f1.jpg","text":"TemporaryFile(/tmp/multipartBody2726427360784465421asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661382710,"filename":"image_23012025_20_41_31_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9f1c09bc5490596a1944c697ec4c0dbe.jpg","text":"TemporaryFile(/tmp/multipartBody2178557763194629005asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661382710,"filename":"image_23012025_20_41_42_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0048ad77745d0e5200340d5c28246591.jpg","text":"TemporaryFile(/tmp/multipartBody3025309346057283857asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661382710,"filename":"image_23012025_20_41_37_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ee6ddbd36c36e6d040f9b246a3418321.jpg","text":"TemporaryFile(/tmp/multipartBody8780971028270925878asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661382710,"filename":"image_23012025_20_41_24_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330861754","file1":"1330861750","file0":"1330861726","file4":"1330861764","file5":"1330861768","file3":"1330861757"},"map_files_photo_id_array":[{"photo_id":"1330861768","filename":"file5"},{"photo_id":"1330861754","filename":"file2"},{"photo_id":"1330861764","filename":"file4"},{"photo_id":"1330861750","filename":"file1"},{"photo_id":"1330861726","filename":"file0"},{"photo_id":"1330861757","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330861750":["hashtag1","hashtag2"]},{"1330861726":["hashtag1","hashtag2"]},{"1330861764":["hashtag1","hashtag2"]},{"1330861754":["hashtag1","hashtag2"]},{"1330861757":["hashtag1","hashtag2"]},{"1330861768":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330861750, 1330861726, 1330861764, 1330861754, 1330861757, 1330861768)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.53156781196594 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:43:02.689732
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/43/image_23012025_20_44_00_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/20/42/image_23012025_20_42_54_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/42/image_23012025_20_42_48_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/20/42/image_23012025_20_42_43_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/20/42/image_23012025_20_42_37_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/20/42/image_23012025_20_42_31_6190.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/43/image_23012025_20_44_00_6194.jpg', '/home/nano/Desktop/images/23012025/20/42/image_23012025_20_42_54_6193.jpg', '/home/nano/Desktop/images/23012025/20/42/image_23012025_20_42_48_5181.jpg', '/home/nano/Desktop/images/23012025/20/42/image_23012025_20_42_43_6191.jpg', '/home/nano/Desktop/images/23012025/20/42/image_23012025_20_42_37_6190.jpg', '/home/nano/Desktop/images/23012025/20/42/image_23012025_20_42_31_6190.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/43/image_23012025_20_44_00_6194.jpg
/home/nano/Desktop/images/23012025/20/42/image_23012025_20_42_54_6193.jpg
/home/nano/Desktop/images/23012025/20/42/image_23012025_20_42_48_5181.jpg
/home/nano/Desktop/images/23012025/20/42/image_23012025_20_42_43_6191.jpg
/home/nano/Desktop/images/23012025/20/42/image_23012025_20_42_37_6190.jpg
/home/nano/Desktop/images/23012025/20/42/image_23012025_20_42_31_6190.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330861882","1330861879","1330861884","1330861883","1330861865","1330861885"],"photo_ids_order":["1330861865","1330861879","1330861882","1330861883","1330861884","1330861885"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d513c7dba2191b046b3c602d851b5c1d.jpg","text":"TemporaryFile(/tmp/multipartBody3289179548097323303asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661443133,"filename":"image_23012025_20_42_48_5181.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cf48783ea37d1979e979b805163112de.jpg","text":"TemporaryFile(/tmp/multipartBody7772585669376619433asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661443133,"filename":"image_23012025_20_42_54_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4d77769449cd7b296271a2a431c9a4e6.jpg","text":"TemporaryFile(/tmp/multipartBody3325957461004750673asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661443133,"filename":"image_23012025_20_42_37_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6eba0d2e2885ceb02b9721154a6e3af3.jpg","text":"TemporaryFile(/tmp/multipartBody4998607835758953556asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661443133,"filename":"image_23012025_20_42_43_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/34045a016dbb9e13fec2e33a4fc82075.jpg","text":"TemporaryFile(/tmp/multipartBody2764517020248378047asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661443133,"filename":"image_23012025_20_44_00_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0021fc2d8823d6e375eaa12b9242853b.jpg","text":"TemporaryFile(/tmp/multipartBody1284195179275742358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661443133,"filename":"image_23012025_20_42_31_6190.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330861882","file1":"1330861879","file0":"1330861865","file4":"1330861884","file5":"1330861885","file3":"1330861883"},"map_files_photo_id_array":[{"photo_id":"1330861885","filename":"file5"},{"photo_id":"1330861882","filename":"file2"},{"photo_id":"1330861884","filename":"file4"},{"photo_id":"1330861879","filename":"file1"},{"photo_id":"1330861865","filename":"file0"},{"photo_id":"1330861883","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330861882":["hashtag1","hashtag2"]},{"1330861879":["hashtag1","hashtag2"]},{"1330861884":["hashtag1","hashtag2"]},{"1330861883":["hashtag1","hashtag2"]},{"1330861865":["hashtag1","hashtag2"]},{"1330861885":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330861882, 1330861879, 1330861884, 1330861883, 1330861865, 1330861885)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.647027015686035 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:44:03.005046
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_48_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_43_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_37_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_30_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_24_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_18_5185.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_48_5179.jpg', '/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_43_6193.jpg', '/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_37_6193.jpg', '/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_30_6191.jpg', '/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_24_6191.jpg', '/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_18_5185.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_48_5179.jpg
/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_43_6193.jpg
/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_37_6193.jpg
/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_30_6191.jpg
/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_24_6191.jpg
/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_18_5185.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.3864288330078125 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:44:32.045792
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_54_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_48_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_43_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_37_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_30_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_24_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_54_6193.jpg', '/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_48_5184.jpg', '/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_43_6191.jpg', '/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_37_6188.jpg', '/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_30_6188.jpg', '/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_24_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_54_6193.jpg
/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_48_5184.jpg
/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_43_6191.jpg
/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_37_6188.jpg
/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_30_6188.jpg
/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_24_6188.jpg
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330861948","1330861942","1330861939","1330861935","1330861937","1330861946"],"photo_ids_order":["1330861935","1330861937","1330861939","1330861942","1330861946","1330861948"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/eb904d20b383795d8432a63baa08e7b8.jpg","text":"TemporaryFile(/tmp/multipartBody5553995606955572617asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661532442,"filename":"image_23012025_20_44_24_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6561a686bd05ca00d5d6b11df9db14fe.jpg","text":"TemporaryFile(/tmp/multipartBody3180460168003970506asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661532442,"filename":"image_23012025_20_44_37_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/58693934ee156eb8453e28b91a423cd1.jpg","text":"TemporaryFile(/tmp/multipartBody6867444464354793826asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661532442,"filename":"image_23012025_20_44_43_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cbad360ebc17ed5eddca87ae8668ffd5.jpg","text":"TemporaryFile(/tmp/multipartBody2069904726729949907asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661532442,"filename":"image_23012025_20_44_54_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a9f7f9d28f241800a841077460ff13f6.jpg","text":"TemporaryFile(/tmp/multipartBody4818351538752091862asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661532442,"filename":"image_23012025_20_44_48_5184.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e7e80ddb204f3581be9539ecaff75eea.jpg","text":"TemporaryFile(/tmp/multipartBody3420383799098937773asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661532442,"filename":"image_23012025_20_44_30_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330861939","file1":"1330861937","file0":"1330861935","file4":"1330861946","file5":"1330861948","file3":"1330861942"},"map_files_photo_id_array":[{"photo_id":"1330861948","filename":"file5"},{"photo_id":"1330861939","filename":"file2"},{"photo_id":"1330861946","filename":"file4"},{"photo_id":"1330861937","filename":"file1"},{"photo_id":"1330861935","filename":"file0"},{"photo_id":"1330861942","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330861948":["hashtag1","hashtag2"]},{"1330861942":["hashtag1","hashtag2"]},{"1330861939":["hashtag1","hashtag2"]},{"1330861935":["hashtag1","hashtag2"]},{"1330861937":["hashtag1","hashtag2"]},{"1330861946":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330861948, 1330861942, 1330861939, 1330861935, 1330861937, 1330861946)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.417924404144287 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:45:02.870360
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_18_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_13_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_07_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_54_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_48_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_43_6193.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_18_5179.jpg', '/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_13_6194.jpg', '/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_07_6198.jpg', '/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_54_6193.jpg', '/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_48_5179.jpg', '/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_43_6193.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_18_5179.jpg
/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_13_6194.jpg
/home/nano/Desktop/images/23012025/20/44/image_23012025_20_44_07_6198.jpg
/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_54_6193.jpg
/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_48_5179.jpg
/home/nano/Desktop/images/23012025/20/43/image_23012025_20_43_43_6193.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330861995","1330861983","1330861959","1330861988","1330861972","1330861966"],"photo_ids_order":["1330861959","1330861966","1330861972","1330861983","1330861988","1330861995"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/42206d9d5d9fa07fb372ab750c34358e.jpg","text":"TemporaryFile(/tmp/multipartBody3508877959932512358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661563361,"filename":"image_23012025_20_43_43_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2e102978bff256d02ef00bede10d7892.jpg","text":"TemporaryFile(/tmp/multipartBody2284616569425960164asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661563361,"filename":"image_23012025_20_43_54_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6b569edd3e50b6572ae57c6d3dca967c.jpg","text":"TemporaryFile(/tmp/multipartBody4656141771766319332asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661563361,"filename":"image_23012025_20_44_18_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/72cfc21e7ed76f22a6b1837a0ba21426.jpg","text":"TemporaryFile(/tmp/multipartBody5921252022588778231asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661563361,"filename":"image_23012025_20_43_48_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c73b2ec003629ae94aaeed09ac8560e2.jpg","text":"TemporaryFile(/tmp/multipartBody5987040493111498987asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661563361,"filename":"image_23012025_20_44_07_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5bf26ac6cbf634903afc6d98a289df70.jpg","text":"TemporaryFile(/tmp/multipartBody5480132681126438481asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661563361,"filename":"image_23012025_20_44_13_6194.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330861972","file1":"1330861966","file0":"1330861959","file4":"1330861988","file5":"1330861995","file3":"1330861983"},"map_files_photo_id_array":[{"photo_id":"1330861995","filename":"file5"},{"photo_id":"1330861972","filename":"file2"},{"photo_id":"1330861988","filename":"file4"},{"photo_id":"1330861966","filename":"file1"},{"photo_id":"1330861959","filename":"file0"},{"photo_id":"1330861983","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330861995":["hashtag1","hashtag2"]},{"1330861983":["hashtag1","hashtag2"]},{"1330861959":["hashtag1","hashtag2"]},{"1330861988":["hashtag1","hashtag2"]},{"1330861972":["hashtag1","hashtag2"]},{"1330861966":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330861995, 1330861983, 1330861959, 1330861988, 1330861972, 1330861966)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.93616533279419 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:46:02.752280
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/45/image_23012025_20_45_54_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/20/45/image_23012025_20_45_49_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/20/45/image_23012025_20_45_43_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/20/45/image_23012025_20_45_36_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/20/45/image_23012025_20_45_24_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/20/45/image_23012025_20_45_19_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/45/image_23012025_20_45_54_5184.jpg', '/home/nano/Desktop/images/23012025/20/45/image_23012025_20_45_49_6186.jpg', '/home/nano/Desktop/images/23012025/20/45/image_23012025_20_45_43_6192.jpg', '/home/nano/Desktop/images/23012025/20/45/image_23012025_20_45_36_6196.jpg', '/home/nano/Desktop/images/23012025/20/45/image_23012025_20_45_24_5186.jpg', '/home/nano/Desktop/images/23012025/20/45/image_23012025_20_45_19_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/45/image_23012025_20_45_54_5184.jpg
/home/nano/Desktop/images/23012025/20/45/image_23012025_20_45_49_6186.jpg
/home/nano/Desktop/images/23012025/20/45/image_23012025_20_45_43_6192.jpg
/home/nano/Desktop/images/23012025/20/45/image_23012025_20_45_36_6196.jpg
/home/nano/Desktop/images/23012025/20/45/image_23012025_20_45_24_5186.jpg
/home/nano/Desktop/images/23012025/20/45/image_23012025_20_45_19_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330862038","1330862026","1330862049","1330862043","1330862019","1330862033"],"photo_ids_order":["1330862019","1330862026","1330862033","1330862038","1330862043","1330862049"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e529b55e5700cd01baf26c103598769e.jpg","text":"TemporaryFile(/tmp/multipartBody6436531946371255546asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661623261,"filename":"image_23012025_20_45_36_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/94c48f9a87312ef947ba4e63f4c10001.jpg","text":"TemporaryFile(/tmp/multipartBody520531064614846512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661623261,"filename":"image_23012025_20_45_49_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e06bec00c71b75005e72ef9284b05ade.jpg","text":"TemporaryFile(/tmp/multipartBody6913199671145233844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661623261,"filename":"image_23012025_20_45_19_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7f3a7b0df87d57f21ec3e59c08b9a611.jpg","text":"TemporaryFile(/tmp/multipartBody6682683217405142006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661623261,"filename":"image_23012025_20_45_24_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1dcfb452b96e6f671f51836a1c1ce77d.jpg","text":"TemporaryFile(/tmp/multipartBody15642699618345611asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661623261,"filename":"image_23012025_20_45_54_5184.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ae5e4cd071c989f62a4f6cc5e07274bb.jpg","text":"TemporaryFile(/tmp/multipartBody6334127302373659902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661623261,"filename":"image_23012025_20_45_43_6192.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330862033","file1":"1330862026","file0":"1330862019","file4":"1330862043","file5":"1330862049","file3":"1330862038"},"map_files_photo_id_array":[{"photo_id":"1330862049","filename":"file5"},{"photo_id":"1330862033","filename":"file2"},{"photo_id":"1330862043","filename":"file4"},{"photo_id":"1330862026","filename":"file1"},{"photo_id":"1330862019","filename":"file0"},{"photo_id":"1330862038","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330862038":["hashtag1","hashtag2"]},{"1330862026":["hashtag1","hashtag2"]},{"1330862049":["hashtag1","hashtag2"]},{"1330862043":["hashtag1","hashtag2"]},{"1330862019":["hashtag1","hashtag2"]},{"1330862033":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330862038, 1330862026, 1330862049, 1330862043, 1330862019, 1330862033)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.33212876319885 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:47:02.869987
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/46/image_23012025_20_46_54_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/20/46/image_23012025_20_46_49_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/20/46/image_23012025_20_46_43_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/20/46/image_23012025_20_46_36_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/20/46/image_23012025_20_46_30_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/20/46/image_23012025_20_46_24_5191.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/46/image_23012025_20_46_54_5183.jpg', '/home/nano/Desktop/images/23012025/20/46/image_23012025_20_46_49_6194.jpg', '/home/nano/Desktop/images/23012025/20/46/image_23012025_20_46_43_6194.jpg', '/home/nano/Desktop/images/23012025/20/46/image_23012025_20_46_36_6191.jpg', '/home/nano/Desktop/images/23012025/20/46/image_23012025_20_46_30_6202.jpg', '/home/nano/Desktop/images/23012025/20/46/image_23012025_20_46_24_5191.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/46/image_23012025_20_46_54_5183.jpg
/home/nano/Desktop/images/23012025/20/46/image_23012025_20_46_49_6194.jpg
/home/nano/Desktop/images/23012025/20/46/image_23012025_20_46_43_6194.jpg
/home/nano/Desktop/images/23012025/20/46/image_23012025_20_46_36_6191.jpg
/home/nano/Desktop/images/23012025/20/46/image_23012025_20_46_30_6202.jpg
/home/nano/Desktop/images/23012025/20/46/image_23012025_20_46_24_5191.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330862200","1330862187","1330862178","1330862183","1330862191","1330862194"],"photo_ids_order":["1330862178","1330862183","1330862187","1330862191","1330862194","1330862200"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2d111eae8e1cb4e92fdaa377ed5c5185.jpg","text":"TemporaryFile(/tmp/multipartBody8699996755403593756asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661683372,"filename":"image_23012025_20_46_24_5191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/364b5756e432b0ca8fca0ee365136711.jpg","text":"TemporaryFile(/tmp/multipartBody6764754820473674131asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661683372,"filename":"image_23012025_20_46_43_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/aa8cbd3d5736b814d21802905dbdebd5.jpg","text":"TemporaryFile(/tmp/multipartBody3885175603721803298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661683372,"filename":"image_23012025_20_46_54_5183.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ebebbdd43e9007a6b99dfaad4b53a6b8.jpg","text":"TemporaryFile(/tmp/multipartBody1070290810449438626asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661683372,"filename":"image_23012025_20_46_49_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ba2643c480795716c84f4c6d25512699.jpg","text":"TemporaryFile(/tmp/multipartBody2780009626595679422asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661683372,"filename":"image_23012025_20_46_36_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/27414a244a1ae78e88672294749aa471.jpg","text":"TemporaryFile(/tmp/multipartBody2643891901380515801asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661683372,"filename":"image_23012025_20_46_30_6202.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330862187","file1":"1330862183","file0":"1330862178","file4":"1330862194","file5":"1330862200","file3":"1330862191"},"map_files_photo_id_array":[{"photo_id":"1330862200","filename":"file5"},{"photo_id":"1330862187","filename":"file2"},{"photo_id":"1330862194","filename":"file4"},{"photo_id":"1330862183","filename":"file1"},{"photo_id":"1330862178","filename":"file0"},{"photo_id":"1330862191","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330862200":["hashtag1","hashtag2"]},{"1330862187":["hashtag1","hashtag2"]},{"1330862178":["hashtag1","hashtag2"]},{"1330862183":["hashtag1","hashtag2"]},{"1330862191":["hashtag1","hashtag2"]},{"1330862194":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330862200, 1330862187, 1330862178, 1330862183, 1330862191, 1330862194)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.99138832092285 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:48:02.944765
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/47/image_23012025_20_47_49_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/20/47/image_23012025_20_47_43_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/20/47/image_23012025_20_47_36_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/20/47/image_23012025_20_47_30_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/20/47/image_23012025_20_47_24_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/20/47/image_23012025_20_47_19_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/47/image_23012025_20_47_49_6199.jpg', '/home/nano/Desktop/images/23012025/20/47/image_23012025_20_47_43_6203.jpg', '/home/nano/Desktop/images/23012025/20/47/image_23012025_20_47_36_6194.jpg', '/home/nano/Desktop/images/23012025/20/47/image_23012025_20_47_30_6202.jpg', '/home/nano/Desktop/images/23012025/20/47/image_23012025_20_47_24_5185.jpg', '/home/nano/Desktop/images/23012025/20/47/image_23012025_20_47_19_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/47/image_23012025_20_47_49_6199.jpg
/home/nano/Desktop/images/23012025/20/47/image_23012025_20_47_43_6203.jpg
/home/nano/Desktop/images/23012025/20/47/image_23012025_20_47_36_6194.jpg
/home/nano/Desktop/images/23012025/20/47/image_23012025_20_47_30_6202.jpg
/home/nano/Desktop/images/23012025/20/47/image_23012025_20_47_24_5185.jpg
/home/nano/Desktop/images/23012025/20/47/image_23012025_20_47_19_6197.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330862295","1330862267","1330862276","1330862281","1330862263","1330862272"],"photo_ids_order":["1330862263","1330862267","1330862272","1330862276","1330862281","1330862295"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e26e7a7a41ed29fb4c0422f8b686b4fd.jpg","text":"TemporaryFile(/tmp/multipartBody8592641777187871648asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661743583,"filename":"image_23012025_20_47_19_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/94dfb149d32a603fc7f4a373e03b99ef.jpg","text":"TemporaryFile(/tmp/multipartBody9124876549391212803asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661743583,"filename":"image_23012025_20_47_43_6203.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ba74d3a093d824e08594fa0952018bfc.jpg","text":"TemporaryFile(/tmp/multipartBody1629641619360881175asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661743583,"filename":"image_23012025_20_47_30_6202.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/99a855d280c9408ed9076ca21e28d86a.jpg","text":"TemporaryFile(/tmp/multipartBody503154662971768967asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661743583,"filename":"image_23012025_20_47_24_5185.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b785fda242d003bc71a6a2238a1ab77d.jpg","text":"TemporaryFile(/tmp/multipartBody5623201595030805419asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661743583,"filename":"image_23012025_20_47_49_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6fdd424f4818546e0560ff4ac0128be3.jpg","text":"TemporaryFile(/tmp/multipartBody390237994869578678asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661743583,"filename":"image_23012025_20_47_36_6194.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330862272","file1":"1330862267","file0":"1330862263","file4":"1330862281","file5":"1330862295","file3":"1330862276"},"map_files_photo_id_array":[{"photo_id":"1330862295","filename":"file5"},{"photo_id":"1330862272","filename":"file2"},{"photo_id":"1330862281","filename":"file4"},{"photo_id":"1330862267","filename":"file1"},{"photo_id":"1330862263","filename":"file0"},{"photo_id":"1330862276","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330862295":["hashtag1","hashtag2"]},{"1330862267":["hashtag1","hashtag2"]},{"1330862276":["hashtag1","hashtag2"]},{"1330862281":["hashtag1","hashtag2"]},{"1330862263":["hashtag1","hashtag2"]},{"1330862272":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330862295, 1330862267, 1330862276, 1330862281, 1330862263, 1330862272)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.49589252471924 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:49:03.658017
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/48/image_23012025_20_48_54_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/20/48/image_23012025_20_48_49_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/20/48/image_23012025_20_48_43_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/20/48/image_23012025_20_48_36_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/20/48/image_23012025_20_48_30_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/20/48/image_23012025_20_48_24_5186.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/48/image_23012025_20_48_54_5181.jpg', '/home/nano/Desktop/images/23012025/20/48/image_23012025_20_48_49_6194.jpg', '/home/nano/Desktop/images/23012025/20/48/image_23012025_20_48_43_6201.jpg', '/home/nano/Desktop/images/23012025/20/48/image_23012025_20_48_36_6194.jpg', '/home/nano/Desktop/images/23012025/20/48/image_23012025_20_48_30_6203.jpg', '/home/nano/Desktop/images/23012025/20/48/image_23012025_20_48_24_5186.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/48/image_23012025_20_48_54_5181.jpg
/home/nano/Desktop/images/23012025/20/48/image_23012025_20_48_49_6194.jpg
/home/nano/Desktop/images/23012025/20/48/image_23012025_20_48_43_6201.jpg
/home/nano/Desktop/images/23012025/20/48/image_23012025_20_48_36_6194.jpg
/home/nano/Desktop/images/23012025/20/48/image_23012025_20_48_30_6203.jpg
/home/nano/Desktop/images/23012025/20/48/image_23012025_20_48_24_5186.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330862370","1330862390","1330862375","1330862395","1330862383","1330862386"],"photo_ids_order":["1330862370","1330862375","1330862383","1330862386","1330862390","1330862395"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2cb191ef4a356d0a82d1a2ab9eef662d.jpg","text":"TemporaryFile(/tmp/multipartBody6881328071144570416asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661804269,"filename":"image_23012025_20_48_54_5181.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/717e910d7ac0306e55ef6f02ca004dbc.jpg","text":"TemporaryFile(/tmp/multipartBody7027243684300847624asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661804269,"filename":"image_23012025_20_48_30_6203.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/01b0e0b1304ec50ac81fdbe854502585.jpg","text":"TemporaryFile(/tmp/multipartBody8807701314253767273asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661804269,"filename":"image_23012025_20_48_49_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f2bd865a962eb25a08509e8a7684874f.jpg","text":"TemporaryFile(/tmp/multipartBody4091140020428989443asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661804269,"filename":"image_23012025_20_48_24_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/45082f0b11bd1237eb6aed80ada85371.jpg","text":"TemporaryFile(/tmp/multipartBody1673629980141972424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661804269,"filename":"image_23012025_20_48_43_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/81d4dfd972cffa81a3e0f900d4c3481f.jpg","text":"TemporaryFile(/tmp/multipartBody596826595673356692asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661804269,"filename":"image_23012025_20_48_36_6194.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330862383","file1":"1330862375","file0":"1330862370","file4":"1330862390","file5":"1330862395","file3":"1330862386"},"map_files_photo_id_array":[{"photo_id":"1330862395","filename":"file5"},{"photo_id":"1330862383","filename":"file2"},{"photo_id":"1330862390","filename":"file4"},{"photo_id":"1330862375","filename":"file1"},{"photo_id":"1330862370","filename":"file0"},{"photo_id":"1330862386","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330862370":["hashtag1","hashtag2"]},{"1330862390":["hashtag1","hashtag2"]},{"1330862375":["hashtag1","hashtag2"]},{"1330862395":["hashtag1","hashtag2"]},{"1330862383":["hashtag1","hashtag2"]},{"1330862386":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330862370, 1330862390, 1330862375, 1330862395, 1330862383, 1330862386)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.428175449371338 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:50:03.146659
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/49/image_23012025_20_49_49_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/20/49/image_23012025_20_49_43_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/49/image_23012025_20_49_36_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/20/49/image_23012025_20_49_30_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/20/49/image_23012025_20_49_24_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/20/49/image_23012025_20_49_19_6193.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/49/image_23012025_20_49_49_6196.jpg', '/home/nano/Desktop/images/23012025/20/49/image_23012025_20_49_43_6193.jpg', '/home/nano/Desktop/images/23012025/20/49/image_23012025_20_49_36_6194.jpg', '/home/nano/Desktop/images/23012025/20/49/image_23012025_20_49_30_6198.jpg', '/home/nano/Desktop/images/23012025/20/49/image_23012025_20_49_24_5189.jpg', '/home/nano/Desktop/images/23012025/20/49/image_23012025_20_49_19_6193.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/49/image_23012025_20_49_49_6196.jpg
/home/nano/Desktop/images/23012025/20/49/image_23012025_20_49_43_6193.jpg
/home/nano/Desktop/images/23012025/20/49/image_23012025_20_49_36_6194.jpg
/home/nano/Desktop/images/23012025/20/49/image_23012025_20_49_30_6198.jpg
/home/nano/Desktop/images/23012025/20/49/image_23012025_20_49_24_5189.jpg
/home/nano/Desktop/images/23012025/20/49/image_23012025_20_49_19_6193.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330862449","1330862463","1330862451","1330862439","1330862456","1330862444"],"photo_ids_order":["1330862439","1330862444","1330862449","1330862451","1330862456","1330862463"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/34453a8a97c516dfab9a2626c5d0f549.jpg","text":"TemporaryFile(/tmp/multipartBody7415056980950634575asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661863789,"filename":"image_23012025_20_49_36_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b32520ff412a5b90499d0fbd74374b47.jpg","text":"TemporaryFile(/tmp/multipartBody8466808129452168994asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661863789,"filename":"image_23012025_20_49_19_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/30c6956ec757af287a6b9a08ce185bca.jpg","text":"TemporaryFile(/tmp/multipartBody368220483734514161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661863789,"filename":"image_23012025_20_49_30_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a1058969a1ad9a324f5620690c6a1187.jpg","text":"TemporaryFile(/tmp/multipartBody3288773509125865356asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661863789,"filename":"image_23012025_20_49_49_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1b8b20aa9d8226a3dc3f4b2324bbfb5b.jpg","text":"TemporaryFile(/tmp/multipartBody5009646199325021953asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661863789,"filename":"image_23012025_20_49_24_5189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/37947709c22cac25185d57ed9a73178f.jpg","text":"TemporaryFile(/tmp/multipartBody1861262787844350678asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661863789,"filename":"image_23012025_20_49_43_6193.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330862449","file1":"1330862444","file0":"1330862439","file4":"1330862456","file5":"1330862463","file3":"1330862451"},"map_files_photo_id_array":[{"photo_id":"1330862463","filename":"file5"},{"photo_id":"1330862449","filename":"file2"},{"photo_id":"1330862456","filename":"file4"},{"photo_id":"1330862444","filename":"file1"},{"photo_id":"1330862439","filename":"file0"},{"photo_id":"1330862451","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330862449":["hashtag1","hashtag2"]},{"1330862463":["hashtag1","hashtag2"]},{"1330862451":["hashtag1","hashtag2"]},{"1330862439":["hashtag1","hashtag2"]},{"1330862456":["hashtag1","hashtag2"]},{"1330862444":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330862449, 1330862463, 1330862451, 1330862439, 1330862456, 1330862444)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.3953115940094 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:51:02.457013
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/50/image_23012025_20_50_55_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/20/50/image_23012025_20_50_49_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/20/50/image_23012025_20_50_42_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/50/image_23012025_20_50_36_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/50/image_23012025_20_50_30_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/20/50/image_23012025_20_50_24_5184.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/50/image_23012025_20_50_55_6197.jpg', '/home/nano/Desktop/images/23012025/20/50/image_23012025_20_50_49_6187.jpg', '/home/nano/Desktop/images/23012025/20/50/image_23012025_20_50_42_6188.jpg', '/home/nano/Desktop/images/23012025/20/50/image_23012025_20_50_36_6188.jpg', '/home/nano/Desktop/images/23012025/20/50/image_23012025_20_50_30_6191.jpg', '/home/nano/Desktop/images/23012025/20/50/image_23012025_20_50_24_5184.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/50/image_23012025_20_50_55_6197.jpg
/home/nano/Desktop/images/23012025/20/50/image_23012025_20_50_49_6187.jpg
/home/nano/Desktop/images/23012025/20/50/image_23012025_20_50_42_6188.jpg
/home/nano/Desktop/images/23012025/20/50/image_23012025_20_50_36_6188.jpg
/home/nano/Desktop/images/23012025/20/50/image_23012025_20_50_30_6191.jpg
/home/nano/Desktop/images/23012025/20/50/image_23012025_20_50_24_5184.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330862565","1330862582","1330862569","1330862578","1330862536","1330862551"],"photo_ids_order":["1330862536","1330862551","1330862565","1330862569","1330862578","1330862582"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c4843ae2d69f7ec034ca9a87f58dcbac.jpg","text":"TemporaryFile(/tmp/multipartBody2587028826747120500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661922844,"filename":"image_23012025_20_50_42_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5d9e114ab662915d27681e70796a1649.jpg","text":"TemporaryFile(/tmp/multipartBody2834268459553141580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661922844,"filename":"image_23012025_20_50_24_5184.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/db2a4f1d46f039264bd56f0ba3cb062a.jpg","text":"TemporaryFile(/tmp/multipartBody1686206341884674333asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661922844,"filename":"image_23012025_20_50_36_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/211a3af0b145fc737d8f34818020e29b.jpg","text":"TemporaryFile(/tmp/multipartBody2702088468043256026asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661922844,"filename":"image_23012025_20_50_30_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/97c095881c5fec6beb4ad4f8f2487047.jpg","text":"TemporaryFile(/tmp/multipartBody8232593711443296658asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661922844,"filename":"image_23012025_20_50_55_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e740e210a6e3a3aee067775673ca5981.jpg","text":"TemporaryFile(/tmp/multipartBody3954380753881339693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661922844,"filename":"image_23012025_20_50_49_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330862565","file1":"1330862551","file0":"1330862536","file4":"1330862578","file5":"1330862582","file3":"1330862569"},"map_files_photo_id_array":[{"photo_id":"1330862582","filename":"file5"},{"photo_id":"1330862565","filename":"file2"},{"photo_id":"1330862578","filename":"file4"},{"photo_id":"1330862551","filename":"file1"},{"photo_id":"1330862536","filename":"file0"},{"photo_id":"1330862569","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330862565":["hashtag1","hashtag2"]},{"1330862582":["hashtag1","hashtag2"]},{"1330862569":["hashtag1","hashtag2"]},{"1330862578":["hashtag1","hashtag2"]},{"1330862536":["hashtag1","hashtag2"]},{"1330862551":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330862565, 1330862582, 1330862569, 1330862578, 1330862536, 1330862551)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.911962509155273 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:52:02.403642
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/51/image_23012025_20_51_55_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/20/51/image_23012025_20_51_49_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/20/51/image_23012025_20_51_42_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/20/51/image_23012025_20_51_36_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/51/image_23012025_20_51_30_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/20/51/image_23012025_20_51_25_6189.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/51/image_23012025_20_51_55_6201.jpg', '/home/nano/Desktop/images/23012025/20/51/image_23012025_20_51_49_6189.jpg', '/home/nano/Desktop/images/23012025/20/51/image_23012025_20_51_42_6187.jpg', '/home/nano/Desktop/images/23012025/20/51/image_23012025_20_51_36_6193.jpg', '/home/nano/Desktop/images/23012025/20/51/image_23012025_20_51_30_5182.jpg', '/home/nano/Desktop/images/23012025/20/51/image_23012025_20_51_25_6189.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/51/image_23012025_20_51_55_6201.jpg
/home/nano/Desktop/images/23012025/20/51/image_23012025_20_51_49_6189.jpg
/home/nano/Desktop/images/23012025/20/51/image_23012025_20_51_42_6187.jpg
/home/nano/Desktop/images/23012025/20/51/image_23012025_20_51_36_6193.jpg
/home/nano/Desktop/images/23012025/20/51/image_23012025_20_51_30_5182.jpg
/home/nano/Desktop/images/23012025/20/51/image_23012025_20_51_25_6189.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330862649","1330862637","1330862645","1330862653","1330862641","1330862635"],"photo_ids_order":["1330862635","1330862637","1330862641","1330862645","1330862649","1330862653"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e2baa65045d64c729c247eded6fe6dde.jpg","text":"TemporaryFile(/tmp/multipartBody1213117612008968777asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661982951,"filename":"image_23012025_20_51_30_5182.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0815c40cfe2878851f74c637549b090f.jpg","text":"TemporaryFile(/tmp/multipartBody184565459373784927asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661982951,"filename":"image_23012025_20_51_49_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/facd54a966ea48b5634916486d7925ff.jpg","text":"TemporaryFile(/tmp/multipartBody1683515899992506635asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661982951,"filename":"image_23012025_20_51_36_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/396b0f4bd694edf06798d63c4d381f3f.jpg","text":"TemporaryFile(/tmp/multipartBody1221327620789328314asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661982951,"filename":"image_23012025_20_51_25_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/724a85361d1ee1db8c062c36b11a19b7.jpg","text":"TemporaryFile(/tmp/multipartBody4473742058435703726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661982951,"filename":"image_23012025_20_51_42_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5ccdc4ed4067cb2a186a98e6e115330f.jpg","text":"TemporaryFile(/tmp/multipartBody7491980095639627842asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737661982951,"filename":"image_23012025_20_51_55_6201.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330862641","file1":"1330862637","file0":"1330862635","file4":"1330862649","file5":"1330862653","file3":"1330862645"},"map_files_photo_id_array":[{"photo_id":"1330862653","filename":"file5"},{"photo_id":"1330862641","filename":"file2"},{"photo_id":"1330862649","filename":"file4"},{"photo_id":"1330862637","filename":"file1"},{"photo_id":"1330862635","filename":"file0"},{"photo_id":"1330862645","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330862649":["hashtag1","hashtag2"]},{"1330862637":["hashtag1","hashtag2"]},{"1330862645":["hashtag1","hashtag2"]},{"1330862653":["hashtag1","hashtag2"]},{"1330862641":["hashtag1","hashtag2"]},{"1330862635":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330862649, 1330862637, 1330862645, 1330862653, 1330862641, 1330862635)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.72932004928589 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:53:02.523603
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/52/image_23012025_20_52_55_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/20/52/image_23012025_20_52_49_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/20/52/image_23012025_20_52_42_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/20/52/image_23012025_20_52_36_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/52/image_23012025_20_52_30_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/20/52/image_23012025_20_52_25_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/52/image_23012025_20_52_55_6194.jpg', '/home/nano/Desktop/images/23012025/20/52/image_23012025_20_52_49_6198.jpg', '/home/nano/Desktop/images/23012025/20/52/image_23012025_20_52_42_6192.jpg', '/home/nano/Desktop/images/23012025/20/52/image_23012025_20_52_36_6188.jpg', '/home/nano/Desktop/images/23012025/20/52/image_23012025_20_52_30_5179.jpg', '/home/nano/Desktop/images/23012025/20/52/image_23012025_20_52_25_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/52/image_23012025_20_52_55_6194.jpg
/home/nano/Desktop/images/23012025/20/52/image_23012025_20_52_49_6198.jpg
/home/nano/Desktop/images/23012025/20/52/image_23012025_20_52_42_6192.jpg
/home/nano/Desktop/images/23012025/20/52/image_23012025_20_52_36_6188.jpg
/home/nano/Desktop/images/23012025/20/52/image_23012025_20_52_30_5179.jpg
/home/nano/Desktop/images/23012025/20/52/image_23012025_20_52_25_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330863420","1330863423","1330863308","1330862777","1330863055","1330863427"],"photo_ids_order":["1330862777","1330863055","1330863308","1330863420","1330863423","1330863427"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/87efc758bb9a8a83e70b9d8c37580eae.jpg","text":"TemporaryFile(/tmp/multipartBody4927728874898151599asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662043111,"filename":"image_23012025_20_52_36_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d4b54dee55bc93d3cffe3141b18382f1.jpg","text":"TemporaryFile(/tmp/multipartBody3064804805204393939asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662043111,"filename":"image_23012025_20_52_30_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5d98fd3af59ad15e0ae1c7ac3896fdf8.jpg","text":"TemporaryFile(/tmp/multipartBody6578328473388011156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662043111,"filename":"image_23012025_20_52_42_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e1699196ee15307193fcab37fda2fcd8.jpg","text":"TemporaryFile(/tmp/multipartBody6326053168541796893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662043111,"filename":"image_23012025_20_52_55_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5be8c1b2c72ced438c8c0ab2769e376b.jpg","text":"TemporaryFile(/tmp/multipartBody1862523949840646006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662043111,"filename":"image_23012025_20_52_49_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c70c97113fb55ee803d587d3d0e5af1f.jpg","text":"TemporaryFile(/tmp/multipartBody2327343664192136167asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662043111,"filename":"image_23012025_20_52_25_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330863308","file1":"1330863055","file0":"1330862777","file4":"1330863423","file5":"1330863427","file3":"1330863420"},"map_files_photo_id_array":[{"photo_id":"1330863427","filename":"file5"},{"photo_id":"1330863308","filename":"file2"},{"photo_id":"1330863423","filename":"file4"},{"photo_id":"1330863055","filename":"file1"},{"photo_id":"1330862777","filename":"file0"},{"photo_id":"1330863420","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330863420":["hashtag1","hashtag2"]},{"1330863423":["hashtag1","hashtag2"]},{"1330863308":["hashtag1","hashtag2"]},{"1330862777":["hashtag1","hashtag2"]},{"1330863055":["hashtag1","hashtag2"]},{"1330863427":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330863420, 1330863423, 1330863308, 1330862777, 1330863055, 1330863427)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.1831476688385 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:54:03.066524
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/53/image_23012025_20_54_01_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/53/image_23012025_20_53_48_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/53/image_23012025_20_53_42_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/20/53/image_23012025_20_53_36_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/20/53/image_23012025_20_53_31_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/53/image_23012025_20_53_25_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/53/image_23012025_20_54_01_6188.jpg', '/home/nano/Desktop/images/23012025/20/53/image_23012025_20_53_48_6188.jpg', '/home/nano/Desktop/images/23012025/20/53/image_23012025_20_53_42_6187.jpg', '/home/nano/Desktop/images/23012025/20/53/image_23012025_20_53_36_5179.jpg', '/home/nano/Desktop/images/23012025/20/53/image_23012025_20_53_31_6188.jpg', '/home/nano/Desktop/images/23012025/20/53/image_23012025_20_53_25_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/53/image_23012025_20_54_01_6188.jpg
/home/nano/Desktop/images/23012025/20/53/image_23012025_20_53_48_6188.jpg
/home/nano/Desktop/images/23012025/20/53/image_23012025_20_53_42_6187.jpg
/home/nano/Desktop/images/23012025/20/53/image_23012025_20_53_36_5179.jpg
/home/nano/Desktop/images/23012025/20/53/image_23012025_20_53_31_6188.jpg
/home/nano/Desktop/images/23012025/20/53/image_23012025_20_53_25_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330863486","1330863494","1330863461","1330863490","1330863483","1330863477"],"photo_ids_order":["1330863461","1330863477","1330863483","1330863486","1330863490","1330863494"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/334bed582cbf50f5820cff1979974b26.jpg","text":"TemporaryFile(/tmp/multipartBody3725544982694177962asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662103610,"filename":"image_23012025_20_53_36_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9d8db7eee8cc78ae7e8a22fca02e5a07.jpg","text":"TemporaryFile(/tmp/multipartBody3539953156110039346asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662103610,"filename":"image_23012025_20_53_25_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d6c933f6aafb9a75dea2ae383e5f111b.jpg","text":"TemporaryFile(/tmp/multipartBody2904369846698434132asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662103610,"filename":"image_23012025_20_54_01_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6bafd47df4c20c565b54bef409227e51.jpg","text":"TemporaryFile(/tmp/multipartBody5603335880181219924asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662103610,"filename":"image_23012025_20_53_31_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8fb62c344abadc1c4d5144015f7d6d7d.jpg","text":"TemporaryFile(/tmp/multipartBody8520131207269753931asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662103610,"filename":"image_23012025_20_53_42_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9cdb92f4619232a287120ec60733fa8f.jpg","text":"TemporaryFile(/tmp/multipartBody7921448161796211882asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662103610,"filename":"image_23012025_20_53_48_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330863483","file1":"1330863477","file0":"1330863461","file4":"1330863490","file5":"1330863494","file3":"1330863486"},"map_files_photo_id_array":[{"photo_id":"1330863494","filename":"file5"},{"photo_id":"1330863483","filename":"file2"},{"photo_id":"1330863490","filename":"file4"},{"photo_id":"1330863477","filename":"file1"},{"photo_id":"1330863461","filename":"file0"},{"photo_id":"1330863486","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330863486":["hashtag1","hashtag2"]},{"1330863494":["hashtag1","hashtag2"]},{"1330863461":["hashtag1","hashtag2"]},{"1330863490":["hashtag1","hashtag2"]},{"1330863483":["hashtag1","hashtag2"]},{"1330863477":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330863486, 1330863494, 1330863461, 1330863490, 1330863483, 1330863477)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.1062695980072 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:55:02.824761
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/54/image_23012025_20_54_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/54/image_23012025_20_54_49_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/54/image_23012025_20_54_42_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/20/54/image_23012025_20_54_36_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/20/54/image_23012025_20_54_30_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/20/54/image_23012025_20_54_25_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/54/image_23012025_20_54_55_6188.jpg', '/home/nano/Desktop/images/23012025/20/54/image_23012025_20_54_49_6188.jpg', '/home/nano/Desktop/images/23012025/20/54/image_23012025_20_54_42_6188.jpg', '/home/nano/Desktop/images/23012025/20/54/image_23012025_20_54_36_6190.jpg', '/home/nano/Desktop/images/23012025/20/54/image_23012025_20_54_30_5182.jpg', '/home/nano/Desktop/images/23012025/20/54/image_23012025_20_54_25_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/54/image_23012025_20_54_55_6188.jpg
/home/nano/Desktop/images/23012025/20/54/image_23012025_20_54_49_6188.jpg
/home/nano/Desktop/images/23012025/20/54/image_23012025_20_54_42_6188.jpg
/home/nano/Desktop/images/23012025/20/54/image_23012025_20_54_36_6190.jpg
/home/nano/Desktop/images/23012025/20/54/image_23012025_20_54_30_5182.jpg
/home/nano/Desktop/images/23012025/20/54/image_23012025_20_54_25_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330863981","1330864079","1330864070","1330863992","1330863996","1330864074"],"photo_ids_order":["1330863981","1330863992","1330863996","1330864070","1330864074","1330864079"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/77c6b617a147cd4064f928bb405e4d59.jpg","text":"TemporaryFile(/tmp/multipartBody8641709302676770226asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662163269,"filename":"image_23012025_20_54_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ae7c54a537d3a3d4af6c11d477c06732.jpg","text":"TemporaryFile(/tmp/multipartBody4930173696335225101asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662163269,"filename":"image_23012025_20_54_25_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/459b473232caf1306477006467b32c5d.jpg","text":"TemporaryFile(/tmp/multipartBody2760875779706443704asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662163269,"filename":"image_23012025_20_54_36_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/663765ecbc46486393934eb85b43c28c.jpg","text":"TemporaryFile(/tmp/multipartBody2708209601524521017asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662163269,"filename":"image_23012025_20_54_49_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/53e7347e2fc98d48b89a586e9e5573d8.jpg","text":"TemporaryFile(/tmp/multipartBody3849182039023740280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662163269,"filename":"image_23012025_20_54_42_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/89814293c23baf4273a822cde5660dd4.jpg","text":"TemporaryFile(/tmp/multipartBody7945021035999177651asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662163269,"filename":"image_23012025_20_54_30_5182.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330863996","file1":"1330863992","file0":"1330863981","file4":"1330864074","file5":"1330864079","file3":"1330864070"},"map_files_photo_id_array":[{"photo_id":"1330864079","filename":"file5"},{"photo_id":"1330863996","filename":"file2"},{"photo_id":"1330864074","filename":"file4"},{"photo_id":"1330863992","filename":"file1"},{"photo_id":"1330863981","filename":"file0"},{"photo_id":"1330864070","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330863981":["hashtag1","hashtag2"]},{"1330864079":["hashtag1","hashtag2"]},{"1330864070":["hashtag1","hashtag2"]},{"1330863992":["hashtag1","hashtag2"]},{"1330863996":["hashtag1","hashtag2"]},{"1330864074":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330863981, 1330864079, 1330864070, 1330863992, 1330863996, 1330864074)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.394981145858765 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:56:02.798700
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/55/image_23012025_20_55_55_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/20/55/image_23012025_20_55_49_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/20/55/image_23012025_20_55_42_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/20/55/image_23012025_20_55_36_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/20/55/image_23012025_20_55_30_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/20/55/image_23012025_20_55_25_6192.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/55/image_23012025_20_55_55_6192.jpg', '/home/nano/Desktop/images/23012025/20/55/image_23012025_20_55_49_6192.jpg', '/home/nano/Desktop/images/23012025/20/55/image_23012025_20_55_42_6189.jpg', '/home/nano/Desktop/images/23012025/20/55/image_23012025_20_55_36_6195.jpg', '/home/nano/Desktop/images/23012025/20/55/image_23012025_20_55_30_5179.jpg', '/home/nano/Desktop/images/23012025/20/55/image_23012025_20_55_25_6192.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/55/image_23012025_20_55_55_6192.jpg
/home/nano/Desktop/images/23012025/20/55/image_23012025_20_55_49_6192.jpg
/home/nano/Desktop/images/23012025/20/55/image_23012025_20_55_42_6189.jpg
/home/nano/Desktop/images/23012025/20/55/image_23012025_20_55_36_6195.jpg
/home/nano/Desktop/images/23012025/20/55/image_23012025_20_55_30_5179.jpg
/home/nano/Desktop/images/23012025/20/55/image_23012025_20_55_25_6192.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330864209","1330864421","1330864130","1330864424","1330864399","1330864134"],"photo_ids_order":["1330864130","1330864134","1330864209","1330864399","1330864421","1330864424"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/37fecae36d4b6b717dfcc02c0437a0d5.jpg","text":"TemporaryFile(/tmp/multipartBody7809469294397138982asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662223211,"filename":"image_23012025_20_55_42_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/396a4ab7aaa77200b48af231c3efbfcb.jpg","text":"TemporaryFile(/tmp/multipartBody8051809461513047103asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662223211,"filename":"image_23012025_20_55_30_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bf2297b2abea6bc50d5652689824455d.jpg","text":"TemporaryFile(/tmp/multipartBody7425100801150692218asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662223211,"filename":"image_23012025_20_55_55_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c4d39673e042b3f888f75c2d17b8bcea.jpg","text":"TemporaryFile(/tmp/multipartBody8659466888014523758asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662223211,"filename":"image_23012025_20_55_25_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/af33eaab14baeb693016fdb20351067d.jpg","text":"TemporaryFile(/tmp/multipartBody7311042936565215512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662223211,"filename":"image_23012025_20_55_36_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0e966f2d22487238abf368af1d34962c.jpg","text":"TemporaryFile(/tmp/multipartBody3411137180281170111asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662223211,"filename":"image_23012025_20_55_49_6192.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330864209","file1":"1330864134","file0":"1330864130","file4":"1330864421","file5":"1330864424","file3":"1330864399"},"map_files_photo_id_array":[{"photo_id":"1330864424","filename":"file5"},{"photo_id":"1330864209","filename":"file2"},{"photo_id":"1330864421","filename":"file4"},{"photo_id":"1330864134","filename":"file1"},{"photo_id":"1330864130","filename":"file0"},{"photo_id":"1330864399","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330864209":["hashtag1","hashtag2"]},{"1330864421":["hashtag1","hashtag2"]},{"1330864130":["hashtag1","hashtag2"]},{"1330864424":["hashtag1","hashtag2"]},{"1330864399":["hashtag1","hashtag2"]},{"1330864134":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330864209, 1330864421, 1330864130, 1330864424, 1330864399, 1330864134)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.15891122817993 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:57:03.192764
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/56/image_23012025_20_56_55_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/20/56/image_23012025_20_56_49_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/20/56/image_23012025_20_56_42_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/56/image_23012025_20_56_36_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/20/56/image_23012025_20_56_30_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/20/56/image_23012025_20_56_25_6199.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/56/image_23012025_20_56_55_6192.jpg', '/home/nano/Desktop/images/23012025/20/56/image_23012025_20_56_49_6191.jpg', '/home/nano/Desktop/images/23012025/20/56/image_23012025_20_56_42_6193.jpg', '/home/nano/Desktop/images/23012025/20/56/image_23012025_20_56_36_6203.jpg', '/home/nano/Desktop/images/23012025/20/56/image_23012025_20_56_30_5180.jpg', '/home/nano/Desktop/images/23012025/20/56/image_23012025_20_56_25_6199.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/56/image_23012025_20_56_55_6192.jpg
/home/nano/Desktop/images/23012025/20/56/image_23012025_20_56_49_6191.jpg
/home/nano/Desktop/images/23012025/20/56/image_23012025_20_56_42_6193.jpg
/home/nano/Desktop/images/23012025/20/56/image_23012025_20_56_36_6203.jpg
/home/nano/Desktop/images/23012025/20/56/image_23012025_20_56_30_5180.jpg
/home/nano/Desktop/images/23012025/20/56/image_23012025_20_56_25_6199.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330864515","1330864520","1330864511","1330864498","1330864492","1330864504"],"photo_ids_order":["1330864492","1330864498","1330864504","1330864511","1330864515","1330864520"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f29192966a775f2de5ac34d7d800dc7c.jpg","text":"TemporaryFile(/tmp/multipartBody5320523645707668075asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662283798,"filename":"image_23012025_20_56_30_5180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/35ee8b3ba18bb69668c1d3c439f20969.jpg","text":"TemporaryFile(/tmp/multipartBody7252384160570796108asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662283798,"filename":"image_23012025_20_56_25_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c47adf7e2a361875bd8006551193b664.jpg","text":"TemporaryFile(/tmp/multipartBody3746611406616598646asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662283798,"filename":"image_23012025_20_56_36_6203.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5adc9aead6ce45db7a81fea1a3ad6df5.jpg","text":"TemporaryFile(/tmp/multipartBody6149464194147121918asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662283798,"filename":"image_23012025_20_56_49_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8c2aad1ff02e02e9c698a8885017bb6a.jpg","text":"TemporaryFile(/tmp/multipartBody8554678851427873224asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662283798,"filename":"image_23012025_20_56_55_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/11b2dd7e1f656fe1adde419ba99dc27c.jpg","text":"TemporaryFile(/tmp/multipartBody6245423507215447472asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662283798,"filename":"image_23012025_20_56_42_6193.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330864504","file1":"1330864498","file0":"1330864492","file4":"1330864515","file5":"1330864520","file3":"1330864511"},"map_files_photo_id_array":[{"photo_id":"1330864520","filename":"file5"},{"photo_id":"1330864504","filename":"file2"},{"photo_id":"1330864515","filename":"file4"},{"photo_id":"1330864498","filename":"file1"},{"photo_id":"1330864492","filename":"file0"},{"photo_id":"1330864511","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330864515":["hashtag1","hashtag2"]},{"1330864520":["hashtag1","hashtag2"]},{"1330864511":["hashtag1","hashtag2"]},{"1330864498":["hashtag1","hashtag2"]},{"1330864492":["hashtag1","hashtag2"]},{"1330864504":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330864515, 1330864520, 1330864511, 1330864498, 1330864492, 1330864504)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.52829647064209 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 20:59:03.233191
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/57/image_23012025_20_57_48_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/57/image_23012025_20_57_42_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/57/image_23012025_20_57_36_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/20/57/image_23012025_20_57_31_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/57/image_23012025_20_57_25_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/20/57/image_23012025_20_57_12_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/57/image_23012025_20_57_48_6193.jpg', '/home/nano/Desktop/images/23012025/20/57/image_23012025_20_57_42_6193.jpg', '/home/nano/Desktop/images/23012025/20/57/image_23012025_20_57_36_5183.jpg', '/home/nano/Desktop/images/23012025/20/57/image_23012025_20_57_31_6193.jpg', '/home/nano/Desktop/images/23012025/20/57/image_23012025_20_57_25_6194.jpg', '/home/nano/Desktop/images/23012025/20/57/image_23012025_20_57_12_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/57/image_23012025_20_57_48_6193.jpg
/home/nano/Desktop/images/23012025/20/57/image_23012025_20_57_42_6193.jpg
/home/nano/Desktop/images/23012025/20/57/image_23012025_20_57_36_5183.jpg
/home/nano/Desktop/images/23012025/20/57/image_23012025_20_57_31_6193.jpg
/home/nano/Desktop/images/23012025/20/57/image_23012025_20_57_25_6194.jpg
/home/nano/Desktop/images/23012025/20/57/image_23012025_20_57_12_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330864775","1330864772","1330864762","1330864767","1330864749","1330864743"],"photo_ids_order":["1330864743","1330864749","1330864762","1330864767","1330864772","1330864775"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6204d6a2998e496d832075d882f220e7.jpg","text":"TemporaryFile(/tmp/multipartBody2582903266553161503asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662403783,"filename":"image_23012025_20_57_12_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d32bfafce350362342749220a14dcfe9.jpg","text":"TemporaryFile(/tmp/multipartBody3195999475372526359asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662403783,"filename":"image_23012025_20_57_25_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/83c61d5be4951cce9849d1018f4e64ab.jpg","text":"TemporaryFile(/tmp/multipartBody1570975222056248456asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662403783,"filename":"image_23012025_20_57_36_5183.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c1b0c69f9877d68b07db319838bc8c17.jpg","text":"TemporaryFile(/tmp/multipartBody7023699468947064634asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662403783,"filename":"image_23012025_20_57_31_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/684f48fc4cf0982b0360e5ed7d104750.jpg","text":"TemporaryFile(/tmp/multipartBody7235812516512341763asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662403783,"filename":"image_23012025_20_57_42_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8684afcbf679c7cfceb1d9b412bfb082.jpg","text":"TemporaryFile(/tmp/multipartBody6862420983483655398asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662403783,"filename":"image_23012025_20_57_48_6193.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330864762","file1":"1330864749","file0":"1330864743","file4":"1330864772","file5":"1330864775","file3":"1330864767"},"map_files_photo_id_array":[{"photo_id":"1330864775","filename":"file5"},{"photo_id":"1330864762","filename":"file2"},{"photo_id":"1330864772","filename":"file4"},{"photo_id":"1330864749","filename":"file1"},{"photo_id":"1330864743","filename":"file0"},{"photo_id":"1330864767","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330864775":["hashtag1","hashtag2"]},{"1330864772":["hashtag1","hashtag2"]},{"1330864762":["hashtag1","hashtag2"]},{"1330864767":["hashtag1","hashtag2"]},{"1330864749":["hashtag1","hashtag2"]},{"1330864743":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330864775, 1330864772, 1330864762, 1330864767, 1330864749, 1330864743)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.219966411590576 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:00:02.858773
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/20/59/image_23012025_20_59_55_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/20/59/image_23012025_20_59_48_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/20/59/image_23012025_20_59_42_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/20/59/image_23012025_20_59_36_5238.jpg', 2), ('/home/nano/Desktop/images/23012025/20/59/image_23012025_20_59_31_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/20/59/image_23012025_20_59_25_6200.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/20/59/image_23012025_20_59_55_6199.jpg', '/home/nano/Desktop/images/23012025/20/59/image_23012025_20_59_48_6200.jpg', '/home/nano/Desktop/images/23012025/20/59/image_23012025_20_59_42_6197.jpg', '/home/nano/Desktop/images/23012025/20/59/image_23012025_20_59_36_5238.jpg', '/home/nano/Desktop/images/23012025/20/59/image_23012025_20_59_31_6193.jpg', '/home/nano/Desktop/images/23012025/20/59/image_23012025_20_59_25_6200.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/20/59/image_23012025_20_59_55_6199.jpg
/home/nano/Desktop/images/23012025/20/59/image_23012025_20_59_48_6200.jpg
/home/nano/Desktop/images/23012025/20/59/image_23012025_20_59_42_6197.jpg
/home/nano/Desktop/images/23012025/20/59/image_23012025_20_59_36_5238.jpg
/home/nano/Desktop/images/23012025/20/59/image_23012025_20_59_31_6193.jpg
/home/nano/Desktop/images/23012025/20/59/image_23012025_20_59_25_6200.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330864824","1330864844","1330864855","1330864840","1330864851","1330864848"],"photo_ids_order":["1330864824","1330864840","1330864844","1330864848","1330864851","1330864855"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d7ac3b518489a7513d69b06689eaf78f.jpg","text":"TemporaryFile(/tmp/multipartBody8851664676312902423asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662463491,"filename":"image_23012025_20_59_55_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cf7fa245727167efc3d88a55cb6793f5.jpg","text":"TemporaryFile(/tmp/multipartBody872679694321029138asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662463491,"filename":"image_23012025_20_59_42_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d45a9794b93672769c8bdf3bea4999e7.jpg","text":"TemporaryFile(/tmp/multipartBody5034826772070893082asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662463491,"filename":"image_23012025_20_59_25_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0373ff3b24b8e7df3767c03df58ef3e2.jpg","text":"TemporaryFile(/tmp/multipartBody4335005887603267772asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662463491,"filename":"image_23012025_20_59_48_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d7488042f5d6ecb3e708cd55b97bbdec.jpg","text":"TemporaryFile(/tmp/multipartBody2196593730373416909asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662463491,"filename":"image_23012025_20_59_31_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ad6f5757f5a6029b9c87d608172ca811.jpg","text":"TemporaryFile(/tmp/multipartBody1810960424957047537asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662463491,"filename":"image_23012025_20_59_36_5238.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330864844","file1":"1330864840","file0":"1330864824","file4":"1330864851","file5":"1330864855","file3":"1330864848"},"map_files_photo_id_array":[{"photo_id":"1330864855","filename":"file5"},{"photo_id":"1330864844","filename":"file2"},{"photo_id":"1330864851","filename":"file4"},{"photo_id":"1330864840","filename":"file1"},{"photo_id":"1330864824","filename":"file0"},{"photo_id":"1330864848","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330864824":["hashtag1","hashtag2"]},{"1330864844":["hashtag1","hashtag2"]},{"1330864855":["hashtag1","hashtag2"]},{"1330864840":["hashtag1","hashtag2"]},{"1330864851":["hashtag1","hashtag2"]},{"1330864848":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330864824, 1330864844, 1330864855, 1330864840, 1330864851, 1330864848)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.53483700752258 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:01:02.984936
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/00/image_23012025_21_00_55_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/21/00/image_23012025_21_00_48_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/00/image_23012025_21_00_42_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/21/00/image_23012025_21_00_36_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/21/00/image_23012025_21_00_31_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/00/image_23012025_21_00_25_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/00/image_23012025_21_00_55_6189.jpg', '/home/nano/Desktop/images/23012025/21/00/image_23012025_21_00_48_6188.jpg', '/home/nano/Desktop/images/23012025/21/00/image_23012025_21_00_42_6186.jpg', '/home/nano/Desktop/images/23012025/21/00/image_23012025_21_00_36_5178.jpg', '/home/nano/Desktop/images/23012025/21/00/image_23012025_21_00_31_6197.jpg', '/home/nano/Desktop/images/23012025/21/00/image_23012025_21_00_25_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/00/image_23012025_21_00_55_6189.jpg
/home/nano/Desktop/images/23012025/21/00/image_23012025_21_00_48_6188.jpg
/home/nano/Desktop/images/23012025/21/00/image_23012025_21_00_42_6186.jpg
/home/nano/Desktop/images/23012025/21/00/image_23012025_21_00_36_5178.jpg
/home/nano/Desktop/images/23012025/21/00/image_23012025_21_00_31_6197.jpg
/home/nano/Desktop/images/23012025/21/00/image_23012025_21_00_25_6197.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330864911","1330864897","1330864904","1330864900","1330864914","1330864908"],"photo_ids_order":["1330864897","1330864900","1330864904","1330864908","1330864911","1330864914"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/966cfca202f33fdffab1aeb4223ffebf.jpg","text":"TemporaryFile(/tmp/multipartBody4493686091242076402asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662523381,"filename":"image_23012025_21_00_31_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1b4deea25d1adf40ee685bafe2022d4a.jpg","text":"TemporaryFile(/tmp/multipartBody2502019564666619029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662523381,"filename":"image_23012025_21_00_55_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/222b4a20ef6f5d372e092470a82038de.jpg","text":"TemporaryFile(/tmp/multipartBody4400941667162078983asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662523381,"filename":"image_23012025_21_00_42_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ccafc0c4571b0f113cfb2557f3b8da7c.jpg","text":"TemporaryFile(/tmp/multipartBody7050974276132336829asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662523381,"filename":"image_23012025_21_00_48_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f7cbdb35d79cda7dfa9a6b74e69baa5c.jpg","text":"TemporaryFile(/tmp/multipartBody1048058850145466867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662523381,"filename":"image_23012025_21_00_25_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/405b0061f941066d9ef639719b1783e1.jpg","text":"TemporaryFile(/tmp/multipartBody5216915960143321509asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662523381,"filename":"image_23012025_21_00_36_5178.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330864904","file1":"1330864900","file0":"1330864897","file4":"1330864911","file5":"1330864914","file3":"1330864908"},"map_files_photo_id_array":[{"photo_id":"1330864914","filename":"file5"},{"photo_id":"1330864904","filename":"file2"},{"photo_id":"1330864911","filename":"file4"},{"photo_id":"1330864900","filename":"file1"},{"photo_id":"1330864897","filename":"file0"},{"photo_id":"1330864908","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330864911":["hashtag1","hashtag2"]},{"1330864897":["hashtag1","hashtag2"]},{"1330864904":["hashtag1","hashtag2"]},{"1330864900":["hashtag1","hashtag2"]},{"1330864914":["hashtag1","hashtag2"]},{"1330864908":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330864911, 1330864897, 1330864904, 1330864900, 1330864914, 1330864908)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.326110363006592 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:02:03.198193
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/01/image_23012025_21_01_31_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/21/01/image_23012025_21_01_18_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/21/01/image_23012025_21_01_12_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/21/01/image_23012025_21_01_06_5196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/00/image_23012025_21_01_01_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/00/image_23012025_21_00_18_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/01/image_23012025_21_01_31_6198.jpg', '/home/nano/Desktop/images/23012025/21/01/image_23012025_21_01_18_6198.jpg', '/home/nano/Desktop/images/23012025/21/01/image_23012025_21_01_12_6198.jpg', '/home/nano/Desktop/images/23012025/21/01/image_23012025_21_01_06_5196.jpg', '/home/nano/Desktop/images/23012025/21/00/image_23012025_21_01_01_6188.jpg', '/home/nano/Desktop/images/23012025/21/00/image_23012025_21_00_18_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/01/image_23012025_21_01_31_6198.jpg
/home/nano/Desktop/images/23012025/21/01/image_23012025_21_01_18_6198.jpg
/home/nano/Desktop/images/23012025/21/01/image_23012025_21_01_12_6198.jpg
/home/nano/Desktop/images/23012025/21/01/image_23012025_21_01_06_5196.jpg
/home/nano/Desktop/images/23012025/21/00/image_23012025_21_01_01_6188.jpg
/home/nano/Desktop/images/23012025/21/00/image_23012025_21_00_18_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330864982","1330864976","1330864979","1330864989","1330864986","1330864971"],"photo_ids_order":["1330864971","1330864976","1330864979","1330864982","1330864986","1330864989"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/edbdea4c4bab5e06a059ca9ea8bf5517.jpg","text":"TemporaryFile(/tmp/multipartBody1434916790963166933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662583858,"filename":"image_23012025_21_01_06_5196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/dafd8cdd66219119b47038df6cacf9bb.jpg","text":"TemporaryFile(/tmp/multipartBody3857055381616293913asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662583858,"filename":"image_23012025_21_01_18_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e61fe7ec91d43902d3b72709b0e30436.jpg","text":"TemporaryFile(/tmp/multipartBody3596614270216050689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662583858,"filename":"image_23012025_21_01_12_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cd949e476a225ef09228624601eab5a3.jpg","text":"TemporaryFile(/tmp/multipartBody4483361908668285751asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662583858,"filename":"image_23012025_21_00_18_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f5bd8572bbf7afc4d2daba33a6471c50.jpg","text":"TemporaryFile(/tmp/multipartBody5278102491757774760asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662583858,"filename":"image_23012025_21_01_01_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/87ada0215fa151698191f401b816f53b.jpg","text":"TemporaryFile(/tmp/multipartBody8542576951913784059asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662583858,"filename":"image_23012025_21_01_31_6198.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330864979","file1":"1330864976","file0":"1330864971","file4":"1330864986","file5":"1330864989","file3":"1330864982"},"map_files_photo_id_array":[{"photo_id":"1330864989","filename":"file5"},{"photo_id":"1330864979","filename":"file2"},{"photo_id":"1330864986","filename":"file4"},{"photo_id":"1330864976","filename":"file1"},{"photo_id":"1330864971","filename":"file0"},{"photo_id":"1330864982","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330864982":["hashtag1","hashtag2"]},{"1330864976":["hashtag1","hashtag2"]},{"1330864979":["hashtag1","hashtag2"]},{"1330864989":["hashtag1","hashtag2"]},{"1330864986":["hashtag1","hashtag2"]},{"1330864971":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330864982, 1330864976, 1330864979, 1330864989, 1330864986, 1330864971)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.7826030254364 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:03:02.563853
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/03/image_23012025_21_04_01_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/02/image_23012025_21_02_55_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/02/image_23012025_21_02_36_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/21/02/image_23012025_21_02_18_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/21/02/image_23012025_21_02_12_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/21/02/image_23012025_21_02_06_5208.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/03/image_23012025_21_04_01_6197.jpg', '/home/nano/Desktop/images/23012025/21/02/image_23012025_21_02_55_6197.jpg', '/home/nano/Desktop/images/23012025/21/02/image_23012025_21_02_36_5190.jpg', '/home/nano/Desktop/images/23012025/21/02/image_23012025_21_02_18_6199.jpg', '/home/nano/Desktop/images/23012025/21/02/image_23012025_21_02_12_6198.jpg', '/home/nano/Desktop/images/23012025/21/02/image_23012025_21_02_06_5208.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/03/image_23012025_21_04_01_6197.jpg
/home/nano/Desktop/images/23012025/21/02/image_23012025_21_02_55_6197.jpg
/home/nano/Desktop/images/23012025/21/02/image_23012025_21_02_36_5190.jpg
/home/nano/Desktop/images/23012025/21/02/image_23012025_21_02_18_6199.jpg
/home/nano/Desktop/images/23012025/21/02/image_23012025_21_02_12_6198.jpg
/home/nano/Desktop/images/23012025/21/02/image_23012025_21_02_06_5208.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330865183","1330865165","1330865176","1330865179","1330865173","1330865169"],"photo_ids_order":["1330865165","1330865169","1330865173","1330865176","1330865179","1330865183"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a20f10a6f7d65aa77437b3d666e7c1c4.jpg","text":"TemporaryFile(/tmp/multipartBody2251409825101042620asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662643205,"filename":"image_23012025_21_02_06_5208.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f5171d8d99016648ff03a831b0212ca8.jpg","text":"TemporaryFile(/tmp/multipartBody7191865973048261819asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662643205,"filename":"image_23012025_21_04_01_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e0f039264487a897da58498a1c63de49.jpg","text":"TemporaryFile(/tmp/multipartBody2802621460811237482asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662643205,"filename":"image_23012025_21_02_18_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/774f6cd7761aa49cb1dcc92c6b0faf5a.jpg","text":"TemporaryFile(/tmp/multipartBody1868291914804177093asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662643205,"filename":"image_23012025_21_02_12_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9e446a16d50e33252e7369a219da58cc.jpg","text":"TemporaryFile(/tmp/multipartBody3708577630770028843asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662643205,"filename":"image_23012025_21_02_36_5190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7d111b54066471cf958999299133b708.jpg","text":"TemporaryFile(/tmp/multipartBody7695707137902655340asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662643205,"filename":"image_23012025_21_02_55_6197.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330865173","file1":"1330865169","file0":"1330865165","file4":"1330865179","file5":"1330865183","file3":"1330865176"},"map_files_photo_id_array":[{"photo_id":"1330865183","filename":"file5"},{"photo_id":"1330865173","filename":"file2"},{"photo_id":"1330865179","filename":"file4"},{"photo_id":"1330865169","filename":"file1"},{"photo_id":"1330865165","filename":"file0"},{"photo_id":"1330865176","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330865183":["hashtag1","hashtag2"]},{"1330865165":["hashtag1","hashtag2"]},{"1330865176":["hashtag1","hashtag2"]},{"1330865179":["hashtag1","hashtag2"]},{"1330865173":["hashtag1","hashtag2"]},{"1330865169":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330865183, 1330865165, 1330865176, 1330865179, 1330865173, 1330865169)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.23709058761597 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:04:02.793877
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/03/image_23012025_21_03_48_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/03/image_23012025_21_03_36_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/03/image_23012025_21_03_31_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/03/image_23012025_21_03_25_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/03/image_23012025_21_03_18_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/21/03/image_23012025_21_03_12_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/03/image_23012025_21_03_48_6197.jpg', '/home/nano/Desktop/images/23012025/21/03/image_23012025_21_03_36_5188.jpg', '/home/nano/Desktop/images/23012025/21/03/image_23012025_21_03_31_6197.jpg', '/home/nano/Desktop/images/23012025/21/03/image_23012025_21_03_25_6196.jpg', '/home/nano/Desktop/images/23012025/21/03/image_23012025_21_03_18_6198.jpg', '/home/nano/Desktop/images/23012025/21/03/image_23012025_21_03_12_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/03/image_23012025_21_03_48_6197.jpg
/home/nano/Desktop/images/23012025/21/03/image_23012025_21_03_36_5188.jpg
/home/nano/Desktop/images/23012025/21/03/image_23012025_21_03_31_6197.jpg
/home/nano/Desktop/images/23012025/21/03/image_23012025_21_03_25_6196.jpg
/home/nano/Desktop/images/23012025/21/03/image_23012025_21_03_18_6198.jpg
/home/nano/Desktop/images/23012025/21/03/image_23012025_21_03_12_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330865252","1330865239","1330865230","1330865242","1330865226","1330865235"],"photo_ids_order":["1330865226","1330865230","1330865235","1330865239","1330865242","1330865252"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/45d82bc656baaa533e8daeac39d78ab5.jpg","text":"TemporaryFile(/tmp/multipartBody6179816453872366944asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662703490,"filename":"image_23012025_21_03_12_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/59749b8c32a622642e0c059b58768d40.jpg","text":"TemporaryFile(/tmp/multipartBody2332061383684299910asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662703490,"filename":"image_23012025_21_03_25_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/01a7a3a459dfba090b241d67a96effb3.jpg","text":"TemporaryFile(/tmp/multipartBody7317444635086483834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662703490,"filename":"image_23012025_21_03_36_5188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/29588ca14778e65ea8613a8fb881d10a.jpg","text":"TemporaryFile(/tmp/multipartBody1734714157630671656asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662703490,"filename":"image_23012025_21_03_18_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/347bcfde424414cc74363b14aadbdc72.jpg","text":"TemporaryFile(/tmp/multipartBody888166591180199289asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662703490,"filename":"image_23012025_21_03_48_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e81993acd601db03076bb16148fb9bba.jpg","text":"TemporaryFile(/tmp/multipartBody5359679999641891632asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662703490,"filename":"image_23012025_21_03_31_6197.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330865235","file1":"1330865230","file0":"1330865226","file4":"1330865242","file5":"1330865252","file3":"1330865239"},"map_files_photo_id_array":[{"photo_id":"1330865252","filename":"file5"},{"photo_id":"1330865235","filename":"file2"},{"photo_id":"1330865242","filename":"file4"},{"photo_id":"1330865230","filename":"file1"},{"photo_id":"1330865226","filename":"file0"},{"photo_id":"1330865239","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330865252":["hashtag1","hashtag2"]},{"1330865239":["hashtag1","hashtag2"]},{"1330865230":["hashtag1","hashtag2"]},{"1330865242":["hashtag1","hashtag2"]},{"1330865226":["hashtag1","hashtag2"]},{"1330865235":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330865252, 1330865239, 1330865230, 1330865242, 1330865226, 1330865235)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.62581729888916 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:05:02.784512
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/04/image_23012025_21_04_48_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/04/image_23012025_21_04_42_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/04/image_23012025_21_04_36_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/04/image_23012025_21_04_31_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/04/image_23012025_21_04_25_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/04/image_23012025_21_04_18_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/04/image_23012025_21_04_48_6197.jpg', '/home/nano/Desktop/images/23012025/21/04/image_23012025_21_04_42_6197.jpg', '/home/nano/Desktop/images/23012025/21/04/image_23012025_21_04_36_5188.jpg', '/home/nano/Desktop/images/23012025/21/04/image_23012025_21_04_31_6196.jpg', '/home/nano/Desktop/images/23012025/21/04/image_23012025_21_04_25_6197.jpg', '/home/nano/Desktop/images/23012025/21/04/image_23012025_21_04_18_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/04/image_23012025_21_04_48_6197.jpg
/home/nano/Desktop/images/23012025/21/04/image_23012025_21_04_42_6197.jpg
/home/nano/Desktop/images/23012025/21/04/image_23012025_21_04_36_5188.jpg
/home/nano/Desktop/images/23012025/21/04/image_23012025_21_04_31_6196.jpg
/home/nano/Desktop/images/23012025/21/04/image_23012025_21_04_25_6197.jpg
/home/nano/Desktop/images/23012025/21/04/image_23012025_21_04_18_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330865333","1330865338","1330865335","1330865323","1330865343","1330865328"],"photo_ids_order":["1330865323","1330865328","1330865333","1330865335","1330865338","1330865343"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ecb90d800708625f21bc6add1e24eeba.jpg","text":"TemporaryFile(/tmp/multipartBody7724085347115335656asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662763444,"filename":"image_23012025_21_04_36_5188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/00f64ced46d807f69d70e4e05aceef09.jpg","text":"TemporaryFile(/tmp/multipartBody8444956592063629336asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662763444,"filename":"image_23012025_21_04_25_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/44c52fb1cad96dfe0dc5ecde6ef15b87.jpg","text":"TemporaryFile(/tmp/multipartBody3512424309694371755asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662763444,"filename":"image_23012025_21_04_31_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6d4fe48efdde56790044c36b185cfa01.jpg","text":"TemporaryFile(/tmp/multipartBody6522627454262301501asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662763444,"filename":"image_23012025_21_04_48_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bce32c2ab44fd756da0eb485ea5cca0d.jpg","text":"TemporaryFile(/tmp/multipartBody4441949461566082075asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662763444,"filename":"image_23012025_21_04_18_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c0b90d5e2df673d64ca5209a650b0caa.jpg","text":"TemporaryFile(/tmp/multipartBody3360909554040952878asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662763444,"filename":"image_23012025_21_04_42_6197.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330865333","file1":"1330865328","file0":"1330865323","file4":"1330865338","file5":"1330865343","file3":"1330865335"},"map_files_photo_id_array":[{"photo_id":"1330865343","filename":"file5"},{"photo_id":"1330865333","filename":"file2"},{"photo_id":"1330865338","filename":"file4"},{"photo_id":"1330865328","filename":"file1"},{"photo_id":"1330865323","filename":"file0"},{"photo_id":"1330865335","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330865333":["hashtag1","hashtag2"]},{"1330865338":["hashtag1","hashtag2"]},{"1330865335":["hashtag1","hashtag2"]},{"1330865323":["hashtag1","hashtag2"]},{"1330865343":["hashtag1","hashtag2"]},{"1330865328":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330865333, 1330865338, 1330865335, 1330865323, 1330865343, 1330865328)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.161646366119385 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:06:02.636881
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/05/image_23012025_21_05_55_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/05/image_23012025_21_05_49_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/05/image_23012025_21_05_42_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/21/05/image_23012025_21_05_36_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/21/05/image_23012025_21_05_30_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/05/image_23012025_21_05_25_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/05/image_23012025_21_05_55_6197.jpg', '/home/nano/Desktop/images/23012025/21/05/image_23012025_21_05_49_6196.jpg', '/home/nano/Desktop/images/23012025/21/05/image_23012025_21_05_42_6198.jpg', '/home/nano/Desktop/images/23012025/21/05/image_23012025_21_05_36_6201.jpg', '/home/nano/Desktop/images/23012025/21/05/image_23012025_21_05_30_5187.jpg', '/home/nano/Desktop/images/23012025/21/05/image_23012025_21_05_25_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/05/image_23012025_21_05_55_6197.jpg
/home/nano/Desktop/images/23012025/21/05/image_23012025_21_05_49_6196.jpg
/home/nano/Desktop/images/23012025/21/05/image_23012025_21_05_42_6198.jpg
/home/nano/Desktop/images/23012025/21/05/image_23012025_21_05_36_6201.jpg
/home/nano/Desktop/images/23012025/21/05/image_23012025_21_05_30_5187.jpg
/home/nano/Desktop/images/23012025/21/05/image_23012025_21_05_25_6197.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.4263026714324951 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:06:32.089329
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/06/image_23012025_21_06_55_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/21/06/image_23012025_21_06_49_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/06/image_23012025_21_06_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/06/image_23012025_21_06_36_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/21/06/image_23012025_21_06_30_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/06/image_23012025_21_06_19_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/06/image_23012025_21_06_55_6198.jpg', '/home/nano/Desktop/images/23012025/21/06/image_23012025_21_06_49_6197.jpg', '/home/nano/Desktop/images/23012025/21/06/image_23012025_21_06_42_6196.jpg', '/home/nano/Desktop/images/23012025/21/06/image_23012025_21_06_36_6201.jpg', '/home/nano/Desktop/images/23012025/21/06/image_23012025_21_06_30_5188.jpg', '/home/nano/Desktop/images/23012025/21/06/image_23012025_21_06_19_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/06/image_23012025_21_06_55_6198.jpg
/home/nano/Desktop/images/23012025/21/06/image_23012025_21_06_49_6197.jpg
/home/nano/Desktop/images/23012025/21/06/image_23012025_21_06_42_6196.jpg
/home/nano/Desktop/images/23012025/21/06/image_23012025_21_06_36_6201.jpg
/home/nano/Desktop/images/23012025/21/06/image_23012025_21_06_30_5188.jpg
/home/nano/Desktop/images/23012025/21/06/image_23012025_21_06_19_6197.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330865522","1330865506","1330865509","1330865500","1330865514","1330865502"],"photo_ids_order":["1330865500","1330865502","1330865506","1330865509","1330865514","1330865522"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/124b9b9038c089590d07edfd4d2d004b.jpg","text":"TemporaryFile(/tmp/multipartBody177969905483968602asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662852702,"filename":"image_23012025_21_06_19_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e1c66e93057fae629462e5e8e1fcf91d.jpg","text":"TemporaryFile(/tmp/multipartBody6322519931273607117asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662852702,"filename":"image_23012025_21_06_42_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a0a832e33083cf56f7039b00dd1b7229.jpg","text":"TemporaryFile(/tmp/multipartBody359151201223016573asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662852702,"filename":"image_23012025_21_06_36_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/55064778c06e21180a623bddb2106057.jpg","text":"TemporaryFile(/tmp/multipartBody6699907471278195989asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662852702,"filename":"image_23012025_21_06_55_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/24c961ec02e4a72c409fc3a6137b7ee0.jpg","text":"TemporaryFile(/tmp/multipartBody2242437300025411318asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662852702,"filename":"image_23012025_21_06_30_5188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/707b2bd587be3b6c8d004a049ba9fe35.jpg","text":"TemporaryFile(/tmp/multipartBody4135718677061314899asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662852702,"filename":"image_23012025_21_06_49_6197.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330865506","file1":"1330865502","file0":"1330865500","file4":"1330865514","file5":"1330865522","file3":"1330865509"},"map_files_photo_id_array":[{"photo_id":"1330865522","filename":"file5"},{"photo_id":"1330865506","filename":"file2"},{"photo_id":"1330865514","filename":"file4"},{"photo_id":"1330865502","filename":"file1"},{"photo_id":"1330865500","filename":"file0"},{"photo_id":"1330865509","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330865522":["hashtag1","hashtag2"]},{"1330865506":["hashtag1","hashtag2"]},{"1330865509":["hashtag1","hashtag2"]},{"1330865500":["hashtag1","hashtag2"]},{"1330865514":["hashtag1","hashtag2"]},{"1330865502":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330865522, 1330865506, 1330865509, 1330865500, 1330865514, 1330865502)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.76436996459961 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:07:32.154607
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/07/image_23012025_21_07_55_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/07/image_23012025_21_07_49_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/07/image_23012025_21_07_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/07/image_23012025_21_07_36_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/21/07/image_23012025_21_07_30_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/21/07/image_23012025_21_07_19_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/07/image_23012025_21_07_55_6196.jpg', '/home/nano/Desktop/images/23012025/21/07/image_23012025_21_07_49_6197.jpg', '/home/nano/Desktop/images/23012025/21/07/image_23012025_21_07_42_6196.jpg', '/home/nano/Desktop/images/23012025/21/07/image_23012025_21_07_36_6202.jpg', '/home/nano/Desktop/images/23012025/21/07/image_23012025_21_07_30_5186.jpg', '/home/nano/Desktop/images/23012025/21/07/image_23012025_21_07_19_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/07/image_23012025_21_07_55_6196.jpg
/home/nano/Desktop/images/23012025/21/07/image_23012025_21_07_49_6197.jpg
/home/nano/Desktop/images/23012025/21/07/image_23012025_21_07_42_6196.jpg
/home/nano/Desktop/images/23012025/21/07/image_23012025_21_07_36_6202.jpg
/home/nano/Desktop/images/23012025/21/07/image_23012025_21_07_30_5186.jpg
/home/nano/Desktop/images/23012025/21/07/image_23012025_21_07_19_6197.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330865627","1330865605","1330865598","1330865592","1330865718","1330865588"],"photo_ids_order":["1330865588","1330865592","1330865598","1330865605","1330865627","1330865718"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/77f38268e1861883c38a30f243fe5a36.jpg","text":"TemporaryFile(/tmp/multipartBody8593058188430442097asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662912838,"filename":"image_23012025_21_07_30_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/98a370507e75f2720b293d0deff40a59.jpg","text":"TemporaryFile(/tmp/multipartBody8107838995334955288asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662912838,"filename":"image_23012025_21_07_36_6202.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d3928f1eb9152a524aea22b20829f549.jpg","text":"TemporaryFile(/tmp/multipartBody1485250255529728330asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662912838,"filename":"image_23012025_21_07_42_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/63da031aff62506f2c1e95f7766a6270.jpg","text":"TemporaryFile(/tmp/multipartBody1785198663652160282asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662912838,"filename":"image_23012025_21_07_49_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9fae7d873edcd92014e72048012b5ff7.jpg","text":"TemporaryFile(/tmp/multipartBody575428393392336523asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662912838,"filename":"image_23012025_21_07_19_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/38f2e846581353549884b387c8bd8b3a.jpg","text":"TemporaryFile(/tmp/multipartBody3361459153862174134asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662912838,"filename":"image_23012025_21_07_55_6196.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330865598","file1":"1330865592","file0":"1330865588","file4":"1330865627","file5":"1330865718","file3":"1330865605"},"map_files_photo_id_array":[{"photo_id":"1330865718","filename":"file5"},{"photo_id":"1330865598","filename":"file2"},{"photo_id":"1330865627","filename":"file4"},{"photo_id":"1330865592","filename":"file1"},{"photo_id":"1330865588","filename":"file0"},{"photo_id":"1330865605","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330865627":["hashtag1","hashtag2"]},{"1330865605":["hashtag1","hashtag2"]},{"1330865598":["hashtag1","hashtag2"]},{"1330865592":["hashtag1","hashtag2"]},{"1330865718":["hashtag1","hashtag2"]},{"1330865588":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330865627, 1330865605, 1330865598, 1330865592, 1330865718, 1330865588)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.69363784790039 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:08:32.253270
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/08/image_23012025_21_08_55_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/08/image_23012025_21_08_49_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/08/image_23012025_21_08_30_5193.jpg', 2), ('/home/nano/Desktop/images/23012025/21/08/image_23012025_21_08_25_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/21/08/image_23012025_21_08_19_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/21/08/image_23012025_21_08_12_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/08/image_23012025_21_08_55_6196.jpg', '/home/nano/Desktop/images/23012025/21/08/image_23012025_21_08_49_6197.jpg', '/home/nano/Desktop/images/23012025/21/08/image_23012025_21_08_30_5193.jpg', '/home/nano/Desktop/images/23012025/21/08/image_23012025_21_08_25_6207.jpg', '/home/nano/Desktop/images/23012025/21/08/image_23012025_21_08_19_6199.jpg', '/home/nano/Desktop/images/23012025/21/08/image_23012025_21_08_12_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/08/image_23012025_21_08_55_6196.jpg
/home/nano/Desktop/images/23012025/21/08/image_23012025_21_08_49_6197.jpg
/home/nano/Desktop/images/23012025/21/08/image_23012025_21_08_30_5193.jpg
/home/nano/Desktop/images/23012025/21/08/image_23012025_21_08_25_6207.jpg
/home/nano/Desktop/images/23012025/21/08/image_23012025_21_08_19_6199.jpg
/home/nano/Desktop/images/23012025/21/08/image_23012025_21_08_12_6197.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330866745","1330866733","1330866742","1330866576","1330866750","1330866737"],"photo_ids_order":["1330866576","1330866733","1330866737","1330866742","1330866745","1330866750"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7a2fdbf2b8f205852908b5fcab1bc11e.jpg","text":"TemporaryFile(/tmp/multipartBody2481136750733585328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662973018,"filename":"image_23012025_21_08_19_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0ab03b3b45c6182343d870594fa447e4.jpg","text":"TemporaryFile(/tmp/multipartBody1012613865726835882asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662973018,"filename":"image_23012025_21_08_49_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/373a305c500fb5295adff637a04e90dd.jpg","text":"TemporaryFile(/tmp/multipartBody4802010871201296844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662973018,"filename":"image_23012025_21_08_25_6207.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ea5a6edec54ec0a70c4033acb9fc45c1.jpg","text":"TemporaryFile(/tmp/multipartBody7442687312227216054asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662973018,"filename":"image_23012025_21_08_55_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fd664d73815b1d43254517567dc18fc4.jpg","text":"TemporaryFile(/tmp/multipartBody1797623938422728333asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662973018,"filename":"image_23012025_21_08_12_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0e0bdedf526f85988537df310fa030a1.jpg","text":"TemporaryFile(/tmp/multipartBody176270629551008676asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737662973018,"filename":"image_23012025_21_08_30_5193.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330866737","file1":"1330866733","file0":"1330866576","file4":"1330866745","file5":"1330866750","file3":"1330866742"},"map_files_photo_id_array":[{"photo_id":"1330866750","filename":"file5"},{"photo_id":"1330866737","filename":"file2"},{"photo_id":"1330866745","filename":"file4"},{"photo_id":"1330866733","filename":"file1"},{"photo_id":"1330866576","filename":"file0"},{"photo_id":"1330866742","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330866745":["hashtag1","hashtag2"]},{"1330866733":["hashtag1","hashtag2"]},{"1330866742":["hashtag1","hashtag2"]},{"1330866576":["hashtag1","hashtag2"]},{"1330866750":["hashtag1","hashtag2"]},{"1330866737":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330866745, 1330866733, 1330866742, 1330866576, 1330866750, 1330866737)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.21199131011963 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:09:32.350563
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/09/image_23012025_21_09_55_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/09/image_23012025_21_09_49_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/09/image_23012025_21_09_42_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/09/image_23012025_21_09_36_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/21/09/image_23012025_21_09_30_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/09/image_23012025_21_09_25_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/09/image_23012025_21_09_55_6196.jpg', '/home/nano/Desktop/images/23012025/21/09/image_23012025_21_09_49_6196.jpg', '/home/nano/Desktop/images/23012025/21/09/image_23012025_21_09_42_6197.jpg', '/home/nano/Desktop/images/23012025/21/09/image_23012025_21_09_36_6200.jpg', '/home/nano/Desktop/images/23012025/21/09/image_23012025_21_09_30_5187.jpg', '/home/nano/Desktop/images/23012025/21/09/image_23012025_21_09_25_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/09/image_23012025_21_09_55_6196.jpg
/home/nano/Desktop/images/23012025/21/09/image_23012025_21_09_49_6196.jpg
/home/nano/Desktop/images/23012025/21/09/image_23012025_21_09_42_6197.jpg
/home/nano/Desktop/images/23012025/21/09/image_23012025_21_09_36_6200.jpg
/home/nano/Desktop/images/23012025/21/09/image_23012025_21_09_30_5187.jpg
/home/nano/Desktop/images/23012025/21/09/image_23012025_21_09_25_6197.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330866793","1330866798","1330866802","1330866789","1330866782","1330866776"],"photo_ids_order":["1330866776","1330866782","1330866789","1330866793","1330866798","1330866802"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cd5094d4252f342d943e292532abba9f.jpg","text":"TemporaryFile(/tmp/multipartBody5475566132910824919asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663033099,"filename":"image_23012025_21_09_36_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4c6dc29e278d7bf9f9e1068c5f0effff.jpg","text":"TemporaryFile(/tmp/multipartBody2387323169106574691asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663033099,"filename":"image_23012025_21_09_30_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4553de829ffcce9c504f442becefe323.jpg","text":"TemporaryFile(/tmp/multipartBody4998331903420736860asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663033099,"filename":"image_23012025_21_09_25_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/88b953d32d5aa059fdff3cb182b8b72b.jpg","text":"TemporaryFile(/tmp/multipartBody704381933469940908asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663033099,"filename":"image_23012025_21_09_42_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/686856d63073b9d39e180032aec64fa9.jpg","text":"TemporaryFile(/tmp/multipartBody719133020088853001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663033099,"filename":"image_23012025_21_09_49_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/29ebe46c6c157dd96d0d35dfff7e2575.jpg","text":"TemporaryFile(/tmp/multipartBody1276309341763303850asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663033099,"filename":"image_23012025_21_09_55_6196.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330866789","file1":"1330866782","file0":"1330866776","file4":"1330866798","file5":"1330866802","file3":"1330866793"},"map_files_photo_id_array":[{"photo_id":"1330866802","filename":"file5"},{"photo_id":"1330866789","filename":"file2"},{"photo_id":"1330866798","filename":"file4"},{"photo_id":"1330866782","filename":"file1"},{"photo_id":"1330866776","filename":"file0"},{"photo_id":"1330866793","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330866793":["hashtag1","hashtag2"]},{"1330866798":["hashtag1","hashtag2"]},{"1330866802":["hashtag1","hashtag2"]},{"1330866789":["hashtag1","hashtag2"]},{"1330866782":["hashtag1","hashtag2"]},{"1330866776":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330866793, 1330866798, 1330866802, 1330866789, 1330866782, 1330866776)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.842429399490356 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:10:32.432631
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_42_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_36_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_30_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_25_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_19_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_12_6204.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_42_6195.jpg', '/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_36_6197.jpg', '/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_30_5191.jpg', '/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_25_6196.jpg', '/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_19_6201.jpg', '/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_12_6204.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_42_6195.jpg
/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_36_6197.jpg
/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_30_5191.jpg
/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_25_6196.jpg
/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_19_6201.jpg
/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_12_6204.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.49987339973449707 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:11:03.258929
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_42_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_36_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_30_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_25_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_19_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_12_6204.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_42_6195.jpg', '/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_36_6197.jpg', '/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_30_5191.jpg', '/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_25_6196.jpg', '/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_19_6201.jpg', '/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_12_6204.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_42_6195.jpg
/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_36_6197.jpg
/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_30_5191.jpg
/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_25_6196.jpg
/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_19_6201.jpg
/home/nano/Desktop/images/23012025/21/10/image_23012025_21_10_12_6204.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330867321","1330867315","1330867312","1330867323","1330867325","1330867319"],"photo_ids_order":["1330867312","1330867315","1330867319","1330867321","1330867323","1330867325"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8abf76da555e500fcb8d017ce7953b7c.jpg","text":"TemporaryFile(/tmp/multipartBody467000577911298290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663123922,"filename":"image_23012025_21_10_25_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c271e6743a010662ee741fa6c00a71bf.jpg","text":"TemporaryFile(/tmp/multipartBody6361524922313282032asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663123922,"filename":"image_23012025_21_10_36_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/02bda1e79813779616ef67cd382abcbc.jpg","text":"TemporaryFile(/tmp/multipartBody4564633055466440395asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663123922,"filename":"image_23012025_21_10_42_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e4689e569e99861fa37a4feecb769333.jpg","text":"TemporaryFile(/tmp/multipartBody3883702970316948292asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663123922,"filename":"image_23012025_21_10_19_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/10ded7a39fdacbb29256d835c433a911.jpg","text":"TemporaryFile(/tmp/multipartBody131210564071561970asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663123922,"filename":"image_23012025_21_10_12_6204.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3b3fc6e7aeaa9148ab490a48539c8c6a.jpg","text":"TemporaryFile(/tmp/multipartBody912653328925538322asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663123922,"filename":"image_23012025_21_10_30_5191.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330867319","file1":"1330867315","file0":"1330867312","file4":"1330867323","file5":"1330867325","file3":"1330867321"},"map_files_photo_id_array":[{"photo_id":"1330867325","filename":"file5"},{"photo_id":"1330867319","filename":"file2"},{"photo_id":"1330867323","filename":"file4"},{"photo_id":"1330867315","filename":"file1"},{"photo_id":"1330867312","filename":"file0"},{"photo_id":"1330867321","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330867321":["hashtag1","hashtag2"]},{"1330867315":["hashtag1","hashtag2"]},{"1330867312":["hashtag1","hashtag2"]},{"1330867323":["hashtag1","hashtag2"]},{"1330867325":["hashtag1","hashtag2"]},{"1330867319":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330867321, 1330867315, 1330867312, 1330867323, 1330867325, 1330867319)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 28.93446946144104 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:12:03.190361
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/11/image_23012025_21_11_55_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/11/image_23012025_21_11_49_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/21/11/image_23012025_21_11_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/11/image_23012025_21_11_36_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/21/11/image_23012025_21_11_30_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/11/image_23012025_21_11_19_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/11/image_23012025_21_11_55_6197.jpg', '/home/nano/Desktop/images/23012025/21/11/image_23012025_21_11_49_6198.jpg', '/home/nano/Desktop/images/23012025/21/11/image_23012025_21_11_42_6196.jpg', '/home/nano/Desktop/images/23012025/21/11/image_23012025_21_11_36_6199.jpg', '/home/nano/Desktop/images/23012025/21/11/image_23012025_21_11_30_5187.jpg', '/home/nano/Desktop/images/23012025/21/11/image_23012025_21_11_19_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/11/image_23012025_21_11_55_6197.jpg
/home/nano/Desktop/images/23012025/21/11/image_23012025_21_11_49_6198.jpg
/home/nano/Desktop/images/23012025/21/11/image_23012025_21_11_42_6196.jpg
/home/nano/Desktop/images/23012025/21/11/image_23012025_21_11_36_6199.jpg
/home/nano/Desktop/images/23012025/21/11/image_23012025_21_11_30_5187.jpg
/home/nano/Desktop/images/23012025/21/11/image_23012025_21_11_19_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330867387","1330867432","1330867391","1330867394","1330867442","1330867439"],"photo_ids_order":["1330867387","1330867391","1330867394","1330867432","1330867439","1330867442"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ef622a061f39bcf6998ec6ae941ea57c.jpg","text":"TemporaryFile(/tmp/multipartBody7237388889419718857asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663183789,"filename":"image_23012025_21_11_55_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a49748413839454b1c2ed08c3935465e.jpg","text":"TemporaryFile(/tmp/multipartBody7302203472040165382asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663183789,"filename":"image_23012025_21_11_36_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ebc510165dc63159d30189c44193c53e.jpg","text":"TemporaryFile(/tmp/multipartBody2493252415026679752asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663183789,"filename":"image_23012025_21_11_49_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1243437c6366acc276fdd175c8e904da.jpg","text":"TemporaryFile(/tmp/multipartBody5605426956366577792asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663183789,"filename":"image_23012025_21_11_42_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/44171004f46d120f90e7d0cba34b6607.jpg","text":"TemporaryFile(/tmp/multipartBody7874158605956125486asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663183789,"filename":"image_23012025_21_11_19_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/02afa50a5ca799b47ca59aa95964735b.jpg","text":"TemporaryFile(/tmp/multipartBody922429414143390517asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663183789,"filename":"image_23012025_21_11_30_5187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330867394","file1":"1330867391","file0":"1330867387","file4":"1330867439","file5":"1330867442","file3":"1330867432"},"map_files_photo_id_array":[{"photo_id":"1330867442","filename":"file5"},{"photo_id":"1330867394","filename":"file2"},{"photo_id":"1330867439","filename":"file4"},{"photo_id":"1330867391","filename":"file1"},{"photo_id":"1330867387","filename":"file0"},{"photo_id":"1330867432","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330867387":["hashtag1","hashtag2"]},{"1330867432":["hashtag1","hashtag2"]},{"1330867391":["hashtag1","hashtag2"]},{"1330867394":["hashtag1","hashtag2"]},{"1330867442":["hashtag1","hashtag2"]},{"1330867439":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330867387, 1330867432, 1330867391, 1330867394, 1330867442, 1330867439)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.296250104904175 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:13:02.470461
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/13/image_23012025_21_14_00_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/12/image_23012025_21_12_55_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/12/image_23012025_21_12_49_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/21/12/image_23012025_21_12_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/12/image_23012025_21_12_36_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/21/12/image_23012025_21_12_30_5186.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/13/image_23012025_21_14_00_5188.jpg', '/home/nano/Desktop/images/23012025/21/12/image_23012025_21_12_55_6197.jpg', '/home/nano/Desktop/images/23012025/21/12/image_23012025_21_12_49_6202.jpg', '/home/nano/Desktop/images/23012025/21/12/image_23012025_21_12_42_6196.jpg', '/home/nano/Desktop/images/23012025/21/12/image_23012025_21_12_36_6198.jpg', '/home/nano/Desktop/images/23012025/21/12/image_23012025_21_12_30_5186.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/13/image_23012025_21_14_00_5188.jpg
/home/nano/Desktop/images/23012025/21/12/image_23012025_21_12_55_6197.jpg
/home/nano/Desktop/images/23012025/21/12/image_23012025_21_12_49_6202.jpg
/home/nano/Desktop/images/23012025/21/12/image_23012025_21_12_42_6196.jpg
/home/nano/Desktop/images/23012025/21/12/image_23012025_21_12_36_6198.jpg
/home/nano/Desktop/images/23012025/21/12/image_23012025_21_12_30_5186.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330867537","1330867548","1330867541","1330867529","1330867514","1330867517"],"photo_ids_order":["1330867514","1330867517","1330867529","1330867537","1330867541","1330867548"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/79761f298abdfd2fcb6fc256e7f09667.jpg","text":"TemporaryFile(/tmp/multipartBody1410137774367202709asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663243069,"filename":"image_23012025_21_12_42_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/68543da1d06b6df211918e216056bc05.jpg","text":"TemporaryFile(/tmp/multipartBody5360245781495962904asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663243069,"filename":"image_23012025_21_12_30_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1b0ceb6dcd063f003836643f9ca4455a.jpg","text":"TemporaryFile(/tmp/multipartBody1787316470008414263asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663243069,"filename":"image_23012025_21_12_36_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e086f42c784aa5c9f41eaca316edeb4d.jpg","text":"TemporaryFile(/tmp/multipartBody5583116582786803406asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663243069,"filename":"image_23012025_21_12_49_6202.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2626ee21588b9b66040397894501c96b.jpg","text":"TemporaryFile(/tmp/multipartBody315937437104460578asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663243069,"filename":"image_23012025_21_14_00_5188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5e9343e5c1419d38b230f27afb5c3b29.jpg","text":"TemporaryFile(/tmp/multipartBody5214392990953783261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663243069,"filename":"image_23012025_21_12_55_6197.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330867529","file1":"1330867517","file0":"1330867514","file4":"1330867541","file5":"1330867548","file3":"1330867537"},"map_files_photo_id_array":[{"photo_id":"1330867548","filename":"file5"},{"photo_id":"1330867529","filename":"file2"},{"photo_id":"1330867541","filename":"file4"},{"photo_id":"1330867517","filename":"file1"},{"photo_id":"1330867514","filename":"file0"},{"photo_id":"1330867537","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330867537":["hashtag1","hashtag2"]},{"1330867548":["hashtag1","hashtag2"]},{"1330867541":["hashtag1","hashtag2"]},{"1330867529":["hashtag1","hashtag2"]},{"1330867514":["hashtag1","hashtag2"]},{"1330867517":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330867537, 1330867548, 1330867541, 1330867529, 1330867514, 1330867517)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.17438292503357 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:14:02.868376
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/13/image_23012025_21_13_49_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/13/image_23012025_21_13_36_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/21/13/image_23012025_21_13_25_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/13/image_23012025_21_13_19_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/21/13/image_23012025_21_13_12_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/21/13/image_23012025_21_13_06_6220.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/13/image_23012025_21_13_49_6197.jpg', '/home/nano/Desktop/images/23012025/21/13/image_23012025_21_13_36_6200.jpg', '/home/nano/Desktop/images/23012025/21/13/image_23012025_21_13_25_6196.jpg', '/home/nano/Desktop/images/23012025/21/13/image_23012025_21_13_19_6199.jpg', '/home/nano/Desktop/images/23012025/21/13/image_23012025_21_13_12_6201.jpg', '/home/nano/Desktop/images/23012025/21/13/image_23012025_21_13_06_6220.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/13/image_23012025_21_13_49_6197.jpg
/home/nano/Desktop/images/23012025/21/13/image_23012025_21_13_36_6200.jpg
/home/nano/Desktop/images/23012025/21/13/image_23012025_21_13_25_6196.jpg
/home/nano/Desktop/images/23012025/21/13/image_23012025_21_13_19_6199.jpg
/home/nano/Desktop/images/23012025/21/13/image_23012025_21_13_12_6201.jpg
/home/nano/Desktop/images/23012025/21/13/image_23012025_21_13_06_6220.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.49833083152770996 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:14:31.883541
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/14/image_23012025_21_14_42_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/21/14/image_23012025_21_14_36_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/21/14/image_23012025_21_14_30_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/14/image_23012025_21_14_25_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/21/14/image_23012025_21_14_19_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/21/14/image_23012025_21_14_12_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/14/image_23012025_21_14_42_6199.jpg', '/home/nano/Desktop/images/23012025/21/14/image_23012025_21_14_36_6205.jpg', '/home/nano/Desktop/images/23012025/21/14/image_23012025_21_14_30_5188.jpg', '/home/nano/Desktop/images/23012025/21/14/image_23012025_21_14_25_6198.jpg', '/home/nano/Desktop/images/23012025/21/14/image_23012025_21_14_19_6203.jpg', '/home/nano/Desktop/images/23012025/21/14/image_23012025_21_14_12_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/14/image_23012025_21_14_42_6199.jpg
/home/nano/Desktop/images/23012025/21/14/image_23012025_21_14_36_6205.jpg
/home/nano/Desktop/images/23012025/21/14/image_23012025_21_14_30_5188.jpg
/home/nano/Desktop/images/23012025/21/14/image_23012025_21_14_25_6198.jpg
/home/nano/Desktop/images/23012025/21/14/image_23012025_21_14_19_6203.jpg
/home/nano/Desktop/images/23012025/21/14/image_23012025_21_14_12_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330867684","1330867665","1330867662","1330867676","1330867655","1330867672"],"photo_ids_order":["1330867655","1330867662","1330867665","1330867672","1330867676","1330867684"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/02f23b74521bff7405de28eced5cb163.jpg","text":"TemporaryFile(/tmp/multipartBody2021032411279062825asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663332516,"filename":"image_23012025_21_14_12_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9d56a91088e02f9652ff01d85eadfbf6.jpg","text":"TemporaryFile(/tmp/multipartBody1878822781478693955asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663332516,"filename":"image_23012025_21_14_30_5188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/38cfeb4f86fbda9faa843b0c095561ec.jpg","text":"TemporaryFile(/tmp/multipartBody7930025726929861152asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663332516,"filename":"image_23012025_21_14_36_6205.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0fa97fe1911e4438fe2061b744c09194.jpg","text":"TemporaryFile(/tmp/multipartBody6587238476191609720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663332516,"filename":"image_23012025_21_14_19_6203.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e83745bf3fe046f3e7112d0b87fe3e97.jpg","text":"TemporaryFile(/tmp/multipartBody313619678906871520asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663332516,"filename":"image_23012025_21_14_42_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0c12bb3d46c417bb5ac073b15f8470f6.jpg","text":"TemporaryFile(/tmp/multipartBody968335711302833484asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663332516,"filename":"image_23012025_21_14_25_6198.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330867665","file1":"1330867662","file0":"1330867655","file4":"1330867676","file5":"1330867684","file3":"1330867672"},"map_files_photo_id_array":[{"photo_id":"1330867684","filename":"file5"},{"photo_id":"1330867665","filename":"file2"},{"photo_id":"1330867676","filename":"file4"},{"photo_id":"1330867662","filename":"file1"},{"photo_id":"1330867655","filename":"file0"},{"photo_id":"1330867672","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330867684":["hashtag1","hashtag2"]},{"1330867665":["hashtag1","hashtag2"]},{"1330867662":["hashtag1","hashtag2"]},{"1330867676":["hashtag1","hashtag2"]},{"1330867655":["hashtag1","hashtag2"]},{"1330867672":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330867684, 1330867665, 1330867662, 1330867676, 1330867655, 1330867672)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.556122303009033 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:15:32.020668
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/15/image_23012025_21_15_49_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/15/image_23012025_21_15_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/15/image_23012025_21_15_36_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/21/15/image_23012025_21_15_25_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/21/15/image_23012025_21_15_12_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/15/image_23012025_21_15_06_5399.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/15/image_23012025_21_15_49_6196.jpg', '/home/nano/Desktop/images/23012025/21/15/image_23012025_21_15_42_6196.jpg', '/home/nano/Desktop/images/23012025/21/15/image_23012025_21_15_36_6205.jpg', '/home/nano/Desktop/images/23012025/21/15/image_23012025_21_15_25_6198.jpg', '/home/nano/Desktop/images/23012025/21/15/image_23012025_21_15_12_6196.jpg', '/home/nano/Desktop/images/23012025/21/15/image_23012025_21_15_06_5399.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/15/image_23012025_21_15_49_6196.jpg
/home/nano/Desktop/images/23012025/21/15/image_23012025_21_15_42_6196.jpg
/home/nano/Desktop/images/23012025/21/15/image_23012025_21_15_36_6205.jpg
/home/nano/Desktop/images/23012025/21/15/image_23012025_21_15_25_6198.jpg
/home/nano/Desktop/images/23012025/21/15/image_23012025_21_15_12_6196.jpg
/home/nano/Desktop/images/23012025/21/15/image_23012025_21_15_06_5399.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330867729","1330867716","1330867719","1330867707","1330867712","1330867724"],"photo_ids_order":["1330867707","1330867712","1330867716","1330867719","1330867724","1330867729"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bdc3aa32ca6cd482d2c6d623b7dbaa0c.jpg","text":"TemporaryFile(/tmp/multipartBody272508300031506686asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663392529,"filename":"image_23012025_21_15_06_5399.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ee58bb7fc64426b988d82d0624303dde.jpg","text":"TemporaryFile(/tmp/multipartBody4514556178170597137asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663392529,"filename":"image_23012025_21_15_36_6205.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d6c03956725127278c0a49207a88c206.jpg","text":"TemporaryFile(/tmp/multipartBody3270958372901785956asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663392529,"filename":"image_23012025_21_15_25_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bce5359f0fee38cc64082811f443a107.jpg","text":"TemporaryFile(/tmp/multipartBody7366773715242425275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663392529,"filename":"image_23012025_21_15_49_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/69479838b1742083be8c6bd252682408.jpg","text":"TemporaryFile(/tmp/multipartBody7117085129228356815asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663392529,"filename":"image_23012025_21_15_42_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c37c2fe501e2bfc6bb00f6fc65a3240f.jpg","text":"TemporaryFile(/tmp/multipartBody7822065343088474319asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663392529,"filename":"image_23012025_21_15_12_6196.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330867716","file1":"1330867712","file0":"1330867707","file4":"1330867724","file5":"1330867729","file3":"1330867719"},"map_files_photo_id_array":[{"photo_id":"1330867729","filename":"file5"},{"photo_id":"1330867716","filename":"file2"},{"photo_id":"1330867724","filename":"file4"},{"photo_id":"1330867712","filename":"file1"},{"photo_id":"1330867707","filename":"file0"},{"photo_id":"1330867719","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330867729":["hashtag1","hashtag2"]},{"1330867716":["hashtag1","hashtag2"]},{"1330867719":["hashtag1","hashtag2"]},{"1330867707":["hashtag1","hashtag2"]},{"1330867712":["hashtag1","hashtag2"]},{"1330867724":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330867729, 1330867716, 1330867719, 1330867707, 1330867712, 1330867724)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.15479564666748 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:16:32.108548
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/16/image_23012025_21_16_55_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/16/image_23012025_21_16_49_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/21/16/image_23012025_21_16_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/16/image_23012025_21_16_30_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/21/16/image_23012025_21_16_25_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/16/image_23012025_21_16_19_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/16/image_23012025_21_16_55_6196.jpg', '/home/nano/Desktop/images/23012025/21/16/image_23012025_21_16_49_6198.jpg', '/home/nano/Desktop/images/23012025/21/16/image_23012025_21_16_42_6196.jpg', '/home/nano/Desktop/images/23012025/21/16/image_23012025_21_16_30_5186.jpg', '/home/nano/Desktop/images/23012025/21/16/image_23012025_21_16_25_6196.jpg', '/home/nano/Desktop/images/23012025/21/16/image_23012025_21_16_19_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/16/image_23012025_21_16_55_6196.jpg
/home/nano/Desktop/images/23012025/21/16/image_23012025_21_16_49_6198.jpg
/home/nano/Desktop/images/23012025/21/16/image_23012025_21_16_42_6196.jpg
/home/nano/Desktop/images/23012025/21/16/image_23012025_21_16_30_5186.jpg
/home/nano/Desktop/images/23012025/21/16/image_23012025_21_16_25_6196.jpg
/home/nano/Desktop/images/23012025/21/16/image_23012025_21_16_19_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330867785","1330867764","1330867752","1330867755","1330867758","1330867772"],"photo_ids_order":["1330867752","1330867755","1330867758","1330867764","1330867772","1330867785"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d1164f9dd9908e7c4d6ce87f50da914c.jpg","text":"TemporaryFile(/tmp/multipartBody4344189118473304762asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663452715,"filename":"image_23012025_21_16_19_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2c81908a29d9bd84d0895bb35ee6facf.jpg","text":"TemporaryFile(/tmp/multipartBody3537367979482372568asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663452715,"filename":"image_23012025_21_16_30_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/83cfc3533dba541b0c06d616dcead764.jpg","text":"TemporaryFile(/tmp/multipartBody1084794909043692985asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663452715,"filename":"image_23012025_21_16_55_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f9a61a0efc8c5a989bbaf0d2c57dacd4.jpg","text":"TemporaryFile(/tmp/multipartBody2623925474273056132asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663452715,"filename":"image_23012025_21_16_49_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bd1b69a9bacb480e3186b7e4107a0d5e.jpg","text":"TemporaryFile(/tmp/multipartBody5747954383245596174asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663452715,"filename":"image_23012025_21_16_42_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/aab821619b4bb2cb0947eaa824ae9eb1.jpg","text":"TemporaryFile(/tmp/multipartBody1930481049408742977asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663452715,"filename":"image_23012025_21_16_25_6196.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330867758","file1":"1330867755","file0":"1330867752","file4":"1330867772","file5":"1330867785","file3":"1330867764"},"map_files_photo_id_array":[{"photo_id":"1330867785","filename":"file5"},{"photo_id":"1330867758","filename":"file2"},{"photo_id":"1330867772","filename":"file4"},{"photo_id":"1330867755","filename":"file1"},{"photo_id":"1330867752","filename":"file0"},{"photo_id":"1330867764","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330867785":["hashtag1","hashtag2"]},{"1330867764":["hashtag1","hashtag2"]},{"1330867752":["hashtag1","hashtag2"]},{"1330867755":["hashtag1","hashtag2"]},{"1330867758":["hashtag1","hashtag2"]},{"1330867772":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330867785, 1330867764, 1330867752, 1330867755, 1330867758, 1330867772)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.317177772521973 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:17:32.208631
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/17/image_23012025_21_17_49_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/21/17/image_23012025_21_17_42_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/21/17/image_23012025_21_17_36_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/21/17/image_23012025_21_17_30_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/17/image_23012025_21_17_25_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/17/image_23012025_21_17_19_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/17/image_23012025_21_17_49_6193.jpg', '/home/nano/Desktop/images/23012025/21/17/image_23012025_21_17_42_6198.jpg', '/home/nano/Desktop/images/23012025/21/17/image_23012025_21_17_36_6204.jpg', '/home/nano/Desktop/images/23012025/21/17/image_23012025_21_17_30_5187.jpg', '/home/nano/Desktop/images/23012025/21/17/image_23012025_21_17_25_6197.jpg', '/home/nano/Desktop/images/23012025/21/17/image_23012025_21_17_19_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/17/image_23012025_21_17_49_6193.jpg
/home/nano/Desktop/images/23012025/21/17/image_23012025_21_17_42_6198.jpg
/home/nano/Desktop/images/23012025/21/17/image_23012025_21_17_36_6204.jpg
/home/nano/Desktop/images/23012025/21/17/image_23012025_21_17_30_5187.jpg
/home/nano/Desktop/images/23012025/21/17/image_23012025_21_17_25_6197.jpg
/home/nano/Desktop/images/23012025/21/17/image_23012025_21_17_19_6197.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330868125","1330868184","1330868157","1330868121","1330868189","1330868179"],"photo_ids_order":["1330868121","1330868125","1330868157","1330868179","1330868184","1330868189"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/37dbd0c9b23a373bc8303756ca30597d.jpg","text":"TemporaryFile(/tmp/multipartBody7835580666817617594asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663512747,"filename":"image_23012025_21_17_42_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4d1897b685c92656ab0df1fd57d420e9.jpg","text":"TemporaryFile(/tmp/multipartBody1115524870322833373asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663512747,"filename":"image_23012025_21_17_25_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4b39acc22e048a17f8f1da8b7cee4001.jpg","text":"TemporaryFile(/tmp/multipartBody1204526048608086735asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663512747,"filename":"image_23012025_21_17_36_6204.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1b5c421331821418579ec6fdf68a8296.jpg","text":"TemporaryFile(/tmp/multipartBody3143156583726991969asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663512747,"filename":"image_23012025_21_17_49_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4fd6763d4d0176e72c6b30878296df95.jpg","text":"TemporaryFile(/tmp/multipartBody1438119571941044925asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663512747,"filename":"image_23012025_21_17_19_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0c265eda5912eda955b47f86e2ec12c1.jpg","text":"TemporaryFile(/tmp/multipartBody5735417540819969235asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663512747,"filename":"image_23012025_21_17_30_5187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330868157","file1":"1330868125","file0":"1330868121","file4":"1330868184","file5":"1330868189","file3":"1330868179"},"map_files_photo_id_array":[{"photo_id":"1330868189","filename":"file5"},{"photo_id":"1330868157","filename":"file2"},{"photo_id":"1330868184","filename":"file4"},{"photo_id":"1330868125","filename":"file1"},{"photo_id":"1330868121","filename":"file0"},{"photo_id":"1330868179","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330868125":["hashtag1","hashtag2"]},{"1330868184":["hashtag1","hashtag2"]},{"1330868157":["hashtag1","hashtag2"]},{"1330868121":["hashtag1","hashtag2"]},{"1330868189":["hashtag1","hashtag2"]},{"1330868179":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330868125, 1330868184, 1330868157, 1330868121, 1330868189, 1330868179)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.76323628425598 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:18:32.329377
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/18/image_23012025_21_18_55_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/18/image_23012025_21_18_36_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/21/18/image_23012025_21_18_30_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/18/image_23012025_21_18_19_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/18/image_23012025_21_18_12_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/17/image_23012025_21_17_55_6198.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/18/image_23012025_21_18_55_6196.jpg', '/home/nano/Desktop/images/23012025/21/18/image_23012025_21_18_36_6203.jpg', '/home/nano/Desktop/images/23012025/21/18/image_23012025_21_18_30_5187.jpg', '/home/nano/Desktop/images/23012025/21/18/image_23012025_21_18_19_6196.jpg', '/home/nano/Desktop/images/23012025/21/18/image_23012025_21_18_12_6196.jpg', '/home/nano/Desktop/images/23012025/21/17/image_23012025_21_17_55_6198.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/18/image_23012025_21_18_55_6196.jpg
/home/nano/Desktop/images/23012025/21/18/image_23012025_21_18_36_6203.jpg
/home/nano/Desktop/images/23012025/21/18/image_23012025_21_18_30_5187.jpg
/home/nano/Desktop/images/23012025/21/18/image_23012025_21_18_19_6196.jpg
/home/nano/Desktop/images/23012025/21/18/image_23012025_21_18_12_6196.jpg
/home/nano/Desktop/images/23012025/21/17/image_23012025_21_17_55_6198.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330868292","1330868288","1330868309","1330868300","1330868290","1330868305"],"photo_ids_order":["1330868288","1330868290","1330868292","1330868300","1330868305","1330868309"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a2ae6d6021035f1c8d6be6f76a9826fe.jpg","text":"TemporaryFile(/tmp/multipartBody8899639963597820687asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663572876,"filename":"image_23012025_21_18_30_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/715cb6e5f2d492d5c40593f6916cd88e.jpg","text":"TemporaryFile(/tmp/multipartBody9097391813862174252asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663572876,"filename":"image_23012025_21_18_55_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d9a3fb797bb724b2ca44232969ac4862.jpg","text":"TemporaryFile(/tmp/multipartBody7081173403009751313asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663572876,"filename":"image_23012025_21_17_55_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a6374b32adea6670fd259c001e1e27d1.jpg","text":"TemporaryFile(/tmp/multipartBody4047239768298308991asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663572876,"filename":"image_23012025_21_18_19_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/21878ec7e32dd4e1fbccff4cbae87f5d.jpg","text":"TemporaryFile(/tmp/multipartBody9091958429529876545asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663572876,"filename":"image_23012025_21_18_36_6203.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9a98cfec6d69f771cc0b121d742c524a.jpg","text":"TemporaryFile(/tmp/multipartBody9040617149413409357asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663572876,"filename":"image_23012025_21_18_12_6196.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330868292","file1":"1330868290","file0":"1330868288","file4":"1330868305","file5":"1330868309","file3":"1330868300"},"map_files_photo_id_array":[{"photo_id":"1330868309","filename":"file5"},{"photo_id":"1330868292","filename":"file2"},{"photo_id":"1330868305","filename":"file4"},{"photo_id":"1330868290","filename":"file1"},{"photo_id":"1330868288","filename":"file0"},{"photo_id":"1330868300","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330868292":["hashtag1","hashtag2"]},{"1330868288":["hashtag1","hashtag2"]},{"1330868309":["hashtag1","hashtag2"]},{"1330868300":["hashtag1","hashtag2"]},{"1330868290":["hashtag1","hashtag2"]},{"1330868305":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330868292, 1330868288, 1330868309, 1330868300, 1330868290, 1330868305)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.68375039100647 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:19:32.429604
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/19/image_23012025_21_19_55_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/21/19/image_23012025_21_19_49_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/19/image_23012025_21_19_42_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/19/image_23012025_21_19_36_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/21/19/image_23012025_21_19_30_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/21/19/image_23012025_21_19_25_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/19/image_23012025_21_19_55_6195.jpg', '/home/nano/Desktop/images/23012025/21/19/image_23012025_21_19_49_6187.jpg', '/home/nano/Desktop/images/23012025/21/19/image_23012025_21_19_42_6187.jpg', '/home/nano/Desktop/images/23012025/21/19/image_23012025_21_19_36_6191.jpg', '/home/nano/Desktop/images/23012025/21/19/image_23012025_21_19_30_5178.jpg', '/home/nano/Desktop/images/23012025/21/19/image_23012025_21_19_25_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/19/image_23012025_21_19_55_6195.jpg
/home/nano/Desktop/images/23012025/21/19/image_23012025_21_19_49_6187.jpg
/home/nano/Desktop/images/23012025/21/19/image_23012025_21_19_42_6187.jpg
/home/nano/Desktop/images/23012025/21/19/image_23012025_21_19_36_6191.jpg
/home/nano/Desktop/images/23012025/21/19/image_23012025_21_19_30_5178.jpg
/home/nano/Desktop/images/23012025/21/19/image_23012025_21_19_25_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330868407","1330868397","1330868403","1330868400","1330868405","1330868395"],"photo_ids_order":["1330868395","1330868397","1330868400","1330868403","1330868405","1330868407"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1369cddc40fed5d43d7377b242d5be1a.jpg","text":"TemporaryFile(/tmp/multipartBody675253058765351463asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663632861,"filename":"image_23012025_21_19_25_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6950c2b83af7019cac5c097cd9bf70ac.jpg","text":"TemporaryFile(/tmp/multipartBody8509555667462114839asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663632861,"filename":"image_23012025_21_19_49_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/40128bcb11b68589b0775d38696e81df.jpg","text":"TemporaryFile(/tmp/multipartBody8223606412557310508asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663632861,"filename":"image_23012025_21_19_36_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a961b508120692a90e5967fcab7bf75b.jpg","text":"TemporaryFile(/tmp/multipartBody3414552651614284305asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663632861,"filename":"image_23012025_21_19_42_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f8ceed23e57e666ce36772dd941360a5.jpg","text":"TemporaryFile(/tmp/multipartBody5329110417387258898asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663632861,"filename":"image_23012025_21_19_30_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8084cc99099c46ad111a4959f115e297.jpg","text":"TemporaryFile(/tmp/multipartBody7063125432142089253asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663632861,"filename":"image_23012025_21_19_55_6195.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330868400","file1":"1330868397","file0":"1330868395","file4":"1330868405","file5":"1330868407","file3":"1330868403"},"map_files_photo_id_array":[{"photo_id":"1330868407","filename":"file5"},{"photo_id":"1330868400","filename":"file2"},{"photo_id":"1330868405","filename":"file4"},{"photo_id":"1330868397","filename":"file1"},{"photo_id":"1330868395","filename":"file0"},{"photo_id":"1330868403","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330868407":["hashtag1","hashtag2"]},{"1330868397":["hashtag1","hashtag2"]},{"1330868403":["hashtag1","hashtag2"]},{"1330868400":["hashtag1","hashtag2"]},{"1330868405":["hashtag1","hashtag2"]},{"1330868395":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330868407, 1330868397, 1330868403, 1330868400, 1330868405, 1330868395)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.18550443649292 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:20:32.518585
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_55_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_48_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_42_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_36_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_31_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_25_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_55_6194.jpg', '/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_48_6194.jpg', '/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_42_6199.jpg', '/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_36_5182.jpg', '/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_31_6189.jpg', '/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_25_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_55_6194.jpg
/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_48_6194.jpg
/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_42_6199.jpg
/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_36_5182.jpg
/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_31_6189.jpg
/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_25_6187.jpg
uploaded 0 photos
time to upload: 10.505443096160889 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f8efcd198>, 'Connection to assistance.fotonower.com timed out. (connect timeout=10)'))
requests timeout
Result Failed!
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:21:03.244548
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_55_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_48_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_42_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_36_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_31_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_25_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_55_6194.jpg', '/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_48_6194.jpg', '/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_42_6199.jpg', '/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_36_5182.jpg', '/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_31_6189.jpg', '/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_25_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_55_6194.jpg
/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_48_6194.jpg
/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_42_6199.jpg
/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_36_5182.jpg
/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_31_6189.jpg
/home/nano/Desktop/images/23012025/21/20/image_23012025_21_20_25_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330868571","1330868529","1330868543","1330868567","1330868552","1330868575"],"photo_ids_order":["1330868529","1330868543","1330868552","1330868567","1330868571","1330868575"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a91ff228a1db282e2f2d7d2a6338009f.jpg","text":"TemporaryFile(/tmp/multipartBody7529578500528878762asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663723732,"filename":"image_23012025_21_20_31_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5861491bb8512529d8cd8e81041c5586.jpg","text":"TemporaryFile(/tmp/multipartBody3813756846670839792asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663723732,"filename":"image_23012025_21_20_55_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ed25069f596c08c127c7138d3221be69.jpg","text":"TemporaryFile(/tmp/multipartBody446600885385291189asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663723732,"filename":"image_23012025_21_20_48_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8d4baf8e5ee25496059488c8b320e5ec.jpg","text":"TemporaryFile(/tmp/multipartBody9170693835069396275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663723732,"filename":"image_23012025_21_20_36_5182.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/db793d2d3a3bbbea889b83bad1fa0339.jpg","text":"TemporaryFile(/tmp/multipartBody2391838143549894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663723732,"filename":"image_23012025_21_20_42_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/261f4e26e609597b65c4d590b3e68c91.jpg","text":"TemporaryFile(/tmp/multipartBody8667201725568996048asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663723732,"filename":"image_23012025_21_20_25_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330868552","file1":"1330868543","file0":"1330868529","file4":"1330868571","file5":"1330868575","file3":"1330868567"},"map_files_photo_id_array":[{"photo_id":"1330868575","filename":"file5"},{"photo_id":"1330868552","filename":"file2"},{"photo_id":"1330868571","filename":"file4"},{"photo_id":"1330868543","filename":"file1"},{"photo_id":"1330868529","filename":"file0"},{"photo_id":"1330868567","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330868571":["hashtag1","hashtag2"]},{"1330868529":["hashtag1","hashtag2"]},{"1330868543":["hashtag1","hashtag2"]},{"1330868567":["hashtag1","hashtag2"]},{"1330868552":["hashtag1","hashtag2"]},{"1330868575":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330868571, 1330868529, 1330868543, 1330868567, 1330868552, 1330868575)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.820226907730103 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:22:03.187182
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/21/image_23012025_21_21_55_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/21/21/image_23012025_21_21_48_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/21/21/image_23012025_21_21_42_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/21/21/image_23012025_21_21_36_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/21/21/image_23012025_21_21_31_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/21/image_23012025_21_21_25_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/21/image_23012025_21_21_55_6193.jpg', '/home/nano/Desktop/images/23012025/21/21/image_23012025_21_21_48_6201.jpg', '/home/nano/Desktop/images/23012025/21/21/image_23012025_21_21_42_6202.jpg', '/home/nano/Desktop/images/23012025/21/21/image_23012025_21_21_36_5189.jpg', '/home/nano/Desktop/images/23012025/21/21/image_23012025_21_21_31_6197.jpg', '/home/nano/Desktop/images/23012025/21/21/image_23012025_21_21_25_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/21/image_23012025_21_21_55_6193.jpg
/home/nano/Desktop/images/23012025/21/21/image_23012025_21_21_48_6201.jpg
/home/nano/Desktop/images/23012025/21/21/image_23012025_21_21_42_6202.jpg
/home/nano/Desktop/images/23012025/21/21/image_23012025_21_21_36_5189.jpg
/home/nano/Desktop/images/23012025/21/21/image_23012025_21_21_31_6197.jpg
/home/nano/Desktop/images/23012025/21/21/image_23012025_21_21_25_6197.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330868667","1330868652","1330868649","1330868660","1330868663","1330868656"],"photo_ids_order":["1330868649","1330868652","1330868656","1330868660","1330868663","1330868667"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d609594c8e9d4e2826a640441d3bdcb4.jpg","text":"TemporaryFile(/tmp/multipartBody2956535770239898858asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663783808,"filename":"image_23012025_21_21_25_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f17ea64bb7fb409f4a3661f028c51aa2.jpg","text":"TemporaryFile(/tmp/multipartBody6227985166891908518asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663783808,"filename":"image_23012025_21_21_48_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1449e3b8f8d40e5f4d5b440e437905d2.jpg","text":"TemporaryFile(/tmp/multipartBody8616134978466213455asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663783808,"filename":"image_23012025_21_21_55_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/459f1e22147def9a2620b2b4f0319229.jpg","text":"TemporaryFile(/tmp/multipartBody6057988165475861142asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663783808,"filename":"image_23012025_21_21_36_5189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3aa9c459b7345c8fff68371b0cbb6838.jpg","text":"TemporaryFile(/tmp/multipartBody8203031341155968210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663783808,"filename":"image_23012025_21_21_31_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4f88e63dfbee5a6be03160e2552cc34c.jpg","text":"TemporaryFile(/tmp/multipartBody620488077617370843asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663783808,"filename":"image_23012025_21_21_42_6202.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330868656","file1":"1330868652","file0":"1330868649","file4":"1330868663","file5":"1330868667","file3":"1330868660"},"map_files_photo_id_array":[{"photo_id":"1330868667","filename":"file5"},{"photo_id":"1330868656","filename":"file2"},{"photo_id":"1330868663","filename":"file4"},{"photo_id":"1330868652","filename":"file1"},{"photo_id":"1330868649","filename":"file0"},{"photo_id":"1330868660","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330868667":["hashtag1","hashtag2"]},{"1330868652":["hashtag1","hashtag2"]},{"1330868649":["hashtag1","hashtag2"]},{"1330868660":["hashtag1","hashtag2"]},{"1330868663":["hashtag1","hashtag2"]},{"1330868656":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330868667, 1330868652, 1330868649, 1330868660, 1330868663, 1330868656)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.261467695236206 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:23:02.487764
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/22/image_23012025_21_22_55_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/21/22/image_23012025_21_22_48_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/21/22/image_23012025_21_22_42_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/21/22/image_23012025_21_22_36_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/21/22/image_23012025_21_22_31_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/21/22/image_23012025_21_22_25_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/22/image_23012025_21_22_55_6195.jpg', '/home/nano/Desktop/images/23012025/21/22/image_23012025_21_22_48_6191.jpg', '/home/nano/Desktop/images/23012025/21/22/image_23012025_21_22_42_6192.jpg', '/home/nano/Desktop/images/23012025/21/22/image_23012025_21_22_36_5180.jpg', '/home/nano/Desktop/images/23012025/21/22/image_23012025_21_22_31_6192.jpg', '/home/nano/Desktop/images/23012025/21/22/image_23012025_21_22_25_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/22/image_23012025_21_22_55_6195.jpg
/home/nano/Desktop/images/23012025/21/22/image_23012025_21_22_48_6191.jpg
/home/nano/Desktop/images/23012025/21/22/image_23012025_21_22_42_6192.jpg
/home/nano/Desktop/images/23012025/21/22/image_23012025_21_22_36_5180.jpg
/home/nano/Desktop/images/23012025/21/22/image_23012025_21_22_31_6192.jpg
/home/nano/Desktop/images/23012025/21/22/image_23012025_21_22_25_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330868745","1330868739","1330868730","1330868749","1330868734","1330868743"],"photo_ids_order":["1330868730","1330868734","1330868739","1330868743","1330868745","1330868749"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e1cba5b072a11ce3a09be6c8c37c6782.jpg","text":"TemporaryFile(/tmp/multipartBody3308585435261377036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663842971,"filename":"image_23012025_21_22_31_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e07760923bbc02a1a887a0e69479ef6a.jpg","text":"TemporaryFile(/tmp/multipartBody2363916869437795552asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663842971,"filename":"image_23012025_21_22_42_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/58594992ad3094799fbb4e816514db50.jpg","text":"TemporaryFile(/tmp/multipartBody2512006721572801958asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663842971,"filename":"image_23012025_21_22_55_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d823e0249e5903d98e68b2bbe199419a.jpg","text":"TemporaryFile(/tmp/multipartBody7665233673782517687asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663842971,"filename":"image_23012025_21_22_25_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/be90a64498ee4e3163129f988671d5a4.jpg","text":"TemporaryFile(/tmp/multipartBody6236903787369879381asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663842971,"filename":"image_23012025_21_22_48_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/82b2445be887f974b273f026097f7cfa.jpg","text":"TemporaryFile(/tmp/multipartBody2599818275618712751asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663842971,"filename":"image_23012025_21_22_36_5180.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330868739","file1":"1330868734","file0":"1330868730","file4":"1330868745","file5":"1330868749","file3":"1330868743"},"map_files_photo_id_array":[{"photo_id":"1330868749","filename":"file5"},{"photo_id":"1330868739","filename":"file2"},{"photo_id":"1330868745","filename":"file4"},{"photo_id":"1330868734","filename":"file1"},{"photo_id":"1330868730","filename":"file0"},{"photo_id":"1330868743","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330868745":["hashtag1","hashtag2"]},{"1330868739":["hashtag1","hashtag2"]},{"1330868730":["hashtag1","hashtag2"]},{"1330868749":["hashtag1","hashtag2"]},{"1330868734":["hashtag1","hashtag2"]},{"1330868743":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330868745, 1330868739, 1330868730, 1330868749, 1330868734, 1330868743)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.4490807056427 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:24:02.816544
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/23/image_23012025_21_24_01_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/21/23/image_23012025_21_23_48_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/21/23/image_23012025_21_23_42_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/21/23/image_23012025_21_23_37_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/21/23/image_23012025_21_23_31_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/23/image_23012025_21_23_24_6191.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/23/image_23012025_21_24_01_6200.jpg', '/home/nano/Desktop/images/23012025/21/23/image_23012025_21_23_48_6198.jpg', '/home/nano/Desktop/images/23012025/21/23/image_23012025_21_23_42_5186.jpg', '/home/nano/Desktop/images/23012025/21/23/image_23012025_21_23_37_6195.jpg', '/home/nano/Desktop/images/23012025/21/23/image_23012025_21_23_31_6196.jpg', '/home/nano/Desktop/images/23012025/21/23/image_23012025_21_23_24_6191.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/23/image_23012025_21_24_01_6200.jpg
/home/nano/Desktop/images/23012025/21/23/image_23012025_21_23_48_6198.jpg
/home/nano/Desktop/images/23012025/21/23/image_23012025_21_23_42_5186.jpg
/home/nano/Desktop/images/23012025/21/23/image_23012025_21_23_37_6195.jpg
/home/nano/Desktop/images/23012025/21/23/image_23012025_21_23_31_6196.jpg
/home/nano/Desktop/images/23012025/21/23/image_23012025_21_23_24_6191.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330868835","1330868829","1330868820","1330868840","1330868825","1330868845"],"photo_ids_order":["1330868820","1330868825","1330868829","1330868835","1330868840","1330868845"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7c437cb3d1209070cc3954328b50fe6b.jpg","text":"TemporaryFile(/tmp/multipartBody6639438834812923523asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663903312,"filename":"image_23012025_21_23_37_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1a3ccf662421163b0538f5fd47e7be8b.jpg","text":"TemporaryFile(/tmp/multipartBody8167127938352112298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663903312,"filename":"image_23012025_21_23_42_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0ed5f3c795611a28c3bc4bb255efd890.jpg","text":"TemporaryFile(/tmp/multipartBody914986696610353236asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663903312,"filename":"image_23012025_21_24_01_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/66277033c83aaa1b29e34e2c00a27085.jpg","text":"TemporaryFile(/tmp/multipartBody7478163210032285509asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663903312,"filename":"image_23012025_21_23_31_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/938b3859dd369ec23aabf4fde2aa8fbf.jpg","text":"TemporaryFile(/tmp/multipartBody4648390525489792429asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663903312,"filename":"image_23012025_21_23_48_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2b1530c451185411b1806890138b9445.jpg","text":"TemporaryFile(/tmp/multipartBody4907917489674643743asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663903312,"filename":"image_23012025_21_23_24_6191.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330868829","file1":"1330868825","file0":"1330868820","file4":"1330868840","file5":"1330868845","file3":"1330868835"},"map_files_photo_id_array":[{"photo_id":"1330868845","filename":"file5"},{"photo_id":"1330868829","filename":"file2"},{"photo_id":"1330868840","filename":"file4"},{"photo_id":"1330868825","filename":"file1"},{"photo_id":"1330868820","filename":"file0"},{"photo_id":"1330868835","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330868835":["hashtag1","hashtag2"]},{"1330868829":["hashtag1","hashtag2"]},{"1330868820":["hashtag1","hashtag2"]},{"1330868840":["hashtag1","hashtag2"]},{"1330868825":["hashtag1","hashtag2"]},{"1330868845":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330868835, 1330868829, 1330868820, 1330868840, 1330868825, 1330868845)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.670329570770264 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:25:02.751682
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/24/image_23012025_21_24_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/24/image_23012025_21_24_48_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/24/image_23012025_21_24_42_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/24/image_23012025_21_24_36_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/21/24/image_23012025_21_24_31_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/21/24/image_23012025_21_24_25_6192.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/24/image_23012025_21_24_55_6188.jpg', '/home/nano/Desktop/images/23012025/21/24/image_23012025_21_24_48_6188.jpg', '/home/nano/Desktop/images/23012025/21/24/image_23012025_21_24_42_6187.jpg', '/home/nano/Desktop/images/23012025/21/24/image_23012025_21_24_36_5178.jpg', '/home/nano/Desktop/images/23012025/21/24/image_23012025_21_24_31_6190.jpg', '/home/nano/Desktop/images/23012025/21/24/image_23012025_21_24_25_6192.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/24/image_23012025_21_24_55_6188.jpg
/home/nano/Desktop/images/23012025/21/24/image_23012025_21_24_48_6188.jpg
/home/nano/Desktop/images/23012025/21/24/image_23012025_21_24_42_6187.jpg
/home/nano/Desktop/images/23012025/21/24/image_23012025_21_24_36_5178.jpg
/home/nano/Desktop/images/23012025/21/24/image_23012025_21_24_31_6190.jpg
/home/nano/Desktop/images/23012025/21/24/image_23012025_21_24_25_6192.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330868891","1330868885","1330868879","1330868870","1330868873","1330868896"],"photo_ids_order":["1330868870","1330868873","1330868879","1330868885","1330868891","1330868896"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3a8daed070594713863cb4a371bd6ef6.jpg","text":"TemporaryFile(/tmp/multipartBody6876747362156218461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663963156,"filename":"image_23012025_21_24_31_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1c8f5c4a0e4bc31271f2fdeee6fec339.jpg","text":"TemporaryFile(/tmp/multipartBody2948533357048680519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663963156,"filename":"image_23012025_21_24_36_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bf3ea936da3ca261732b97819089eedb.jpg","text":"TemporaryFile(/tmp/multipartBody3985401942970910068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663963156,"filename":"image_23012025_21_24_42_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/25a0b40060e2885e358a7c0cec05b032.jpg","text":"TemporaryFile(/tmp/multipartBody1349454113087239161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663963156,"filename":"image_23012025_21_24_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8e594af96f609e8390b2d2db4e86ef97.jpg","text":"TemporaryFile(/tmp/multipartBody5067200394360046405asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663963156,"filename":"image_23012025_21_24_48_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/dee5b0542270b2800fcab99cb14362e8.jpg","text":"TemporaryFile(/tmp/multipartBody6912616058617196783asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737663963156,"filename":"image_23012025_21_24_25_6192.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330868879","file1":"1330868873","file0":"1330868870","file4":"1330868891","file5":"1330868896","file3":"1330868885"},"map_files_photo_id_array":[{"photo_id":"1330868896","filename":"file5"},{"photo_id":"1330868879","filename":"file2"},{"photo_id":"1330868891","filename":"file4"},{"photo_id":"1330868873","filename":"file1"},{"photo_id":"1330868870","filename":"file0"},{"photo_id":"1330868885","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330868891":["hashtag1","hashtag2"]},{"1330868885":["hashtag1","hashtag2"]},{"1330868879":["hashtag1","hashtag2"]},{"1330868870":["hashtag1","hashtag2"]},{"1330868873":["hashtag1","hashtag2"]},{"1330868896":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330868891, 1330868885, 1330868879, 1330868870, 1330868873, 1330868896)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.999691009521484 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:26:02.682451
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/25/image_23012025_21_25_55_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/25/image_23012025_21_25_49_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/25/image_23012025_21_25_42_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/25/image_23012025_21_25_36_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/21/25/image_23012025_21_25_30_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/21/25/image_23012025_21_25_25_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/25/image_23012025_21_25_55_6187.jpg', '/home/nano/Desktop/images/23012025/21/25/image_23012025_21_25_49_6187.jpg', '/home/nano/Desktop/images/23012025/21/25/image_23012025_21_25_42_6188.jpg', '/home/nano/Desktop/images/23012025/21/25/image_23012025_21_25_36_6190.jpg', '/home/nano/Desktop/images/23012025/21/25/image_23012025_21_25_30_5177.jpg', '/home/nano/Desktop/images/23012025/21/25/image_23012025_21_25_25_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/25/image_23012025_21_25_55_6187.jpg
/home/nano/Desktop/images/23012025/21/25/image_23012025_21_25_49_6187.jpg
/home/nano/Desktop/images/23012025/21/25/image_23012025_21_25_42_6188.jpg
/home/nano/Desktop/images/23012025/21/25/image_23012025_21_25_36_6190.jpg
/home/nano/Desktop/images/23012025/21/25/image_23012025_21_25_30_5177.jpg
/home/nano/Desktop/images/23012025/21/25/image_23012025_21_25_25_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330868937","1330868927","1330868942","1330868924","1330868918","1330868932"],"photo_ids_order":["1330868918","1330868924","1330868927","1330868932","1330868937","1330868942"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/50b3815544e597093a4628f6afce669e.jpg","text":"TemporaryFile(/tmp/multipartBody6101994090979892987asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664023092,"filename":"image_23012025_21_25_30_5177.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/53f07ff8d4b54b9c529cbd0ec3ffbd31.jpg","text":"TemporaryFile(/tmp/multipartBody5066841082318442885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664023092,"filename":"image_23012025_21_25_42_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/91d364f3ddf1079e51d3d562b9d42528.jpg","text":"TemporaryFile(/tmp/multipartBody1809735748713281712asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664023092,"filename":"image_23012025_21_25_25_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9c56d14138639097cf4ee92b273a1faf.jpg","text":"TemporaryFile(/tmp/multipartBody959685544779695773asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664023092,"filename":"image_23012025_21_25_49_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c57b3e6d9fe4d7b0f4a5aa2c73f0f1b2.jpg","text":"TemporaryFile(/tmp/multipartBody4407548137389361138asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664023092,"filename":"image_23012025_21_25_55_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c2437ac570122e3b6cf34549d952d4b1.jpg","text":"TemporaryFile(/tmp/multipartBody3986135488865159432asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664023092,"filename":"image_23012025_21_25_36_6190.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330868927","file1":"1330868924","file0":"1330868918","file4":"1330868937","file5":"1330868942","file3":"1330868932"},"map_files_photo_id_array":[{"photo_id":"1330868942","filename":"file5"},{"photo_id":"1330868927","filename":"file2"},{"photo_id":"1330868937","filename":"file4"},{"photo_id":"1330868924","filename":"file1"},{"photo_id":"1330868918","filename":"file0"},{"photo_id":"1330868932","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330868937":["hashtag1","hashtag2"]},{"1330868927":["hashtag1","hashtag2"]},{"1330868942":["hashtag1","hashtag2"]},{"1330868924":["hashtag1","hashtag2"]},{"1330868918":["hashtag1","hashtag2"]},{"1330868932":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330868937, 1330868927, 1330868942, 1330868924, 1330868918, 1330868932)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.07394981384277 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:27:02.970828
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/26/image_23012025_21_26_55_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/21/26/image_23012025_21_26_48_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/26/image_23012025_21_26_42_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/21/26/image_23012025_21_26_36_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/26/image_23012025_21_26_30_5175.jpg', 2), ('/home/nano/Desktop/images/23012025/21/26/image_23012025_21_26_25_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/26/image_23012025_21_26_55_6191.jpg', '/home/nano/Desktop/images/23012025/21/26/image_23012025_21_26_48_6187.jpg', '/home/nano/Desktop/images/23012025/21/26/image_23012025_21_26_42_6189.jpg', '/home/nano/Desktop/images/23012025/21/26/image_23012025_21_26_36_6187.jpg', '/home/nano/Desktop/images/23012025/21/26/image_23012025_21_26_30_5175.jpg', '/home/nano/Desktop/images/23012025/21/26/image_23012025_21_26_25_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/26/image_23012025_21_26_55_6191.jpg
/home/nano/Desktop/images/23012025/21/26/image_23012025_21_26_48_6187.jpg
/home/nano/Desktop/images/23012025/21/26/image_23012025_21_26_42_6189.jpg
/home/nano/Desktop/images/23012025/21/26/image_23012025_21_26_36_6187.jpg
/home/nano/Desktop/images/23012025/21/26/image_23012025_21_26_30_5175.jpg
/home/nano/Desktop/images/23012025/21/26/image_23012025_21_26_25_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330869020","1330869038","1330869034","1330869028","1330869013","1330869007"],"photo_ids_order":["1330869007","1330869013","1330869020","1330869028","1330869034","1330869038"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/21090c0f756fb111dc270329dd7fb6d4.jpg","text":"TemporaryFile(/tmp/multipartBody312329121211600133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664083441,"filename":"image_23012025_21_26_42_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7759143745ed43e8648eb3ca0afc7bcf.jpg","text":"TemporaryFile(/tmp/multipartBody966747795106889646asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664083441,"filename":"image_23012025_21_26_25_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/307081f1f2e05d779d678e6663bcfb6b.jpg","text":"TemporaryFile(/tmp/multipartBody4674548662494611824asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664083441,"filename":"image_23012025_21_26_30_5175.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0848f24c4facc70abd8a524bdd49220a.jpg","text":"TemporaryFile(/tmp/multipartBody6013480738615988639asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664083441,"filename":"image_23012025_21_26_36_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3ff8259dafff175e320d0471f9ffe9e5.jpg","text":"TemporaryFile(/tmp/multipartBody903571099985240029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664083441,"filename":"image_23012025_21_26_48_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/768ccdbd0ad0baf81d7de6caf58e8423.jpg","text":"TemporaryFile(/tmp/multipartBody542032046524291462asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664083441,"filename":"image_23012025_21_26_55_6191.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330869020","file1":"1330869013","file0":"1330869007","file4":"1330869034","file5":"1330869038","file3":"1330869028"},"map_files_photo_id_array":[{"photo_id":"1330869038","filename":"file5"},{"photo_id":"1330869020","filename":"file2"},{"photo_id":"1330869034","filename":"file4"},{"photo_id":"1330869013","filename":"file1"},{"photo_id":"1330869007","filename":"file0"},{"photo_id":"1330869028","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330869020":["hashtag1","hashtag2"]},{"1330869038":["hashtag1","hashtag2"]},{"1330869034":["hashtag1","hashtag2"]},{"1330869028":["hashtag1","hashtag2"]},{"1330869013":["hashtag1","hashtag2"]},{"1330869007":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330869020, 1330869038, 1330869034, 1330869028, 1330869013, 1330869007)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.96031141281128 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:28:03.002578
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/27/image_23012025_21_27_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/27/image_23012025_21_27_48_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/21/27/image_23012025_21_27_42_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/21/27/image_23012025_21_27_36_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/21/27/image_23012025_21_27_31_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/21/27/image_23012025_21_27_25_6192.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/27/image_23012025_21_27_55_6188.jpg', '/home/nano/Desktop/images/23012025/21/27/image_23012025_21_27_48_6192.jpg', '/home/nano/Desktop/images/23012025/21/27/image_23012025_21_27_42_6189.jpg', '/home/nano/Desktop/images/23012025/21/27/image_23012025_21_27_36_5180.jpg', '/home/nano/Desktop/images/23012025/21/27/image_23012025_21_27_31_6193.jpg', '/home/nano/Desktop/images/23012025/21/27/image_23012025_21_27_25_6192.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/27/image_23012025_21_27_55_6188.jpg
/home/nano/Desktop/images/23012025/21/27/image_23012025_21_27_48_6192.jpg
/home/nano/Desktop/images/23012025/21/27/image_23012025_21_27_42_6189.jpg
/home/nano/Desktop/images/23012025/21/27/image_23012025_21_27_36_5180.jpg
/home/nano/Desktop/images/23012025/21/27/image_23012025_21_27_31_6193.jpg
/home/nano/Desktop/images/23012025/21/27/image_23012025_21_27_25_6192.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330869227","1330869206","1330869218","1330869223","1330869211","1330869214"],"photo_ids_order":["1330869206","1330869211","1330869214","1330869218","1330869223","1330869227"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c191b1c7d6266fd20301f42c9dcb1a60.jpg","text":"TemporaryFile(/tmp/multipartBody6322569766397720019asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664143456,"filename":"image_23012025_21_27_25_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f725cfc197be79235a69b548989a896d.jpg","text":"TemporaryFile(/tmp/multipartBody441820125881348222asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664143456,"filename":"image_23012025_21_27_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fa6e4f632eca369496bd9542e12341fd.jpg","text":"TemporaryFile(/tmp/multipartBody3364823335652057459asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664143456,"filename":"image_23012025_21_27_36_5180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3de10593f406cecca83bc946a8a42ecb.jpg","text":"TemporaryFile(/tmp/multipartBody8590249382731938178asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664143456,"filename":"image_23012025_21_27_31_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5c04acea7bf9303415f5a70e48bfc9a0.jpg","text":"TemporaryFile(/tmp/multipartBody3562446440699835191asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664143456,"filename":"image_23012025_21_27_48_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/84a136defac0cc48c1ef82b3040e5a6c.jpg","text":"TemporaryFile(/tmp/multipartBody6418479122232328841asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664143456,"filename":"image_23012025_21_27_42_6189.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330869214","file1":"1330869211","file0":"1330869206","file4":"1330869223","file5":"1330869227","file3":"1330869218"},"map_files_photo_id_array":[{"photo_id":"1330869227","filename":"file5"},{"photo_id":"1330869214","filename":"file2"},{"photo_id":"1330869223","filename":"file4"},{"photo_id":"1330869211","filename":"file1"},{"photo_id":"1330869206","filename":"file0"},{"photo_id":"1330869218","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330869227":["hashtag1","hashtag2"]},{"1330869206":["hashtag1","hashtag2"]},{"1330869218":["hashtag1","hashtag2"]},{"1330869223":["hashtag1","hashtag2"]},{"1330869211":["hashtag1","hashtag2"]},{"1330869214":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330869227, 1330869206, 1330869218, 1330869223, 1330869211, 1330869214)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.05944752693176 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:29:03.571355
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/28/image_23012025_21_28_54_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/28/image_23012025_21_28_48_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/21/28/image_23012025_21_28_42_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/21/28/image_23012025_21_28_36_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/21/28/image_23012025_21_28_31_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/28/image_23012025_21_28_25_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/28/image_23012025_21_28_54_6197.jpg', '/home/nano/Desktop/images/23012025/21/28/image_23012025_21_28_48_6195.jpg', '/home/nano/Desktop/images/23012025/21/28/image_23012025_21_28_42_6195.jpg', '/home/nano/Desktop/images/23012025/21/28/image_23012025_21_28_36_5186.jpg', '/home/nano/Desktop/images/23012025/21/28/image_23012025_21_28_31_6187.jpg', '/home/nano/Desktop/images/23012025/21/28/image_23012025_21_28_25_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/28/image_23012025_21_28_54_6197.jpg
/home/nano/Desktop/images/23012025/21/28/image_23012025_21_28_48_6195.jpg
/home/nano/Desktop/images/23012025/21/28/image_23012025_21_28_42_6195.jpg
/home/nano/Desktop/images/23012025/21/28/image_23012025_21_28_36_5186.jpg
/home/nano/Desktop/images/23012025/21/28/image_23012025_21_28_31_6187.jpg
/home/nano/Desktop/images/23012025/21/28/image_23012025_21_28_25_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330869281","1330869284","1330869274","1330869277","1330869265","1330869259"],"photo_ids_order":["1330869259","1330869265","1330869274","1330869277","1330869281","1330869284"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/982e232d1dbd2fbf71881ab7f42e2cd2.jpg","text":"TemporaryFile(/tmp/multipartBody3644755840973079210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664204111,"filename":"image_23012025_21_28_31_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e7d80485924e2934a7fc16107b466608.jpg","text":"TemporaryFile(/tmp/multipartBody284585098284600977asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664204111,"filename":"image_23012025_21_28_25_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/250617feec56c4dbdfba15020c9fa9ca.jpg","text":"TemporaryFile(/tmp/multipartBody6334830327424658892asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664204111,"filename":"image_23012025_21_28_42_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cb17ab8cb612085a89aaaa31781d8101.jpg","text":"TemporaryFile(/tmp/multipartBody2585742777662212584asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664204111,"filename":"image_23012025_21_28_36_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9548bc65d75d222f2879946b42672799.jpg","text":"TemporaryFile(/tmp/multipartBody3757477857241006420asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664204111,"filename":"image_23012025_21_28_48_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/47ce762e4e803e00be1d87d8a45440c7.jpg","text":"TemporaryFile(/tmp/multipartBody3021208203187619528asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664204111,"filename":"image_23012025_21_28_54_6197.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330869274","file1":"1330869265","file0":"1330869259","file4":"1330869281","file5":"1330869284","file3":"1330869277"},"map_files_photo_id_array":[{"photo_id":"1330869284","filename":"file5"},{"photo_id":"1330869274","filename":"file2"},{"photo_id":"1330869281","filename":"file4"},{"photo_id":"1330869265","filename":"file1"},{"photo_id":"1330869259","filename":"file0"},{"photo_id":"1330869277","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330869281":["hashtag1","hashtag2"]},{"1330869284":["hashtag1","hashtag2"]},{"1330869274":["hashtag1","hashtag2"]},{"1330869277":["hashtag1","hashtag2"]},{"1330869265":["hashtag1","hashtag2"]},{"1330869259":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330869281, 1330869284, 1330869274, 1330869277, 1330869265, 1330869259)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.099542379379272 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:30:03.146009
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/29/image_23012025_21_29_54_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/29/image_23012025_21_29_48_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/21/29/image_23012025_21_29_42_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/21/29/image_23012025_21_29_37_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/29/image_23012025_21_29_31_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/21/29/image_23012025_21_29_24_6190.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/29/image_23012025_21_29_54_6188.jpg', '/home/nano/Desktop/images/23012025/21/29/image_23012025_21_29_48_6189.jpg', '/home/nano/Desktop/images/23012025/21/29/image_23012025_21_29_42_5178.jpg', '/home/nano/Desktop/images/23012025/21/29/image_23012025_21_29_37_6188.jpg', '/home/nano/Desktop/images/23012025/21/29/image_23012025_21_29_31_6189.jpg', '/home/nano/Desktop/images/23012025/21/29/image_23012025_21_29_24_6190.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/29/image_23012025_21_29_54_6188.jpg
/home/nano/Desktop/images/23012025/21/29/image_23012025_21_29_48_6189.jpg
/home/nano/Desktop/images/23012025/21/29/image_23012025_21_29_42_5178.jpg
/home/nano/Desktop/images/23012025/21/29/image_23012025_21_29_37_6188.jpg
/home/nano/Desktop/images/23012025/21/29/image_23012025_21_29_31_6189.jpg
/home/nano/Desktop/images/23012025/21/29/image_23012025_21_29_24_6190.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330869345","1330869339","1330869315","1330869329","1330869325","1330869319"],"photo_ids_order":["1330869315","1330869319","1330869325","1330869329","1330869339","1330869345"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/89991673d18313a248d6b969d7b1f88a.jpg","text":"TemporaryFile(/tmp/multipartBody4776528106990861231asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664263543,"filename":"image_23012025_21_29_24_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/552b4e4f5b1f70623a9e7863a6f7754f.jpg","text":"TemporaryFile(/tmp/multipartBody4563505905248958629asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664263543,"filename":"image_23012025_21_29_31_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2aecb4a701c274f402e3a2f7992973bf.jpg","text":"TemporaryFile(/tmp/multipartBody2164321901824982461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664263543,"filename":"image_23012025_21_29_54_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/082cd04bf62dfcc1448ae233601b541a.jpg","text":"TemporaryFile(/tmp/multipartBody4200369689230474200asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664263543,"filename":"image_23012025_21_29_37_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b9a51dd8ac61a1d1d29b5ca7df37ed5e.jpg","text":"TemporaryFile(/tmp/multipartBody8362531490691228206asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664263543,"filename":"image_23012025_21_29_42_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3bab25eb613be9fbe4d3b0f6c4845709.jpg","text":"TemporaryFile(/tmp/multipartBody1032228970454364346asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664263543,"filename":"image_23012025_21_29_48_6189.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330869325","file1":"1330869319","file0":"1330869315","file4":"1330869339","file5":"1330869345","file3":"1330869329"},"map_files_photo_id_array":[{"photo_id":"1330869345","filename":"file5"},{"photo_id":"1330869325","filename":"file2"},{"photo_id":"1330869339","filename":"file4"},{"photo_id":"1330869319","filename":"file1"},{"photo_id":"1330869315","filename":"file0"},{"photo_id":"1330869329","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330869345":["hashtag1","hashtag2"]},{"1330869339":["hashtag1","hashtag2"]},{"1330869315":["hashtag1","hashtag2"]},{"1330869329":["hashtag1","hashtag2"]},{"1330869325":["hashtag1","hashtag2"]},{"1330869319":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330869345, 1330869339, 1330869315, 1330869329, 1330869325, 1330869319)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.587111473083496 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:31:03.464812
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/30/image_23012025_21_30_54_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/30/image_23012025_21_30_48_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/30/image_23012025_21_30_42_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/21/30/image_23012025_21_30_37_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/21/30/image_23012025_21_30_31_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/30/image_23012025_21_30_24_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/30/image_23012025_21_30_54_6187.jpg', '/home/nano/Desktop/images/23012025/21/30/image_23012025_21_30_48_6187.jpg', '/home/nano/Desktop/images/23012025/21/30/image_23012025_21_30_42_5178.jpg', '/home/nano/Desktop/images/23012025/21/30/image_23012025_21_30_37_6195.jpg', '/home/nano/Desktop/images/23012025/21/30/image_23012025_21_30_31_6188.jpg', '/home/nano/Desktop/images/23012025/21/30/image_23012025_21_30_24_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/30/image_23012025_21_30_54_6187.jpg
/home/nano/Desktop/images/23012025/21/30/image_23012025_21_30_48_6187.jpg
/home/nano/Desktop/images/23012025/21/30/image_23012025_21_30_42_5178.jpg
/home/nano/Desktop/images/23012025/21/30/image_23012025_21_30_37_6195.jpg
/home/nano/Desktop/images/23012025/21/30/image_23012025_21_30_31_6188.jpg
/home/nano/Desktop/images/23012025/21/30/image_23012025_21_30_24_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330869401","1330869391","1330869373","1330869382","1330869396","1330869375"],"photo_ids_order":["1330869373","1330869375","1330869382","1330869391","1330869396","1330869401"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8770c49f1c96382006cc80ea8855df37.jpg","text":"TemporaryFile(/tmp/multipartBody4821150304835831011asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664323957,"filename":"image_23012025_21_30_24_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d51423d2bbf1bbe7970ead49edce7708.jpg","text":"TemporaryFile(/tmp/multipartBody8661248513806953699asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664323957,"filename":"image_23012025_21_30_37_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/703fd5cb2aa711485763dd45860f742d.jpg","text":"TemporaryFile(/tmp/multipartBody3008743619380786305asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664323957,"filename":"image_23012025_21_30_54_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5bd6dcfbdc6095041e98ce9da67a379e.jpg","text":"TemporaryFile(/tmp/multipartBody5891149148921286489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664323957,"filename":"image_23012025_21_30_42_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/28d45f5c7e0e443fefce2a22e12332b0.jpg","text":"TemporaryFile(/tmp/multipartBody5134469256604435936asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664323957,"filename":"image_23012025_21_30_31_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/461ee3335c2ae45ba252dc0ecddffc36.jpg","text":"TemporaryFile(/tmp/multipartBody6531873544009749758asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664323957,"filename":"image_23012025_21_30_48_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330869382","file1":"1330869375","file0":"1330869373","file4":"1330869396","file5":"1330869401","file3":"1330869391"},"map_files_photo_id_array":[{"photo_id":"1330869401","filename":"file5"},{"photo_id":"1330869382","filename":"file2"},{"photo_id":"1330869396","filename":"file4"},{"photo_id":"1330869375","filename":"file1"},{"photo_id":"1330869373","filename":"file0"},{"photo_id":"1330869391","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330869401":["hashtag1","hashtag2"]},{"1330869391":["hashtag1","hashtag2"]},{"1330869373":["hashtag1","hashtag2"]},{"1330869382":["hashtag1","hashtag2"]},{"1330869396":["hashtag1","hashtag2"]},{"1330869375":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330869401, 1330869391, 1330869373, 1330869382, 1330869396, 1330869375)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.633342742919922 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:32:02.371394
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/31/image_23012025_21_31_54_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/31/image_23012025_21_31_48_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/21/31/image_23012025_21_31_43_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/31/image_23012025_21_31_37_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/21/31/image_23012025_21_31_30_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/31/image_23012025_21_31_24_6191.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/31/image_23012025_21_31_54_6196.jpg', '/home/nano/Desktop/images/23012025/21/31/image_23012025_21_31_48_5185.jpg', '/home/nano/Desktop/images/23012025/21/31/image_23012025_21_31_43_6188.jpg', '/home/nano/Desktop/images/23012025/21/31/image_23012025_21_31_37_6190.jpg', '/home/nano/Desktop/images/23012025/21/31/image_23012025_21_31_30_6187.jpg', '/home/nano/Desktop/images/23012025/21/31/image_23012025_21_31_24_6191.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/31/image_23012025_21_31_54_6196.jpg
/home/nano/Desktop/images/23012025/21/31/image_23012025_21_31_48_5185.jpg
/home/nano/Desktop/images/23012025/21/31/image_23012025_21_31_43_6188.jpg
/home/nano/Desktop/images/23012025/21/31/image_23012025_21_31_37_6190.jpg
/home/nano/Desktop/images/23012025/21/31/image_23012025_21_31_30_6187.jpg
/home/nano/Desktop/images/23012025/21/31/image_23012025_21_31_24_6191.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330869459","1330869674","1330869662","1330869463","1330869451","1330869454"],"photo_ids_order":["1330869451","1330869454","1330869459","1330869463","1330869662","1330869674"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9588b4bfcc466b24ba6da96c59caee00.jpg","text":"TemporaryFile(/tmp/multipartBody5294366078999191560asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664382880,"filename":"image_23012025_21_31_43_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3c3d8c24ef71b5b35595f97d4eef9410.jpg","text":"TemporaryFile(/tmp/multipartBody8549906188848687169asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664382880,"filename":"image_23012025_21_31_24_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/12f0bfba4781cb009aa1dacf333eb756.jpg","text":"TemporaryFile(/tmp/multipartBody8513151948947625803asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664382880,"filename":"image_23012025_21_31_30_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5b599d3a568b68b0772077eb408340d0.jpg","text":"TemporaryFile(/tmp/multipartBody7523122883299842028asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664382880,"filename":"image_23012025_21_31_37_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4f62f3c29ddf4ad92bb8829342374f41.jpg","text":"TemporaryFile(/tmp/multipartBody7659955653815639216asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664382880,"filename":"image_23012025_21_31_54_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f31478a3f964689575f58572b811f497.jpg","text":"TemporaryFile(/tmp/multipartBody4801351216905723306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664382880,"filename":"image_23012025_21_31_48_5185.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330869459","file1":"1330869454","file0":"1330869451","file4":"1330869662","file5":"1330869674","file3":"1330869463"},"map_files_photo_id_array":[{"photo_id":"1330869674","filename":"file5"},{"photo_id":"1330869459","filename":"file2"},{"photo_id":"1330869662","filename":"file4"},{"photo_id":"1330869454","filename":"file1"},{"photo_id":"1330869451","filename":"file0"},{"photo_id":"1330869463","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330869459":["hashtag1","hashtag2"]},{"1330869674":["hashtag1","hashtag2"]},{"1330869662":["hashtag1","hashtag2"]},{"1330869463":["hashtag1","hashtag2"]},{"1330869451":["hashtag1","hashtag2"]},{"1330869454":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330869459, 1330869674, 1330869662, 1330869463, 1330869451, 1330869454)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.40166687965393 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:33:02.449084
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/33/image_23012025_21_34_00_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/21/32/image_23012025_21_32_54_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/21/32/image_23012025_21_32_43_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/21/32/image_23012025_21_32_37_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/21/32/image_23012025_21_32_30_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/21/32/image_23012025_21_32_24_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/33/image_23012025_21_34_00_6189.jpg', '/home/nano/Desktop/images/23012025/21/32/image_23012025_21_32_54_6202.jpg', '/home/nano/Desktop/images/23012025/21/32/image_23012025_21_32_43_6200.jpg', '/home/nano/Desktop/images/23012025/21/32/image_23012025_21_32_37_6193.jpg', '/home/nano/Desktop/images/23012025/21/32/image_23012025_21_32_30_6193.jpg', '/home/nano/Desktop/images/23012025/21/32/image_23012025_21_32_24_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/33/image_23012025_21_34_00_6189.jpg
/home/nano/Desktop/images/23012025/21/32/image_23012025_21_32_54_6202.jpg
/home/nano/Desktop/images/23012025/21/32/image_23012025_21_32_43_6200.jpg
/home/nano/Desktop/images/23012025/21/32/image_23012025_21_32_37_6193.jpg
/home/nano/Desktop/images/23012025/21/32/image_23012025_21_32_30_6193.jpg
/home/nano/Desktop/images/23012025/21/32/image_23012025_21_32_24_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330869876","1330869872","1330869886","1330869883","1330869879","1330869870"],"photo_ids_order":["1330869870","1330869872","1330869876","1330869879","1330869883","1330869886"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0a5bb90be999b686b8de0f3c9e73d8c6.jpg","text":"TemporaryFile(/tmp/multipartBody2844963448666610553asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664443049,"filename":"image_23012025_21_32_43_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e749a5a53eebaba8cfa021ca6b81e91f.jpg","text":"TemporaryFile(/tmp/multipartBody6440625465370380372asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664443049,"filename":"image_23012025_21_32_54_6202.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5f5ed563eff6ee5df0ca1f7298ea745a.jpg","text":"TemporaryFile(/tmp/multipartBody4203215210962764125asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664443049,"filename":"image_23012025_21_32_24_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0cb2899a7afbd62db41ec35f41c6f549.jpg","text":"TemporaryFile(/tmp/multipartBody1538879930516946733asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664443049,"filename":"image_23012025_21_32_30_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b2b3ecf77a3b50ef8453fdf1c8d4303c.jpg","text":"TemporaryFile(/tmp/multipartBody1374611335411874088asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664443049,"filename":"image_23012025_21_32_37_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/39fe8f91256d70c20adcdaccbdfe33c7.jpg","text":"TemporaryFile(/tmp/multipartBody4578915729141347232asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664443049,"filename":"image_23012025_21_34_00_6189.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330869876","file1":"1330869872","file0":"1330869870","file4":"1330869883","file5":"1330869886","file3":"1330869879"},"map_files_photo_id_array":[{"photo_id":"1330869886","filename":"file5"},{"photo_id":"1330869876","filename":"file2"},{"photo_id":"1330869883","filename":"file4"},{"photo_id":"1330869872","filename":"file1"},{"photo_id":"1330869870","filename":"file0"},{"photo_id":"1330869879","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330869876":["hashtag1","hashtag2"]},{"1330869872":["hashtag1","hashtag2"]},{"1330869886":["hashtag1","hashtag2"]},{"1330869883":["hashtag1","hashtag2"]},{"1330869879":["hashtag1","hashtag2"]},{"1330869870":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330869876, 1330869872, 1330869886, 1330869883, 1330869879, 1330869870)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.444277048110962 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:34:02.708328
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/33/image_23012025_21_33_49_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/21/33/image_23012025_21_33_43_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/21/33/image_23012025_21_33_36_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/21/33/image_23012025_21_33_30_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/21/33/image_23012025_21_33_24_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/33/image_23012025_21_33_19_6190.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/33/image_23012025_21_33_49_6189.jpg', '/home/nano/Desktop/images/23012025/21/33/image_23012025_21_33_43_6191.jpg', '/home/nano/Desktop/images/23012025/21/33/image_23012025_21_33_36_6192.jpg', '/home/nano/Desktop/images/23012025/21/33/image_23012025_21_33_30_6194.jpg', '/home/nano/Desktop/images/23012025/21/33/image_23012025_21_33_24_5187.jpg', '/home/nano/Desktop/images/23012025/21/33/image_23012025_21_33_19_6190.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/33/image_23012025_21_33_49_6189.jpg
/home/nano/Desktop/images/23012025/21/33/image_23012025_21_33_43_6191.jpg
/home/nano/Desktop/images/23012025/21/33/image_23012025_21_33_36_6192.jpg
/home/nano/Desktop/images/23012025/21/33/image_23012025_21_33_30_6194.jpg
/home/nano/Desktop/images/23012025/21/33/image_23012025_21_33_24_5187.jpg
/home/nano/Desktop/images/23012025/21/33/image_23012025_21_33_19_6190.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330870000","1330869921","1330869995","1330870005","1330869943","1330869990"],"photo_ids_order":["1330869921","1330869943","1330869990","1330869995","1330870000","1330870005"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4d83f2000e37cf5662d8506d78587d2e.jpg","text":"TemporaryFile(/tmp/multipartBody4418480644304234306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664503221,"filename":"image_23012025_21_33_24_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4a46d60782a44899e39809f37399eebc.jpg","text":"TemporaryFile(/tmp/multipartBody6610899054103555214asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664503221,"filename":"image_23012025_21_33_49_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/55619f62401c4fcacd98ed0c08bd2042.jpg","text":"TemporaryFile(/tmp/multipartBody1405048718447227873asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664503221,"filename":"image_23012025_21_33_30_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7e7cf3935d2c0d2fab163cf5ce865779.jpg","text":"TemporaryFile(/tmp/multipartBody5946691196224143738asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664503221,"filename":"image_23012025_21_33_19_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e9733e7699e84d93564dd14ad9720ed3.jpg","text":"TemporaryFile(/tmp/multipartBody1815449634236368068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664503221,"filename":"image_23012025_21_33_43_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/db1f2348818e350ac00c16b37a4276da.jpg","text":"TemporaryFile(/tmp/multipartBody6903491454361469710asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664503221,"filename":"image_23012025_21_33_36_6192.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330869990","file1":"1330869943","file0":"1330869921","file4":"1330870000","file5":"1330870005","file3":"1330869995"},"map_files_photo_id_array":[{"photo_id":"1330870005","filename":"file5"},{"photo_id":"1330869990","filename":"file2"},{"photo_id":"1330870000","filename":"file4"},{"photo_id":"1330869943","filename":"file1"},{"photo_id":"1330869921","filename":"file0"},{"photo_id":"1330869995","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330870000":["hashtag1","hashtag2"]},{"1330869921":["hashtag1","hashtag2"]},{"1330869995":["hashtag1","hashtag2"]},{"1330870005":["hashtag1","hashtag2"]},{"1330869943":["hashtag1","hashtag2"]},{"1330869990":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330870000, 1330869921, 1330869995, 1330870005, 1330869943, 1330869990)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.418806791305542 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:35:02.891895
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/34/image_23012025_21_34_54_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/21/34/image_23012025_21_34_49_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/34/image_23012025_21_34_43_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/34/image_23012025_21_34_36_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/21/34/image_23012025_21_34_30_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/21/34/image_23012025_21_34_24_5181.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/34/image_23012025_21_34_54_5177.jpg', '/home/nano/Desktop/images/23012025/21/34/image_23012025_21_34_49_6188.jpg', '/home/nano/Desktop/images/23012025/21/34/image_23012025_21_34_43_6187.jpg', '/home/nano/Desktop/images/23012025/21/34/image_23012025_21_34_36_6189.jpg', '/home/nano/Desktop/images/23012025/21/34/image_23012025_21_34_30_6189.jpg', '/home/nano/Desktop/images/23012025/21/34/image_23012025_21_34_24_5181.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/34/image_23012025_21_34_54_5177.jpg
/home/nano/Desktop/images/23012025/21/34/image_23012025_21_34_49_6188.jpg
/home/nano/Desktop/images/23012025/21/34/image_23012025_21_34_43_6187.jpg
/home/nano/Desktop/images/23012025/21/34/image_23012025_21_34_36_6189.jpg
/home/nano/Desktop/images/23012025/21/34/image_23012025_21_34_30_6189.jpg
/home/nano/Desktop/images/23012025/21/34/image_23012025_21_34_24_5181.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330870059","1330870047","1330870044","1330870055","1330870063","1330870042"],"photo_ids_order":["1330870042","1330870044","1330870047","1330870055","1330870059","1330870063"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b047864a86d084a32684baa15c79ed63.jpg","text":"TemporaryFile(/tmp/multipartBody2701843339547389224asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664563279,"filename":"image_23012025_21_34_30_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/586a36a96357f60a1fd012e82a382b45.jpg","text":"TemporaryFile(/tmp/multipartBody8569799329284283323asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664563279,"filename":"image_23012025_21_34_43_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/aacd3fa7e07051b607bdbc377d71a03f.jpg","text":"TemporaryFile(/tmp/multipartBody4251061186638356738asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664563279,"filename":"image_23012025_21_34_49_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bce67ab1ec25fd5eb4ceb7897df09e75.jpg","text":"TemporaryFile(/tmp/multipartBody1137554327907623666asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664563279,"filename":"image_23012025_21_34_36_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b0b4f02508101c5d1d683907add901c2.jpg","text":"TemporaryFile(/tmp/multipartBody8558637230410440603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664563279,"filename":"image_23012025_21_34_24_5181.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/489957ff46d6121ee96599b62d9e97a4.jpg","text":"TemporaryFile(/tmp/multipartBody5044635919076643314asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664563279,"filename":"image_23012025_21_34_54_5177.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330870047","file1":"1330870044","file0":"1330870042","file4":"1330870059","file5":"1330870063","file3":"1330870055"},"map_files_photo_id_array":[{"photo_id":"1330870063","filename":"file5"},{"photo_id":"1330870047","filename":"file2"},{"photo_id":"1330870059","filename":"file4"},{"photo_id":"1330870044","filename":"file1"},{"photo_id":"1330870042","filename":"file0"},{"photo_id":"1330870055","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330870059":["hashtag1","hashtag2"]},{"1330870047":["hashtag1","hashtag2"]},{"1330870044":["hashtag1","hashtag2"]},{"1330870055":["hashtag1","hashtag2"]},{"1330870063":["hashtag1","hashtag2"]},{"1330870042":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330870059, 1330870047, 1330870044, 1330870055, 1330870063, 1330870042)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.976659059524536 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:36:02.814601
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/35/image_23012025_21_35_55_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/21/35/image_23012025_21_35_49_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/35/image_23012025_21_35_42_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/35/image_23012025_21_35_36_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/35/image_23012025_21_35_30_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/21/35/image_23012025_21_35_24_5186.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/35/image_23012025_21_35_55_6198.jpg', '/home/nano/Desktop/images/23012025/21/35/image_23012025_21_35_49_6196.jpg', '/home/nano/Desktop/images/23012025/21/35/image_23012025_21_35_42_6188.jpg', '/home/nano/Desktop/images/23012025/21/35/image_23012025_21_35_36_6187.jpg', '/home/nano/Desktop/images/23012025/21/35/image_23012025_21_35_30_6194.jpg', '/home/nano/Desktop/images/23012025/21/35/image_23012025_21_35_24_5186.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/35/image_23012025_21_35_55_6198.jpg
/home/nano/Desktop/images/23012025/21/35/image_23012025_21_35_49_6196.jpg
/home/nano/Desktop/images/23012025/21/35/image_23012025_21_35_42_6188.jpg
/home/nano/Desktop/images/23012025/21/35/image_23012025_21_35_36_6187.jpg
/home/nano/Desktop/images/23012025/21/35/image_23012025_21_35_30_6194.jpg
/home/nano/Desktop/images/23012025/21/35/image_23012025_21_35_24_5186.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330870140","1330870128","1330870122","1330870119","1330870124","1330870117"],"photo_ids_order":["1330870117","1330870119","1330870122","1330870124","1330870128","1330870140"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0996840c9a16eb743f4c96055bc21844.jpg","text":"TemporaryFile(/tmp/multipartBody6426540184464615900asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664623489,"filename":"image_23012025_21_35_24_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/605daca42eb4f4707307d50f54ceab39.jpg","text":"TemporaryFile(/tmp/multipartBody7573127764648013772asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664623489,"filename":"image_23012025_21_35_30_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c16b5787bbc8500ca912ad9f2a0789ac.jpg","text":"TemporaryFile(/tmp/multipartBody4867719682900320928asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664623489,"filename":"image_23012025_21_35_42_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c1726d717116e61f9ee88e18cfa99c70.jpg","text":"TemporaryFile(/tmp/multipartBody3469561229320478788asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664623489,"filename":"image_23012025_21_35_49_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8408ef109dbd26666061e70699b83a1a.jpg","text":"TemporaryFile(/tmp/multipartBody3401311868434865118asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664623489,"filename":"image_23012025_21_35_36_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/76283aa7750b2a54c3bfe63708c3dde5.jpg","text":"TemporaryFile(/tmp/multipartBody373632485749124541asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664623489,"filename":"image_23012025_21_35_55_6198.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330870122","file1":"1330870119","file0":"1330870117","file4":"1330870128","file5":"1330870140","file3":"1330870124"},"map_files_photo_id_array":[{"photo_id":"1330870140","filename":"file5"},{"photo_id":"1330870122","filename":"file2"},{"photo_id":"1330870128","filename":"file4"},{"photo_id":"1330870119","filename":"file1"},{"photo_id":"1330870117","filename":"file0"},{"photo_id":"1330870124","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330870140":["hashtag1","hashtag2"]},{"1330870128":["hashtag1","hashtag2"]},{"1330870122":["hashtag1","hashtag2"]},{"1330870119":["hashtag1","hashtag2"]},{"1330870124":["hashtag1","hashtag2"]},{"1330870117":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330870140, 1330870128, 1330870122, 1330870119, 1330870124, 1330870117)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.256367921829224 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:37:03.120340
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/36/image_23012025_21_36_55_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/21/36/image_23012025_21_36_49_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/21/36/image_23012025_21_36_42_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/21/36/image_23012025_21_36_36_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/21/36/image_23012025_21_36_30_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/21/36/image_23012025_21_36_25_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/36/image_23012025_21_36_55_6201.jpg', '/home/nano/Desktop/images/23012025/21/36/image_23012025_21_36_49_6201.jpg', '/home/nano/Desktop/images/23012025/21/36/image_23012025_21_36_42_6192.jpg', '/home/nano/Desktop/images/23012025/21/36/image_23012025_21_36_36_6194.jpg', '/home/nano/Desktop/images/23012025/21/36/image_23012025_21_36_30_5181.jpg', '/home/nano/Desktop/images/23012025/21/36/image_23012025_21_36_25_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/36/image_23012025_21_36_55_6201.jpg
/home/nano/Desktop/images/23012025/21/36/image_23012025_21_36_49_6201.jpg
/home/nano/Desktop/images/23012025/21/36/image_23012025_21_36_42_6192.jpg
/home/nano/Desktop/images/23012025/21/36/image_23012025_21_36_36_6194.jpg
/home/nano/Desktop/images/23012025/21/36/image_23012025_21_36_30_5181.jpg
/home/nano/Desktop/images/23012025/21/36/image_23012025_21_36_25_6197.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330870356","1330870284","1330870287","1330870274","1330870256","1330870291"],"photo_ids_order":["1330870256","1330870274","1330870284","1330870287","1330870291","1330870356"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bce0f16fc3f88beb97db07909b6f114f.jpg","text":"TemporaryFile(/tmp/multipartBody4780220866292845200asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664683784,"filename":"image_23012025_21_36_25_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/43acedbbc710078b8883bc3bdf7e40c2.jpg","text":"TemporaryFile(/tmp/multipartBody3953307656016443784asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664683784,"filename":"image_23012025_21_36_42_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3fdbb938eb282fb1c7232f2b865036b3.jpg","text":"TemporaryFile(/tmp/multipartBody4073743777695867486asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664683784,"filename":"image_23012025_21_36_36_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8ff45cf7fa3a6a6829386934f40220e4.jpg","text":"TemporaryFile(/tmp/multipartBody7034543067670224136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664683784,"filename":"image_23012025_21_36_49_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b9df27cc6d22e980757d74bba8b2724d.jpg","text":"TemporaryFile(/tmp/multipartBody6087307400944936368asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664683784,"filename":"image_23012025_21_36_55_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3e900a1b86c10ffbd7d27b0a2cd138cf.jpg","text":"TemporaryFile(/tmp/multipartBody7920466802654698485asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664683784,"filename":"image_23012025_21_36_30_5181.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330870284","file1":"1330870274","file0":"1330870256","file4":"1330870291","file5":"1330870356","file3":"1330870287"},"map_files_photo_id_array":[{"photo_id":"1330870356","filename":"file5"},{"photo_id":"1330870284","filename":"file2"},{"photo_id":"1330870291","filename":"file4"},{"photo_id":"1330870274","filename":"file1"},{"photo_id":"1330870256","filename":"file0"},{"photo_id":"1330870287","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330870356":["hashtag1","hashtag2"]},{"1330870284":["hashtag1","hashtag2"]},{"1330870287":["hashtag1","hashtag2"]},{"1330870274":["hashtag1","hashtag2"]},{"1330870256":["hashtag1","hashtag2"]},{"1330870291":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330870356, 1330870284, 1330870287, 1330870274, 1330870256, 1330870291)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.57668590545654 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:38:03.032784
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/37/image_23012025_21_37_55_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/21/37/image_23012025_21_37_49_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/21/37/image_23012025_21_37_42_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/21/37/image_23012025_21_37_36_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/37/image_23012025_21_37_30_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/21/37/image_23012025_21_37_25_6194.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/37/image_23012025_21_37_55_6191.jpg', '/home/nano/Desktop/images/23012025/21/37/image_23012025_21_37_49_6199.jpg', '/home/nano/Desktop/images/23012025/21/37/image_23012025_21_37_42_6200.jpg', '/home/nano/Desktop/images/23012025/21/37/image_23012025_21_37_36_6197.jpg', '/home/nano/Desktop/images/23012025/21/37/image_23012025_21_37_30_5185.jpg', '/home/nano/Desktop/images/23012025/21/37/image_23012025_21_37_25_6194.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/37/image_23012025_21_37_55_6191.jpg
/home/nano/Desktop/images/23012025/21/37/image_23012025_21_37_49_6199.jpg
/home/nano/Desktop/images/23012025/21/37/image_23012025_21_37_42_6200.jpg
/home/nano/Desktop/images/23012025/21/37/image_23012025_21_37_36_6197.jpg
/home/nano/Desktop/images/23012025/21/37/image_23012025_21_37_30_5185.jpg
/home/nano/Desktop/images/23012025/21/37/image_23012025_21_37_25_6194.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330870423","1330870417","1330870399","1330870426","1330870414","1330870408"],"photo_ids_order":["1330870399","1330870408","1330870414","1330870417","1330870423","1330870426"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/da5e66b5d380a9e3d60c47039203e306.jpg","text":"TemporaryFile(/tmp/multipartBody7510100770939912196asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664743656,"filename":"image_23012025_21_37_30_5185.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b458f5389e6e54264974208d52dda4fd.jpg","text":"TemporaryFile(/tmp/multipartBody577014377256121457asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664743656,"filename":"image_23012025_21_37_36_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/01dddb2275beed2d809b1b98a64e7edc.jpg","text":"TemporaryFile(/tmp/multipartBody2817082518664874495asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664743656,"filename":"image_23012025_21_37_55_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/aaa2268dcf36e46038c6a95f4ebd7a63.jpg","text":"TemporaryFile(/tmp/multipartBody8726778621673640370asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664743656,"filename":"image_23012025_21_37_25_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c315fd09bf5612e1ba6e525db61fa700.jpg","text":"TemporaryFile(/tmp/multipartBody5872032350241713775asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664743656,"filename":"image_23012025_21_37_42_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/392c2d68d01994af1e9222d173584caa.jpg","text":"TemporaryFile(/tmp/multipartBody2188899221509427854asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664743656,"filename":"image_23012025_21_37_49_6199.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330870414","file1":"1330870408","file0":"1330870399","file4":"1330870423","file5":"1330870426","file3":"1330870417"},"map_files_photo_id_array":[{"photo_id":"1330870426","filename":"file5"},{"photo_id":"1330870414","filename":"file2"},{"photo_id":"1330870423","filename":"file4"},{"photo_id":"1330870408","filename":"file1"},{"photo_id":"1330870399","filename":"file0"},{"photo_id":"1330870417","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330870423":["hashtag1","hashtag2"]},{"1330870417":["hashtag1","hashtag2"]},{"1330870399":["hashtag1","hashtag2"]},{"1330870426":["hashtag1","hashtag2"]},{"1330870414":["hashtag1","hashtag2"]},{"1330870408":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330870423, 1330870417, 1330870399, 1330870426, 1330870414, 1330870408)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.702810525894165 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:39:03.473620
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/38/image_23012025_21_38_55_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/21/38/image_23012025_21_38_49_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/21/38/image_23012025_21_38_42_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/21/38/image_23012025_21_38_36_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/38/image_23012025_21_38_30_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/21/38/image_23012025_21_38_25_6199.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/38/image_23012025_21_38_55_6198.jpg', '/home/nano/Desktop/images/23012025/21/38/image_23012025_21_38_49_6190.jpg', '/home/nano/Desktop/images/23012025/21/38/image_23012025_21_38_42_6192.jpg', '/home/nano/Desktop/images/23012025/21/38/image_23012025_21_38_36_6197.jpg', '/home/nano/Desktop/images/23012025/21/38/image_23012025_21_38_30_5191.jpg', '/home/nano/Desktop/images/23012025/21/38/image_23012025_21_38_25_6199.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/38/image_23012025_21_38_55_6198.jpg
/home/nano/Desktop/images/23012025/21/38/image_23012025_21_38_49_6190.jpg
/home/nano/Desktop/images/23012025/21/38/image_23012025_21_38_42_6192.jpg
/home/nano/Desktop/images/23012025/21/38/image_23012025_21_38_36_6197.jpg
/home/nano/Desktop/images/23012025/21/38/image_23012025_21_38_30_5191.jpg
/home/nano/Desktop/images/23012025/21/38/image_23012025_21_38_25_6199.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330870494","1330870545","1330870499","1330870529","1330870538","1330870511"],"photo_ids_order":["1330870494","1330870499","1330870511","1330870529","1330870538","1330870545"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5f5b5940b75912a46fde1cbd89cb5884.jpg","text":"TemporaryFile(/tmp/multipartBody7828253351865587714asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664803993,"filename":"image_23012025_21_38_55_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a857df21e47b8c73cc4ade833152cc0f.jpg","text":"TemporaryFile(/tmp/multipartBody7139888458278693101asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664803993,"filename":"image_23012025_21_38_25_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/010f61019fb1a1976862437797271ecf.jpg","text":"TemporaryFile(/tmp/multipartBody6060963219244955012asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664803993,"filename":"image_23012025_21_38_49_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/efa8702c5cbf0b5b88979e566d9b04d7.jpg","text":"TemporaryFile(/tmp/multipartBody513971273003869950asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664803993,"filename":"image_23012025_21_38_36_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ce3717b12996b35fcf238787a8f35c43.jpg","text":"TemporaryFile(/tmp/multipartBody5938885738745326289asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664803993,"filename":"image_23012025_21_38_30_5191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/626bf4a5cb1c854553a5d2350351b104.jpg","text":"TemporaryFile(/tmp/multipartBody3537052228913860957asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664803993,"filename":"image_23012025_21_38_42_6192.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330870511","file1":"1330870499","file0":"1330870494","file4":"1330870538","file5":"1330870545","file3":"1330870529"},"map_files_photo_id_array":[{"photo_id":"1330870545","filename":"file5"},{"photo_id":"1330870511","filename":"file2"},{"photo_id":"1330870538","filename":"file4"},{"photo_id":"1330870499","filename":"file1"},{"photo_id":"1330870494","filename":"file0"},{"photo_id":"1330870529","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330870494":["hashtag1","hashtag2"]},{"1330870545":["hashtag1","hashtag2"]},{"1330870499":["hashtag1","hashtag2"]},{"1330870529":["hashtag1","hashtag2"]},{"1330870538":["hashtag1","hashtag2"]},{"1330870511":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330870494, 1330870545, 1330870499, 1330870529, 1330870538, 1330870511)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.013317346572876 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:40:03.215260
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/39/image_23012025_21_39_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/39/image_23012025_21_39_48_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/39/image_23012025_21_39_42_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/21/39/image_23012025_21_39_36_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/21/39/image_23012025_21_39_30_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/21/39/image_23012025_21_39_25_6193.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/39/image_23012025_21_39_55_6188.jpg', '/home/nano/Desktop/images/23012025/21/39/image_23012025_21_39_48_6187.jpg', '/home/nano/Desktop/images/23012025/21/39/image_23012025_21_39_42_6191.jpg', '/home/nano/Desktop/images/23012025/21/39/image_23012025_21_39_36_6193.jpg', '/home/nano/Desktop/images/23012025/21/39/image_23012025_21_39_30_5178.jpg', '/home/nano/Desktop/images/23012025/21/39/image_23012025_21_39_25_6193.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/39/image_23012025_21_39_55_6188.jpg
/home/nano/Desktop/images/23012025/21/39/image_23012025_21_39_48_6187.jpg
/home/nano/Desktop/images/23012025/21/39/image_23012025_21_39_42_6191.jpg
/home/nano/Desktop/images/23012025/21/39/image_23012025_21_39_36_6193.jpg
/home/nano/Desktop/images/23012025/21/39/image_23012025_21_39_30_5178.jpg
/home/nano/Desktop/images/23012025/21/39/image_23012025_21_39_25_6193.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330870609","1330870602","1330870605","1330870594","1330870607","1330870612"],"photo_ids_order":["1330870594","1330870602","1330870605","1330870607","1330870609","1330870612"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8fbe790e228fa1fc0a2a6eada0627c11.jpg","text":"TemporaryFile(/tmp/multipartBody618865212477945936asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664863652,"filename":"image_23012025_21_39_30_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8db1918c647c96ca3d345e2040b84527.jpg","text":"TemporaryFile(/tmp/multipartBody5313600933910672569asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664863652,"filename":"image_23012025_21_39_48_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d35d6a17653cd829fb132e9f9aae21df.jpg","text":"TemporaryFile(/tmp/multipartBody5318737441179340470asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664863652,"filename":"image_23012025_21_39_42_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/30f4c8a308d26007a4f7e565557f7aba.jpg","text":"TemporaryFile(/tmp/multipartBody524880620205090642asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664863652,"filename":"image_23012025_21_39_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/839e1b8467cc9083a0020c452496d1f9.jpg","text":"TemporaryFile(/tmp/multipartBody3882853308485698135asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664863652,"filename":"image_23012025_21_39_36_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/97728a833931bfce8c09738c57051a8e.jpg","text":"TemporaryFile(/tmp/multipartBody4073149910845532025asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664863652,"filename":"image_23012025_21_39_25_6193.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330870605","file1":"1330870602","file0":"1330870594","file4":"1330870609","file5":"1330870612","file3":"1330870607"},"map_files_photo_id_array":[{"photo_id":"1330870612","filename":"file5"},{"photo_id":"1330870605","filename":"file2"},{"photo_id":"1330870609","filename":"file4"},{"photo_id":"1330870602","filename":"file1"},{"photo_id":"1330870594","filename":"file0"},{"photo_id":"1330870607","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330870609":["hashtag1","hashtag2"]},{"1330870602":["hashtag1","hashtag2"]},{"1330870605":["hashtag1","hashtag2"]},{"1330870594":["hashtag1","hashtag2"]},{"1330870607":["hashtag1","hashtag2"]},{"1330870612":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330870609, 1330870602, 1330870605, 1330870594, 1330870607, 1330870612)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.850589752197266 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:41:02.340255
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/40/image_23012025_21_40_55_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/21/40/image_23012025_21_40_48_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/21/40/image_23012025_21_40_42_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/40/image_23012025_21_40_36_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/21/40/image_23012025_21_40_31_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/40/image_23012025_21_40_25_6223.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/40/image_23012025_21_40_55_6186.jpg', '/home/nano/Desktop/images/23012025/21/40/image_23012025_21_40_48_6189.jpg', '/home/nano/Desktop/images/23012025/21/40/image_23012025_21_40_42_6187.jpg', '/home/nano/Desktop/images/23012025/21/40/image_23012025_21_40_36_5184.jpg', '/home/nano/Desktop/images/23012025/21/40/image_23012025_21_40_31_6188.jpg', '/home/nano/Desktop/images/23012025/21/40/image_23012025_21_40_25_6223.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/40/image_23012025_21_40_55_6186.jpg
/home/nano/Desktop/images/23012025/21/40/image_23012025_21_40_48_6189.jpg
/home/nano/Desktop/images/23012025/21/40/image_23012025_21_40_42_6187.jpg
/home/nano/Desktop/images/23012025/21/40/image_23012025_21_40_36_5184.jpg
/home/nano/Desktop/images/23012025/21/40/image_23012025_21_40_31_6188.jpg
/home/nano/Desktop/images/23012025/21/40/image_23012025_21_40_25_6223.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330870665","1330870688","1330870697","1330870693","1330870675","1330870684"],"photo_ids_order":["1330870665","1330870675","1330870684","1330870688","1330870693","1330870697"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a7ab74592100bbbe0ff2a1c1d3c5d36e.jpg","text":"TemporaryFile(/tmp/multipartBody6012357975625390014asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664922750,"filename":"image_23012025_21_40_55_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5fb845301030ffd9b3bbd9e91dafa556.jpg","text":"TemporaryFile(/tmp/multipartBody2849412031384508727asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664922750,"filename":"image_23012025_21_40_36_5184.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b20813f72f8d5e6a07106e5dc684ce8a.jpg","text":"TemporaryFile(/tmp/multipartBody1288957252298499184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664922750,"filename":"image_23012025_21_40_25_6223.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a1749b5a3f01bf1ab0c999de6bd9ce89.jpg","text":"TemporaryFile(/tmp/multipartBody952878736971098265asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664922750,"filename":"image_23012025_21_40_31_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b8d00b200c5977eb7b04b09a8c73bd88.jpg","text":"TemporaryFile(/tmp/multipartBody2002551958775478417asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664922750,"filename":"image_23012025_21_40_48_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/29e3f8e89c724359643b9040189e8321.jpg","text":"TemporaryFile(/tmp/multipartBody593312735067011667asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664922750,"filename":"image_23012025_21_40_42_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330870684","file1":"1330870675","file0":"1330870665","file4":"1330870693","file5":"1330870697","file3":"1330870688"},"map_files_photo_id_array":[{"photo_id":"1330870697","filename":"file5"},{"photo_id":"1330870684","filename":"file2"},{"photo_id":"1330870693","filename":"file4"},{"photo_id":"1330870675","filename":"file1"},{"photo_id":"1330870665","filename":"file0"},{"photo_id":"1330870688","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330870665":["hashtag1","hashtag2"]},{"1330870688":["hashtag1","hashtag2"]},{"1330870697":["hashtag1","hashtag2"]},{"1330870693":["hashtag1","hashtag2"]},{"1330870675":["hashtag1","hashtag2"]},{"1330870684":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330870665, 1330870688, 1330870697, 1330870693, 1330870675, 1330870684)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.529810190200806 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:42:02.407326
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/41/image_23012025_21_41_54_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/21/41/image_23012025_21_41_48_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/21/41/image_23012025_21_41_42_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/41/image_23012025_21_41_36_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/21/41/image_23012025_21_41_31_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/41/image_23012025_21_41_25_6186.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/41/image_23012025_21_41_54_6195.jpg', '/home/nano/Desktop/images/23012025/21/41/image_23012025_21_41_48_6189.jpg', '/home/nano/Desktop/images/23012025/21/41/image_23012025_21_41_42_6187.jpg', '/home/nano/Desktop/images/23012025/21/41/image_23012025_21_41_36_5179.jpg', '/home/nano/Desktop/images/23012025/21/41/image_23012025_21_41_31_6196.jpg', '/home/nano/Desktop/images/23012025/21/41/image_23012025_21_41_25_6186.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/41/image_23012025_21_41_54_6195.jpg
/home/nano/Desktop/images/23012025/21/41/image_23012025_21_41_48_6189.jpg
/home/nano/Desktop/images/23012025/21/41/image_23012025_21_41_42_6187.jpg
/home/nano/Desktop/images/23012025/21/41/image_23012025_21_41_36_5179.jpg
/home/nano/Desktop/images/23012025/21/41/image_23012025_21_41_31_6196.jpg
/home/nano/Desktop/images/23012025/21/41/image_23012025_21_41_25_6186.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330870791","1330870785","1330870839","1330870812","1330870808","1330870804"],"photo_ids_order":["1330870785","1330870791","1330870804","1330870808","1330870812","1330870839"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6ca042b04333bcd8bcd7b88058c734e3.jpg","text":"TemporaryFile(/tmp/multipartBody1184772514068249111asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664982909,"filename":"image_23012025_21_41_48_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6ce869babb08d9252503f959c9ac7774.jpg","text":"TemporaryFile(/tmp/multipartBody8994499816907395681asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664982909,"filename":"image_23012025_21_41_54_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e4f364ba7d1cddf4774b713ae6102ff1.jpg","text":"TemporaryFile(/tmp/multipartBody4339346696928130533asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664982909,"filename":"image_23012025_21_41_25_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7d0e19fd06d2e822f3e411bfbc8e9179.jpg","text":"TemporaryFile(/tmp/multipartBody6012373408021720749asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664982909,"filename":"image_23012025_21_41_31_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2d8897479429d2745c2d1790fb0f46ef.jpg","text":"TemporaryFile(/tmp/multipartBody706801869829409247asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664982909,"filename":"image_23012025_21_41_36_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/21568b925b01c9849eff1229cdef1c68.jpg","text":"TemporaryFile(/tmp/multipartBody41913963860122364asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737664982909,"filename":"image_23012025_21_41_42_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330870804","file1":"1330870791","file0":"1330870785","file4":"1330870812","file5":"1330870839","file3":"1330870808"},"map_files_photo_id_array":[{"photo_id":"1330870839","filename":"file5"},{"photo_id":"1330870804","filename":"file2"},{"photo_id":"1330870812","filename":"file4"},{"photo_id":"1330870791","filename":"file1"},{"photo_id":"1330870785","filename":"file0"},{"photo_id":"1330870808","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330870791":["hashtag1","hashtag2"]},{"1330870785":["hashtag1","hashtag2"]},{"1330870839":["hashtag1","hashtag2"]},{"1330870812":["hashtag1","hashtag2"]},{"1330870808":["hashtag1","hashtag2"]},{"1330870804":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330870791, 1330870785, 1330870839, 1330870812, 1330870808, 1330870804)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.513094663619995 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:43:02.930993
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/43/image_23012025_21_44_00_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/21/42/image_23012025_21_42_55_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/21/42/image_23012025_21_42_48_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/42/image_23012025_21_42_42_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/21/42/image_23012025_21_42_36_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/21/42/image_23012025_21_42_31_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/43/image_23012025_21_44_00_5181.jpg', '/home/nano/Desktop/images/23012025/21/42/image_23012025_21_42_55_6206.jpg', '/home/nano/Desktop/images/23012025/21/42/image_23012025_21_42_48_6196.jpg', '/home/nano/Desktop/images/23012025/21/42/image_23012025_21_42_42_6192.jpg', '/home/nano/Desktop/images/23012025/21/42/image_23012025_21_42_36_5186.jpg', '/home/nano/Desktop/images/23012025/21/42/image_23012025_21_42_31_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/43/image_23012025_21_44_00_5181.jpg
/home/nano/Desktop/images/23012025/21/42/image_23012025_21_42_55_6206.jpg
/home/nano/Desktop/images/23012025/21/42/image_23012025_21_42_48_6196.jpg
/home/nano/Desktop/images/23012025/21/42/image_23012025_21_42_42_6192.jpg
/home/nano/Desktop/images/23012025/21/42/image_23012025_21_42_36_5186.jpg
/home/nano/Desktop/images/23012025/21/42/image_23012025_21_42_31_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330870912","1330870944","1330870938","1330870917","1330870948","1330870933"],"photo_ids_order":["1330870912","1330870917","1330870933","1330870938","1330870944","1330870948"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/125b85d51227b5d6e07572965bae4503.jpg","text":"TemporaryFile(/tmp/multipartBody1658425179594139082asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665043520,"filename":"image_23012025_21_44_00_5181.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/36240c7a4ea58337ef06db1cf5fc2ec0.jpg","text":"TemporaryFile(/tmp/multipartBody98510998683613916asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665043520,"filename":"image_23012025_21_42_36_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3811958d86ba433001cf301b21a3ff3e.jpg","text":"TemporaryFile(/tmp/multipartBody5877516825810632424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665043520,"filename":"image_23012025_21_42_42_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f3e068cd6c3719ab25542b70b2091bd7.jpg","text":"TemporaryFile(/tmp/multipartBody8706782796306373511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665043520,"filename":"image_23012025_21_42_55_6206.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/192e60f8ba677a7419e2a41615b97f13.jpg","text":"TemporaryFile(/tmp/multipartBody6043091352400289453asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665043520,"filename":"image_23012025_21_42_31_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b22597dbe3b40d0484eb9408a719f9fb.jpg","text":"TemporaryFile(/tmp/multipartBody4119010396656311599asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665043520,"filename":"image_23012025_21_42_48_6196.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330870933","file1":"1330870917","file0":"1330870912","file4":"1330870944","file5":"1330870948","file3":"1330870938"},"map_files_photo_id_array":[{"photo_id":"1330870948","filename":"file5"},{"photo_id":"1330870933","filename":"file2"},{"photo_id":"1330870944","filename":"file4"},{"photo_id":"1330870917","filename":"file1"},{"photo_id":"1330870912","filename":"file0"},{"photo_id":"1330870938","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330870912":["hashtag1","hashtag2"]},{"1330870944":["hashtag1","hashtag2"]},{"1330870938":["hashtag1","hashtag2"]},{"1330870917":["hashtag1","hashtag2"]},{"1330870948":["hashtag1","hashtag2"]},{"1330870933":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330870912, 1330870944, 1330870938, 1330870917, 1330870948, 1330870933)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.82585406303406 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:44:03.051222
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/43/image_23012025_21_43_49_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/21/43/image_23012025_21_43_36_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/21/43/image_23012025_21_43_30_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/21/43/image_23012025_21_43_25_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/21/43/image_23012025_21_43_19_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/43/image_23012025_21_43_12_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/43/image_23012025_21_43_49_6204.jpg', '/home/nano/Desktop/images/23012025/21/43/image_23012025_21_43_36_6192.jpg', '/home/nano/Desktop/images/23012025/21/43/image_23012025_21_43_30_5183.jpg', '/home/nano/Desktop/images/23012025/21/43/image_23012025_21_43_25_6194.jpg', '/home/nano/Desktop/images/23012025/21/43/image_23012025_21_43_19_6196.jpg', '/home/nano/Desktop/images/23012025/21/43/image_23012025_21_43_12_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/43/image_23012025_21_43_49_6204.jpg
/home/nano/Desktop/images/23012025/21/43/image_23012025_21_43_36_6192.jpg
/home/nano/Desktop/images/23012025/21/43/image_23012025_21_43_30_5183.jpg
/home/nano/Desktop/images/23012025/21/43/image_23012025_21_43_25_6194.jpg
/home/nano/Desktop/images/23012025/21/43/image_23012025_21_43_19_6196.jpg
/home/nano/Desktop/images/23012025/21/43/image_23012025_21_43_12_6195.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.5300302505493164 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:44:32.172564
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/44/image_23012025_21_44_55_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/21/44/image_23012025_21_44_49_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/21/44/image_23012025_21_44_42_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/21/44/image_23012025_21_44_36_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/21/44/image_23012025_21_44_30_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/21/44/image_23012025_21_44_25_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/44/image_23012025_21_44_55_6200.jpg', '/home/nano/Desktop/images/23012025/21/44/image_23012025_21_44_49_6198.jpg', '/home/nano/Desktop/images/23012025/21/44/image_23012025_21_44_42_6200.jpg', '/home/nano/Desktop/images/23012025/21/44/image_23012025_21_44_36_6201.jpg', '/home/nano/Desktop/images/23012025/21/44/image_23012025_21_44_30_5184.jpg', '/home/nano/Desktop/images/23012025/21/44/image_23012025_21_44_25_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/44/image_23012025_21_44_55_6200.jpg
/home/nano/Desktop/images/23012025/21/44/image_23012025_21_44_49_6198.jpg
/home/nano/Desktop/images/23012025/21/44/image_23012025_21_44_42_6200.jpg
/home/nano/Desktop/images/23012025/21/44/image_23012025_21_44_36_6201.jpg
/home/nano/Desktop/images/23012025/21/44/image_23012025_21_44_30_5184.jpg
/home/nano/Desktop/images/23012025/21/44/image_23012025_21_44_25_6197.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330871022","1330871039","1330871027","1330871047","1330871032","1330871044"],"photo_ids_order":["1330871022","1330871027","1330871032","1330871039","1330871044","1330871047"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8dcc18c27f7f0bd93663bb368d08a1b0.jpg","text":"TemporaryFile(/tmp/multipartBody7180758074813657957asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665133063,"filename":"image_23012025_21_44_55_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/25e88cedaf0e61e9a8264ca0e7b39073.jpg","text":"TemporaryFile(/tmp/multipartBody9145240659064974863asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665133063,"filename":"image_23012025_21_44_36_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e3446cecefa1b950c434038776344ebd.jpg","text":"TemporaryFile(/tmp/multipartBody4931871943006696310asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665133063,"filename":"image_23012025_21_44_49_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e23b5b2452ad440820fe9e73d1370c0d.jpg","text":"TemporaryFile(/tmp/multipartBody4983178629565986954asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665133063,"filename":"image_23012025_21_44_25_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/86e67d23c55df32a2df7ad27d80cf9fc.jpg","text":"TemporaryFile(/tmp/multipartBody6255038174844018717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665133063,"filename":"image_23012025_21_44_42_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/96b059b70a98d97732c54c5e896046f8.jpg","text":"TemporaryFile(/tmp/multipartBody4779974935905791566asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665133063,"filename":"image_23012025_21_44_30_5184.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330871032","file1":"1330871027","file0":"1330871022","file4":"1330871044","file5":"1330871047","file3":"1330871039"},"map_files_photo_id_array":[{"photo_id":"1330871047","filename":"file5"},{"photo_id":"1330871032","filename":"file2"},{"photo_id":"1330871044","filename":"file4"},{"photo_id":"1330871027","filename":"file1"},{"photo_id":"1330871022","filename":"file0"},{"photo_id":"1330871039","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330871022":["hashtag1","hashtag2"]},{"1330871039":["hashtag1","hashtag2"]},{"1330871027":["hashtag1","hashtag2"]},{"1330871047":["hashtag1","hashtag2"]},{"1330871032":["hashtag1","hashtag2"]},{"1330871044":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330871022, 1330871039, 1330871027, 1330871047, 1330871032, 1330871044)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.70246410369873 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:45:32.265083
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/45/image_23012025_21_45_55_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/21/45/image_23012025_21_45_49_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/21/45/image_23012025_21_45_42_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/21/45/image_23012025_21_45_36_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/45/image_23012025_21_45_30_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/45/image_23012025_21_45_19_6192.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/45/image_23012025_21_45_55_6189.jpg', '/home/nano/Desktop/images/23012025/21/45/image_23012025_21_45_49_6189.jpg', '/home/nano/Desktop/images/23012025/21/45/image_23012025_21_45_42_6189.jpg', '/home/nano/Desktop/images/23012025/21/45/image_23012025_21_45_36_6197.jpg', '/home/nano/Desktop/images/23012025/21/45/image_23012025_21_45_30_5188.jpg', '/home/nano/Desktop/images/23012025/21/45/image_23012025_21_45_19_6192.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/45/image_23012025_21_45_55_6189.jpg
/home/nano/Desktop/images/23012025/21/45/image_23012025_21_45_49_6189.jpg
/home/nano/Desktop/images/23012025/21/45/image_23012025_21_45_42_6189.jpg
/home/nano/Desktop/images/23012025/21/45/image_23012025_21_45_36_6197.jpg
/home/nano/Desktop/images/23012025/21/45/image_23012025_21_45_30_5188.jpg
/home/nano/Desktop/images/23012025/21/45/image_23012025_21_45_19_6192.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330871142","1330871259","1330871133","1330871214","1330871129","1330871122"],"photo_ids_order":["1330871122","1330871129","1330871133","1330871142","1330871214","1330871259"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8bec858898a5e50ec4b789e41212790e.jpg","text":"TemporaryFile(/tmp/multipartBody4013120509262960335asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665192795,"filename":"image_23012025_21_45_36_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9dcfd832b3a3ea39990e3cb77ed9e7ad.jpg","text":"TemporaryFile(/tmp/multipartBody4357359606403388525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665192795,"filename":"image_23012025_21_45_19_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d276d04e6eed70213150abb7bb0c6dd2.jpg","text":"TemporaryFile(/tmp/multipartBody4257090181572032464asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665192795,"filename":"image_23012025_21_45_42_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/08a91a88051147a32e8b66770a3ca40a.jpg","text":"TemporaryFile(/tmp/multipartBody2859513957306607439asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665192795,"filename":"image_23012025_21_45_30_5188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6064148405b3d65aaec2d26349164d19.jpg","text":"TemporaryFile(/tmp/multipartBody1921358543771564990asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665192795,"filename":"image_23012025_21_45_49_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/508940aa7ccd2ba8f1e80ac268ab5635.jpg","text":"TemporaryFile(/tmp/multipartBody4904888783219284964asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665192795,"filename":"image_23012025_21_45_55_6189.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330871133","file1":"1330871129","file0":"1330871122","file4":"1330871214","file5":"1330871259","file3":"1330871142"},"map_files_photo_id_array":[{"photo_id":"1330871259","filename":"file5"},{"photo_id":"1330871133","filename":"file2"},{"photo_id":"1330871214","filename":"file4"},{"photo_id":"1330871129","filename":"file1"},{"photo_id":"1330871122","filename":"file0"},{"photo_id":"1330871142","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330871142":["hashtag1","hashtag2"]},{"1330871259":["hashtag1","hashtag2"]},{"1330871133":["hashtag1","hashtag2"]},{"1330871214":["hashtag1","hashtag2"]},{"1330871129":["hashtag1","hashtag2"]},{"1330871122":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330871142, 1330871259, 1330871133, 1330871214, 1330871129, 1330871122)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.639573097229004 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:46:32.379484
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/46/image_23012025_21_46_55_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/46/image_23012025_21_46_48_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/21/46/image_23012025_21_46_42_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/21/46/image_23012025_21_46_31_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/21/46/image_23012025_21_46_25_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/46/image_23012025_21_46_18_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/46/image_23012025_21_46_55_6197.jpg', '/home/nano/Desktop/images/23012025/21/46/image_23012025_21_46_48_6200.jpg', '/home/nano/Desktop/images/23012025/21/46/image_23012025_21_46_42_6203.jpg', '/home/nano/Desktop/images/23012025/21/46/image_23012025_21_46_31_6199.jpg', '/home/nano/Desktop/images/23012025/21/46/image_23012025_21_46_25_6188.jpg', '/home/nano/Desktop/images/23012025/21/46/image_23012025_21_46_18_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/46/image_23012025_21_46_55_6197.jpg
/home/nano/Desktop/images/23012025/21/46/image_23012025_21_46_48_6200.jpg
/home/nano/Desktop/images/23012025/21/46/image_23012025_21_46_42_6203.jpg
/home/nano/Desktop/images/23012025/21/46/image_23012025_21_46_31_6199.jpg
/home/nano/Desktop/images/23012025/21/46/image_23012025_21_46_25_6188.jpg
/home/nano/Desktop/images/23012025/21/46/image_23012025_21_46_18_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330871421","1330871418","1330871526","1330871409","1330871536","1330871425"],"photo_ids_order":["1330871409","1330871418","1330871421","1330871425","1330871526","1330871536"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5f9f8e7063ed64d6ad10af2888698f1c.jpg","text":"TemporaryFile(/tmp/multipartBody1288666338592134721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665252976,"filename":"image_23012025_21_46_42_6203.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/734dcb6db4b2c1605b3be4a5abbebec0.jpg","text":"TemporaryFile(/tmp/multipartBody7874222415137172562asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665252976,"filename":"image_23012025_21_46_48_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b4e9d4b12c20017ead0a4bca5e959dbf.jpg","text":"TemporaryFile(/tmp/multipartBody428995081732483246asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665252976,"filename":"image_23012025_21_46_25_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/784299f8394d6268a5a234cc27644af3.jpg","text":"TemporaryFile(/tmp/multipartBody6205195538484727437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665252976,"filename":"image_23012025_21_46_55_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b47622d759f121e0ff34ffb5c694bc2c.jpg","text":"TemporaryFile(/tmp/multipartBody5433781806395182060asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665252976,"filename":"image_23012025_21_46_18_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/453db122cfcca72c362b3f5dc7df619d.jpg","text":"TemporaryFile(/tmp/multipartBody2980826365290378191asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665252976,"filename":"image_23012025_21_46_31_6199.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330871421","file1":"1330871418","file0":"1330871409","file4":"1330871526","file5":"1330871536","file3":"1330871425"},"map_files_photo_id_array":[{"photo_id":"1330871536","filename":"file5"},{"photo_id":"1330871421","filename":"file2"},{"photo_id":"1330871526","filename":"file4"},{"photo_id":"1330871418","filename":"file1"},{"photo_id":"1330871409","filename":"file0"},{"photo_id":"1330871425","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330871421":["hashtag1","hashtag2"]},{"1330871418":["hashtag1","hashtag2"]},{"1330871526":["hashtag1","hashtag2"]},{"1330871409":["hashtag1","hashtag2"]},{"1330871536":["hashtag1","hashtag2"]},{"1330871425":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330871421, 1330871418, 1330871526, 1330871409, 1330871536, 1330871425)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.10641026496887 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:47:32.469232
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/47/image_23012025_21_47_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/47/image_23012025_21_47_48_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/47/image_23012025_21_47_42_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/21/47/image_23012025_21_47_36_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/47/image_23012025_21_47_31_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/21/47/image_23012025_21_47_18_6194.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/47/image_23012025_21_47_55_6188.jpg', '/home/nano/Desktop/images/23012025/21/47/image_23012025_21_47_48_6187.jpg', '/home/nano/Desktop/images/23012025/21/47/image_23012025_21_47_42_6205.jpg', '/home/nano/Desktop/images/23012025/21/47/image_23012025_21_47_36_5188.jpg', '/home/nano/Desktop/images/23012025/21/47/image_23012025_21_47_31_6195.jpg', '/home/nano/Desktop/images/23012025/21/47/image_23012025_21_47_18_6194.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/47/image_23012025_21_47_55_6188.jpg
/home/nano/Desktop/images/23012025/21/47/image_23012025_21_47_48_6187.jpg
/home/nano/Desktop/images/23012025/21/47/image_23012025_21_47_42_6205.jpg
/home/nano/Desktop/images/23012025/21/47/image_23012025_21_47_36_5188.jpg
/home/nano/Desktop/images/23012025/21/47/image_23012025_21_47_31_6195.jpg
/home/nano/Desktop/images/23012025/21/47/image_23012025_21_47_18_6194.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330871652","1330871604","1330871630","1330871633","1330871609","1330871659"],"photo_ids_order":["1330871604","1330871609","1330871630","1330871633","1330871652","1330871659"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2b8a35874bd8cf9085a1766f3208601d.jpg","text":"TemporaryFile(/tmp/multipartBody8084934868583768167asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665312999,"filename":"image_23012025_21_47_31_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ff8d58ba60cb942bd018ffbd3432438e.jpg","text":"TemporaryFile(/tmp/multipartBody317144420661289511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665312999,"filename":"image_23012025_21_47_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8569ca9be3ffc682ecade7ff1248ded9.jpg","text":"TemporaryFile(/tmp/multipartBody8504070164904376445asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665312999,"filename":"image_23012025_21_47_42_6205.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a20e606c56b4d7d6a421aedb768359cc.jpg","text":"TemporaryFile(/tmp/multipartBody5069751941784137843asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665312999,"filename":"image_23012025_21_47_36_5188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e13d38d6e3e9e4517c3cf60fba7dacb3.jpg","text":"TemporaryFile(/tmp/multipartBody401518405007811166asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665312999,"filename":"image_23012025_21_47_48_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/99022bc1048182c0013e52ee07acf16e.jpg","text":"TemporaryFile(/tmp/multipartBody6048895068254326741asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665312999,"filename":"image_23012025_21_47_18_6194.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330871630","file1":"1330871609","file0":"1330871604","file4":"1330871652","file5":"1330871659","file3":"1330871633"},"map_files_photo_id_array":[{"photo_id":"1330871659","filename":"file5"},{"photo_id":"1330871630","filename":"file2"},{"photo_id":"1330871652","filename":"file4"},{"photo_id":"1330871609","filename":"file1"},{"photo_id":"1330871604","filename":"file0"},{"photo_id":"1330871633","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330871652":["hashtag1","hashtag2"]},{"1330871604":["hashtag1","hashtag2"]},{"1330871630":["hashtag1","hashtag2"]},{"1330871633":["hashtag1","hashtag2"]},{"1330871609":["hashtag1","hashtag2"]},{"1330871659":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330871652, 1330871604, 1330871630, 1330871633, 1330871609, 1330871659)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.253007888793945 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:48:32.596170
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_55_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_48_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_42_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_36_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_31_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_25_6193.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_55_6192.jpg', '/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_48_6195.jpg', '/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_42_6201.jpg', '/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_36_5188.jpg', '/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_31_6190.jpg', '/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_25_6193.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_55_6192.jpg
/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_48_6195.jpg
/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_42_6201.jpg
/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_36_5188.jpg
/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_31_6190.jpg
/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_25_6193.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330871826","1330871811","1330871831","1330871804","1330871821","1330871818"],"photo_ids_order":["1330871804","1330871811","1330871818","1330871821","1330871826","1330871831"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1a6c765f92e7589f5e0f99d7a373d93d.jpg","text":"TemporaryFile(/tmp/multipartBody5385912439624797902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665373070,"filename":"image_23012025_21_48_31_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2b2e174ee755489c8ae4d32b11c6bc46.jpg","text":"TemporaryFile(/tmp/multipartBody2129818631758244529asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665373070,"filename":"image_23012025_21_48_48_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d20b85dd9a4329450f25bdc59a5c932f.jpg","text":"TemporaryFile(/tmp/multipartBody6571826346917908404asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665373070,"filename":"image_23012025_21_48_25_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/12c787f86666faaf5c6e106fd63ea2a7.jpg","text":"TemporaryFile(/tmp/multipartBody8696157320230827045asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665373070,"filename":"image_23012025_21_48_55_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/678faa177e0fc2d1bc06c787b5c7dbf5.jpg","text":"TemporaryFile(/tmp/multipartBody7591728209974828093asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665373070,"filename":"image_23012025_21_48_36_5188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5d9fe70d13c0fec7c44d0283c1500118.jpg","text":"TemporaryFile(/tmp/multipartBody1139117817822025528asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665373070,"filename":"image_23012025_21_48_42_6201.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330871818","file1":"1330871811","file0":"1330871804","file4":"1330871826","file5":"1330871831","file3":"1330871821"},"map_files_photo_id_array":[{"photo_id":"1330871831","filename":"file5"},{"photo_id":"1330871818","filename":"file2"},{"photo_id":"1330871826","filename":"file4"},{"photo_id":"1330871811","filename":"file1"},{"photo_id":"1330871804","filename":"file0"},{"photo_id":"1330871821","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330871826":["hashtag1","hashtag2"]},{"1330871811":["hashtag1","hashtag2"]},{"1330871831":["hashtag1","hashtag2"]},{"1330871804":["hashtag1","hashtag2"]},{"1330871821":["hashtag1","hashtag2"]},{"1330871818":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330871826, 1330871811, 1330871831, 1330871804, 1330871821, 1330871818)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.077588319778442 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:49:32.743171
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_54_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_48_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_42_6213.jpg', 2), ('/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_36_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_31_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_25_6192.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_54_6195.jpg', '/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_48_6192.jpg', '/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_42_6213.jpg', '/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_36_5187.jpg', '/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_31_6189.jpg', '/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_25_6192.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_54_6195.jpg
/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_48_6192.jpg
/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_42_6213.jpg
/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_36_5187.jpg
/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_31_6189.jpg
/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_25_6192.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330871871","1330871853","1330871864","1330871857","1330871860","1330871868"],"photo_ids_order":["1330871853","1330871857","1330871860","1330871864","1330871868","1330871871"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4ed36e020ff9a8c4f3531cf872f79565.jpg","text":"TemporaryFile(/tmp/multipartBody6698228020691718893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665433310,"filename":"image_23012025_21_49_25_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e3d0863b8b378bb939b80af7c9cbe8ef.jpg","text":"TemporaryFile(/tmp/multipartBody1898172240575824523asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665433310,"filename":"image_23012025_21_49_54_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3634fb9d0adf3cf68c69a5e964099606.jpg","text":"TemporaryFile(/tmp/multipartBody673114248108264166asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665433310,"filename":"image_23012025_21_49_36_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1646e7762cd170b19bd1aedb236b4cc7.jpg","text":"TemporaryFile(/tmp/multipartBody303240767180559975asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665433310,"filename":"image_23012025_21_49_48_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c23fc127fdec767a3851f8940760431f.jpg","text":"TemporaryFile(/tmp/multipartBody2516734931931500137asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665433310,"filename":"image_23012025_21_49_42_6213.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/10b4fa976d84389fe883294eccb14f45.jpg","text":"TemporaryFile(/tmp/multipartBody5891825515739823751asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665433310,"filename":"image_23012025_21_49_31_6189.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330871860","file1":"1330871857","file0":"1330871853","file4":"1330871868","file5":"1330871871","file3":"1330871864"},"map_files_photo_id_array":[{"photo_id":"1330871871","filename":"file5"},{"photo_id":"1330871860","filename":"file2"},{"photo_id":"1330871868","filename":"file4"},{"photo_id":"1330871857","filename":"file1"},{"photo_id":"1330871853","filename":"file0"},{"photo_id":"1330871864","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330871871":["hashtag1","hashtag2"]},{"1330871853":["hashtag1","hashtag2"]},{"1330871864":["hashtag1","hashtag2"]},{"1330871857":["hashtag1","hashtag2"]},{"1330871860":["hashtag1","hashtag2"]},{"1330871868":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330871871, 1330871853, 1330871864, 1330871857, 1330871860, 1330871868)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.920945405960083 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:50:31.836949
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_54_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_48_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_42_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_37_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_31_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_24_6194.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_54_6196.jpg', '/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_48_6193.jpg', '/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_42_5181.jpg', '/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_37_6197.jpg', '/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_31_6199.jpg', '/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_24_6194.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_54_6196.jpg
/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_48_6193.jpg
/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_42_5181.jpg
/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_37_6197.jpg
/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_31_6199.jpg
/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_24_6194.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330871943","1330871951","1330871930","1330871941","1330871935","1330871929"],"photo_ids_order":["1330871929","1330871930","1330871935","1330871941","1330871943","1330871951"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7fa31aebfd4d0c449142fe6d6937e0d1.jpg","text":"TemporaryFile(/tmp/multipartBody4779117852303347368asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665492467,"filename":"image_23012025_21_50_31_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/91969f05dae37be86d26a1b8c1b8be5c.jpg","text":"TemporaryFile(/tmp/multipartBody5169288989717284753asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665492467,"filename":"image_23012025_21_50_24_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1f58914220ca2216c1f5b2a9d86b1d5a.jpg","text":"TemporaryFile(/tmp/multipartBody1842155452957443419asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665492467,"filename":"image_23012025_21_50_48_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3688d1ecd3dddaaafb22b1ca9517f4ff.jpg","text":"TemporaryFile(/tmp/multipartBody6491256810985754770asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665492467,"filename":"image_23012025_21_50_37_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4a19cbee43dac9ae56045517b81f82d9.jpg","text":"TemporaryFile(/tmp/multipartBody460248477173830872asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665492467,"filename":"image_23012025_21_50_42_5181.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8ec50aa882d50a119713e1aa077412e3.jpg","text":"TemporaryFile(/tmp/multipartBody2198651277508441422asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665492467,"filename":"image_23012025_21_50_54_6196.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330871935","file1":"1330871930","file0":"1330871929","file4":"1330871943","file5":"1330871951","file3":"1330871941"},"map_files_photo_id_array":[{"photo_id":"1330871951","filename":"file5"},{"photo_id":"1330871935","filename":"file2"},{"photo_id":"1330871943","filename":"file4"},{"photo_id":"1330871930","filename":"file1"},{"photo_id":"1330871929","filename":"file0"},{"photo_id":"1330871941","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330871943":["hashtag1","hashtag2"]},{"1330871951":["hashtag1","hashtag2"]},{"1330871930":["hashtag1","hashtag2"]},{"1330871941":["hashtag1","hashtag2"]},{"1330871935":["hashtag1","hashtag2"]},{"1330871929":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330871943, 1330871951, 1330871930, 1330871941, 1330871935, 1330871929)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.358546018600464 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:51:31.950771
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_55_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_48_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_42_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_36_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_31_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_25_6194.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_55_6196.jpg', '/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_48_6191.jpg', '/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_42_6204.jpg', '/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_36_5186.jpg', '/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_31_6196.jpg', '/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_25_6194.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_55_6196.jpg
/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_48_6191.jpg
/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_42_6204.jpg
/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_36_5186.jpg
/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_31_6196.jpg
/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_25_6194.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330872009","1330872014","1330871995","1330871998","1330872007","1330872018"],"photo_ids_order":["1330871995","1330871998","1330872007","1330872009","1330872014","1330872018"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4dc6bf221772fb467c410d52b392b7de.jpg","text":"TemporaryFile(/tmp/multipartBody4745180765312420810asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665552489,"filename":"image_23012025_21_51_36_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/680d9543d09126be6c57a79e2007aeba.jpg","text":"TemporaryFile(/tmp/multipartBody3839504097991743822asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665552489,"filename":"image_23012025_21_51_31_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/261de353ff5dc72c4b8ea2a1e095832d.jpg","text":"TemporaryFile(/tmp/multipartBody7680945858279566611asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665552489,"filename":"image_23012025_21_51_55_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/26befe9536136d8edbdf6bd471c5579e.jpg","text":"TemporaryFile(/tmp/multipartBody1885215251477327146asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665552489,"filename":"image_23012025_21_51_48_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2b028a3675c058e19b6c14936a3f51f2.jpg","text":"TemporaryFile(/tmp/multipartBody4814657474323013799asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665552489,"filename":"image_23012025_21_51_42_6204.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/797afb88659fa759dea9b8555b388bc1.jpg","text":"TemporaryFile(/tmp/multipartBody1309808832505826133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665552489,"filename":"image_23012025_21_51_25_6194.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330872007","file1":"1330871998","file0":"1330871995","file4":"1330872014","file5":"1330872018","file3":"1330872009"},"map_files_photo_id_array":[{"photo_id":"1330872018","filename":"file5"},{"photo_id":"1330872007","filename":"file2"},{"photo_id":"1330872014","filename":"file4"},{"photo_id":"1330871998","filename":"file1"},{"photo_id":"1330871995","filename":"file0"},{"photo_id":"1330872009","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330872009":["hashtag1","hashtag2"]},{"1330872014":["hashtag1","hashtag2"]},{"1330871995":["hashtag1","hashtag2"]},{"1330871998":["hashtag1","hashtag2"]},{"1330872007":["hashtag1","hashtag2"]},{"1330872018":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330872009, 1330872014, 1330871995, 1330871998, 1330872007, 1330872018)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.30942678451538 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:52:32.030659
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_55_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_48_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_42_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_36_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_30_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_25_6198.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_55_6201.jpg', '/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_48_6201.jpg', '/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_42_6197.jpg', '/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_36_6191.jpg', '/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_30_5184.jpg', '/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_25_6198.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_55_6201.jpg
/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_48_6201.jpg
/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_42_6197.jpg
/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_36_6191.jpg
/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_30_5184.jpg
/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_25_6198.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330872111","1330872119","1330872107","1330872127","1330872099","1330872102"],"photo_ids_order":["1330872099","1330872102","1330872107","1330872111","1330872119","1330872127"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d6d158683de09b23280bdac8353f176a.jpg","text":"TemporaryFile(/tmp/multipartBody9099031804966749174asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665612650,"filename":"image_23012025_21_52_36_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/02b61bcec0e95ade87d5a9d6d400d207.jpg","text":"TemporaryFile(/tmp/multipartBody4738429830828618983asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665612650,"filename":"image_23012025_21_52_30_5184.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/067d06cf676f2b1f16cb8a4132b8005c.jpg","text":"TemporaryFile(/tmp/multipartBody7180237117032670731asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665612650,"filename":"image_23012025_21_52_42_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/597bbb5ec6de4a5f1494af42b6c653eb.jpg","text":"TemporaryFile(/tmp/multipartBody4630470073715346170asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665612650,"filename":"image_23012025_21_52_25_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d093072b747e7b4a3ad3d13507c2e808.jpg","text":"TemporaryFile(/tmp/multipartBody2120521725502625822asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665612650,"filename":"image_23012025_21_52_55_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d30fd55dbc2078dec80f4022b014efef.jpg","text":"TemporaryFile(/tmp/multipartBody8648678183271471795asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665612650,"filename":"image_23012025_21_52_48_6201.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330872107","file1":"1330872102","file0":"1330872099","file4":"1330872119","file5":"1330872127","file3":"1330872111"},"map_files_photo_id_array":[{"photo_id":"1330872127","filename":"file5"},{"photo_id":"1330872107","filename":"file2"},{"photo_id":"1330872119","filename":"file4"},{"photo_id":"1330872102","filename":"file1"},{"photo_id":"1330872099","filename":"file0"},{"photo_id":"1330872111","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330872111":["hashtag1","hashtag2"]},{"1330872119":["hashtag1","hashtag2"]},{"1330872107":["hashtag1","hashtag2"]},{"1330872127":["hashtag1","hashtag2"]},{"1330872099":["hashtag1","hashtag2"]},{"1330872102":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330872111, 1330872119, 1330872107, 1330872127, 1330872099, 1330872102)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.15768790245056 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:53:32.129406
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/53/image_23012025_21_54_00_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_49_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_42_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_36_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_30_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_24_5187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/53/image_23012025_21_54_00_5188.jpg', '/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_49_6195.jpg', '/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_42_6200.jpg', '/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_36_6200.jpg', '/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_30_6197.jpg', '/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_24_5187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/53/image_23012025_21_54_00_5188.jpg
/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_49_6195.jpg
/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_42_6200.jpg
/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_36_6200.jpg
/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_30_6197.jpg
/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_24_5187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330872182","1330872212","1330872209","1330872190","1330872205","1330872186"],"photo_ids_order":["1330872182","1330872186","1330872190","1330872205","1330872209","1330872212"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a6b8e803d9f24fce91c617996b50277c.jpg","text":"TemporaryFile(/tmp/multipartBody6844516731672893216asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665672841,"filename":"image_23012025_21_54_00_5188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/452d8251e2fdfc79339dd812fead14c7.jpg","text":"TemporaryFile(/tmp/multipartBody7350589430727638858asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665672841,"filename":"image_23012025_21_53_24_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9e4d657f47f4d7aab64a922f41d016bc.jpg","text":"TemporaryFile(/tmp/multipartBody7188357079037144361asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665672841,"filename":"image_23012025_21_53_30_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2381601456feb51b6e3140b10b0a0262.jpg","text":"TemporaryFile(/tmp/multipartBody5643644050336401195asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665672841,"filename":"image_23012025_21_53_42_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/691b740e15cd47b5645af7511a8f584d.jpg","text":"TemporaryFile(/tmp/multipartBody5398984151080384031asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665672841,"filename":"image_23012025_21_53_36_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/627b74016020e0bc35564e63ca9f2e8b.jpg","text":"TemporaryFile(/tmp/multipartBody5678973463438694784asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665672841,"filename":"image_23012025_21_53_49_6195.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330872190","file1":"1330872186","file0":"1330872182","file4":"1330872209","file5":"1330872212","file3":"1330872205"},"map_files_photo_id_array":[{"photo_id":"1330872212","filename":"file5"},{"photo_id":"1330872190","filename":"file2"},{"photo_id":"1330872209","filename":"file4"},{"photo_id":"1330872186","filename":"file1"},{"photo_id":"1330872182","filename":"file0"},{"photo_id":"1330872205","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330872182":["hashtag1","hashtag2"]},{"1330872212":["hashtag1","hashtag2"]},{"1330872209":["hashtag1","hashtag2"]},{"1330872190":["hashtag1","hashtag2"]},{"1330872205":["hashtag1","hashtag2"]},{"1330872186":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330872182, 1330872212, 1330872209, 1330872190, 1330872205, 1330872186)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.06957697868347 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:54:32.232080
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/54/image_23012025_21_54_55_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/21/54/image_23012025_21_54_49_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/54/image_23012025_21_54_36_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/21/54/image_23012025_21_54_30_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/21/54/image_23012025_21_54_25_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/54/image_23012025_21_54_19_6198.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/54/image_23012025_21_54_55_6194.jpg', '/home/nano/Desktop/images/23012025/21/54/image_23012025_21_54_49_6188.jpg', '/home/nano/Desktop/images/23012025/21/54/image_23012025_21_54_36_6192.jpg', '/home/nano/Desktop/images/23012025/21/54/image_23012025_21_54_30_5186.jpg', '/home/nano/Desktop/images/23012025/21/54/image_23012025_21_54_25_6197.jpg', '/home/nano/Desktop/images/23012025/21/54/image_23012025_21_54_19_6198.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/54/image_23012025_21_54_55_6194.jpg
/home/nano/Desktop/images/23012025/21/54/image_23012025_21_54_49_6188.jpg
/home/nano/Desktop/images/23012025/21/54/image_23012025_21_54_36_6192.jpg
/home/nano/Desktop/images/23012025/21/54/image_23012025_21_54_30_5186.jpg
/home/nano/Desktop/images/23012025/21/54/image_23012025_21_54_25_6197.jpg
/home/nano/Desktop/images/23012025/21/54/image_23012025_21_54_19_6198.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330872266","1330872277","1330872282","1330872285","1330872270","1330872273"],"photo_ids_order":["1330872266","1330872270","1330872273","1330872277","1330872282","1330872285"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8441d1421fde109a8aa5163b1d30bab5.jpg","text":"TemporaryFile(/tmp/multipartBody7927844368394075875asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665732743,"filename":"image_23012025_21_54_55_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7287c6068fb5326b25fd7f06a9d4e9ef.jpg","text":"TemporaryFile(/tmp/multipartBody3796318197377075644asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665732743,"filename":"image_23012025_21_54_30_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/730555f0e076c8efae99adeda5b9cacf.jpg","text":"TemporaryFile(/tmp/multipartBody8778955114945288057asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665732743,"filename":"image_23012025_21_54_25_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/99d138ce77685af1dfecad56f7aae9a8.jpg","text":"TemporaryFile(/tmp/multipartBody600669061637475952asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665732743,"filename":"image_23012025_21_54_19_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9e14c0e1e8334fce7cecf5a332ddde2f.jpg","text":"TemporaryFile(/tmp/multipartBody6756444177755540219asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665732743,"filename":"image_23012025_21_54_49_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d858c119be67ffc5393dcc6098b0268c.jpg","text":"TemporaryFile(/tmp/multipartBody5942883592226399873asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665732743,"filename":"image_23012025_21_54_36_6192.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330872273","file1":"1330872270","file0":"1330872266","file4":"1330872282","file5":"1330872285","file3":"1330872277"},"map_files_photo_id_array":[{"photo_id":"1330872285","filename":"file5"},{"photo_id":"1330872273","filename":"file2"},{"photo_id":"1330872282","filename":"file4"},{"photo_id":"1330872270","filename":"file1"},{"photo_id":"1330872266","filename":"file0"},{"photo_id":"1330872277","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330872266":["hashtag1","hashtag2"]},{"1330872277":["hashtag1","hashtag2"]},{"1330872282":["hashtag1","hashtag2"]},{"1330872285":["hashtag1","hashtag2"]},{"1330872270":["hashtag1","hashtag2"]},{"1330872273":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330872266, 1330872277, 1330872282, 1330872285, 1330872270, 1330872273)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.049956560134888 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:55:32.391415
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_55_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_49_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_42_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_36_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_30_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_25_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_55_6187.jpg', '/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_49_6187.jpg', '/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_42_6187.jpg', '/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_36_6190.jpg', '/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_30_5178.jpg', '/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_25_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_55_6187.jpg
/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_49_6187.jpg
/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_42_6187.jpg
/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_36_6190.jpg
/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_30_5178.jpg
/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_25_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330872386","1330872370","1330872382","1330872361","1330872349","1330872346"],"photo_ids_order":["1330872346","1330872349","1330872361","1330872370","1330872382","1330872386"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/20020269c4304e9be1876928b790ef26.jpg","text":"TemporaryFile(/tmp/multipartBody5238745174826756223asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665792808,"filename":"image_23012025_21_55_25_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2a3cf2b2e87310faef1b58a426860b6b.jpg","text":"TemporaryFile(/tmp/multipartBody2124136594581881184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665792808,"filename":"image_23012025_21_55_36_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f4563017fdda687d14d111b1351bb1ef.jpg","text":"TemporaryFile(/tmp/multipartBody8864226889741958921asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665792808,"filename":"image_23012025_21_55_30_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4b1aea7add4a1b1da8f6a6c4454d2c4c.jpg","text":"TemporaryFile(/tmp/multipartBody3132909635812587688asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665792808,"filename":"image_23012025_21_55_42_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7f6ca3babf0521b1d4842a76c838ccc2.jpg","text":"TemporaryFile(/tmp/multipartBody6447959087926336531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665792808,"filename":"image_23012025_21_55_49_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/576e9942acc2348c0d95a916551e4da9.jpg","text":"TemporaryFile(/tmp/multipartBody7542554483937242578asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665792808,"filename":"image_23012025_21_55_55_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330872361","file1":"1330872349","file0":"1330872346","file4":"1330872382","file5":"1330872386","file3":"1330872370"},"map_files_photo_id_array":[{"photo_id":"1330872386","filename":"file5"},{"photo_id":"1330872361","filename":"file2"},{"photo_id":"1330872382","filename":"file4"},{"photo_id":"1330872349","filename":"file1"},{"photo_id":"1330872346","filename":"file0"},{"photo_id":"1330872370","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330872386":["hashtag1","hashtag2"]},{"1330872370":["hashtag1","hashtag2"]},{"1330872382":["hashtag1","hashtag2"]},{"1330872361":["hashtag1","hashtag2"]},{"1330872349":["hashtag1","hashtag2"]},{"1330872346":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330872386, 1330872370, 1330872382, 1330872361, 1330872349, 1330872346)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.083331823349 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:56:32.485880
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_55_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_48_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_42_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_36_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_31_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_25_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_55_6195.jpg', '/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_48_6190.jpg', '/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_42_6192.jpg', '/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_36_5177.jpg', '/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_31_6186.jpg', '/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_25_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_55_6195.jpg
/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_48_6190.jpg
/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_42_6192.jpg
/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_36_5177.jpg
/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_31_6186.jpg
/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_25_6187.jpg
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330872440","1330872425","1330872541","1330872529","1330872520","1330872538"],"photo_ids_order":["1330872425","1330872440","1330872520","1330872529","1330872538","1330872541"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e03b85d47dbdf46214186a5abad97a22.jpg","text":"TemporaryFile(/tmp/multipartBody105985180734756607asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665852876,"filename":"image_23012025_21_56_48_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c615ab264d7bc5e3478bc685d93172d0.jpg","text":"TemporaryFile(/tmp/multipartBody3568727016145271740asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665852876,"filename":"image_23012025_21_56_55_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e7c05adbff4f87f15be4696a2152ee14.jpg","text":"TemporaryFile(/tmp/multipartBody6893612673418040650asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665852876,"filename":"image_23012025_21_56_25_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/62ad5cb145e08c5189eec719e2794ea3.jpg","text":"TemporaryFile(/tmp/multipartBody6504935720370503275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665852876,"filename":"image_23012025_21_56_36_5177.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/20495201276eb2b18c4ec97d21015b23.jpg","text":"TemporaryFile(/tmp/multipartBody5000353875810321314asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665852876,"filename":"image_23012025_21_56_42_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bb7c9ff862b27f7eda233f6be9f5f07c.jpg","text":"TemporaryFile(/tmp/multipartBody8029829555653814882asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665852876,"filename":"image_23012025_21_56_31_6186.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330872520","file1":"1330872440","file0":"1330872425","file4":"1330872538","file5":"1330872541","file3":"1330872529"},"map_files_photo_id_array":[{"photo_id":"1330872541","filename":"file5"},{"photo_id":"1330872520","filename":"file2"},{"photo_id":"1330872538","filename":"file4"},{"photo_id":"1330872440","filename":"file1"},{"photo_id":"1330872425","filename":"file0"},{"photo_id":"1330872529","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330872440":["hashtag1","hashtag2"]},{"1330872425":["hashtag1","hashtag2"]},{"1330872541":["hashtag1","hashtag2"]},{"1330872529":["hashtag1","hashtag2"]},{"1330872520":["hashtag1","hashtag2"]},{"1330872538":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330872440, 1330872425, 1330872541, 1330872529, 1330872520, 1330872538)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.101963758468628 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:57:03.215052
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_18_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_12_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_06_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/55/image_23012025_21_56_01_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_19_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_12_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_18_6187.jpg', '/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_12_6188.jpg', '/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_06_5187.jpg', '/home/nano/Desktop/images/23012025/21/55/image_23012025_21_56_01_6187.jpg', '/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_19_6187.jpg', '/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_12_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_18_6187.jpg
/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_12_6188.jpg
/home/nano/Desktop/images/23012025/21/56/image_23012025_21_56_06_5187.jpg
/home/nano/Desktop/images/23012025/21/55/image_23012025_21_56_01_6187.jpg
/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_19_6187.jpg
/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_12_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330872599","1330872644","1330872649","1330872669","1330872639","1330872627"],"photo_ids_order":["1330872599","1330872627","1330872639","1330872644","1330872649","1330872669"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/14c477a3c08034c44155d99f43cf4791.jpg","text":"TemporaryFile(/tmp/multipartBody2784418127901039327asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665883645,"filename":"image_23012025_21_56_18_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/73f5b02911afab35982a270077333f33.jpg","text":"TemporaryFile(/tmp/multipartBody6853751222946535462asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665883645,"filename":"image_23012025_21_56_01_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bc6366e8079dff5a88df1828edc37a3b.jpg","text":"TemporaryFile(/tmp/multipartBody193054252484623836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665883645,"filename":"image_23012025_21_55_19_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cd365d3b1d31c5ff3ee5a20c45740d2d.jpg","text":"TemporaryFile(/tmp/multipartBody6733092202547565100asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665883645,"filename":"image_23012025_21_55_12_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/467498a08c409bb9c1c2b466c617519a.jpg","text":"TemporaryFile(/tmp/multipartBody3643680939954836149asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665883645,"filename":"image_23012025_21_56_06_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3eb184bfde14ee7da5c22d913571aae7.jpg","text":"TemporaryFile(/tmp/multipartBody2871195617569885342asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665883645,"filename":"image_23012025_21_56_12_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330872639","file1":"1330872627","file0":"1330872599","file4":"1330872649","file5":"1330872669","file3":"1330872644"},"map_files_photo_id_array":[{"photo_id":"1330872669","filename":"file5"},{"photo_id":"1330872639","filename":"file2"},{"photo_id":"1330872649","filename":"file4"},{"photo_id":"1330872627","filename":"file1"},{"photo_id":"1330872599","filename":"file0"},{"photo_id":"1330872644","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330872599":["hashtag1","hashtag2"]},{"1330872644":["hashtag1","hashtag2"]},{"1330872649":["hashtag1","hashtag2"]},{"1330872669":["hashtag1","hashtag2"]},{"1330872639":["hashtag1","hashtag2"]},{"1330872627":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330872599, 1330872644, 1330872649, 1330872669, 1330872639, 1330872627)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.772197246551514 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:58:03.077523
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_54_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_48_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_42_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_36_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_31_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_25_6186.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_54_6194.jpg', '/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_48_6189.jpg', '/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_42_6193.jpg', '/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_36_5181.jpg', '/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_31_6189.jpg', '/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_25_6186.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_54_6194.jpg
/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_48_6189.jpg
/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_42_6193.jpg
/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_36_5181.jpg
/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_31_6189.jpg
/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_25_6186.jpg
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330872729","1330872740","1330872734","1330872731","1330872736","1330872738"],"photo_ids_order":["1330872729","1330872731","1330872734","1330872736","1330872738","1330872740"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ade3142fd327a0624d6d5a34a91b330c.jpg","text":"TemporaryFile(/tmp/multipartBody4747026240070980571asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665943793,"filename":"image_23012025_21_57_54_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/04f80d8f28846641ad5c5508081802b7.jpg","text":"TemporaryFile(/tmp/multipartBody8586623985612243868asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665943793,"filename":"image_23012025_21_57_25_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/93580bfdf1edc721363500ba372eb905.jpg","text":"TemporaryFile(/tmp/multipartBody5601444517629351628asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665943793,"filename":"image_23012025_21_57_42_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a5b368c12e913255903b27261c22c145.jpg","text":"TemporaryFile(/tmp/multipartBody911614411625963802asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665943793,"filename":"image_23012025_21_57_48_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/613134be2fca1c0705f0d2c499148a42.jpg","text":"TemporaryFile(/tmp/multipartBody7854163469308818780asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665943793,"filename":"image_23012025_21_57_36_5181.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3ee48a1686df472d37b3e998a1929e0f.jpg","text":"TemporaryFile(/tmp/multipartBody6291575431502429306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737665943793,"filename":"image_23012025_21_57_31_6189.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330872734","file1":"1330872731","file0":"1330872729","file4":"1330872738","file5":"1330872740","file3":"1330872736"},"map_files_photo_id_array":[{"photo_id":"1330872740","filename":"file5"},{"photo_id":"1330872734","filename":"file2"},{"photo_id":"1330872738","filename":"file4"},{"photo_id":"1330872731","filename":"file1"},{"photo_id":"1330872729","filename":"file0"},{"photo_id":"1330872736","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330872729":["hashtag1","hashtag2"]},{"1330872740":["hashtag1","hashtag2"]},{"1330872734":["hashtag1","hashtag2"]},{"1330872731":["hashtag1","hashtag2"]},{"1330872736":["hashtag1","hashtag2"]},{"1330872738":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330872729, 1330872740, 1330872734, 1330872731, 1330872736, 1330872738)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.33047890663147 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 21:59:03.444292
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_18_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_12_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_06_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/21/56/image_23012025_21_57_01_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_06_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/54/image_23012025_21_55_00_5182.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_18_6188.jpg', '/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_12_6187.jpg', '/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_06_5186.jpg', '/home/nano/Desktop/images/23012025/21/56/image_23012025_21_57_01_6188.jpg', '/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_06_6196.jpg', '/home/nano/Desktop/images/23012025/21/54/image_23012025_21_55_00_5182.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_18_6188.jpg
/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_12_6187.jpg
/home/nano/Desktop/images/23012025/21/57/image_23012025_21_57_06_5186.jpg
/home/nano/Desktop/images/23012025/21/56/image_23012025_21_57_01_6188.jpg
/home/nano/Desktop/images/23012025/21/55/image_23012025_21_55_06_6196.jpg
/home/nano/Desktop/images/23012025/21/54/image_23012025_21_55_00_5182.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330872851","1330872788","1330872793","1330872856","1330872831","1330872804"],"photo_ids_order":["1330872788","1330872793","1330872804","1330872831","1330872851","1330872856"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/77b06cabd3c8d38177c1775a66d9b5d1.jpg","text":"TemporaryFile(/tmp/multipartBody2273459300158502713asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666003941,"filename":"image_23012025_21_55_06_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d8c5018b86f58802ff31ec6e262cd351.jpg","text":"TemporaryFile(/tmp/multipartBody3690703932017525759asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666003941,"filename":"image_23012025_21_57_18_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8caaeedd4b9688611ebe18f542c484dd.jpg","text":"TemporaryFile(/tmp/multipartBody2373773622701192690asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666003941,"filename":"image_23012025_21_57_12_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5da8f05e5e42990de4f5e5c9cbfed19c.jpg","text":"TemporaryFile(/tmp/multipartBody7300203092809777025asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666003941,"filename":"image_23012025_21_55_00_5182.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/78a59f5c0d7b86787e114abe748f5fa4.jpg","text":"TemporaryFile(/tmp/multipartBody1094997422208783054asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666003941,"filename":"image_23012025_21_57_01_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/20300d36f650483dddc0c731fbab08ce.jpg","text":"TemporaryFile(/tmp/multipartBody6614095321124201461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666003941,"filename":"image_23012025_21_57_06_5186.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330872804","file1":"1330872793","file0":"1330872788","file4":"1330872851","file5":"1330872856","file3":"1330872831"},"map_files_photo_id_array":[{"photo_id":"1330872856","filename":"file5"},{"photo_id":"1330872804","filename":"file2"},{"photo_id":"1330872851","filename":"file4"},{"photo_id":"1330872793","filename":"file1"},{"photo_id":"1330872788","filename":"file0"},{"photo_id":"1330872831","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330872851":["hashtag1","hashtag2"]},{"1330872788":["hashtag1","hashtag2"]},{"1330872793":["hashtag1","hashtag2"]},{"1330872856":["hashtag1","hashtag2"]},{"1330872831":["hashtag1","hashtag2"]},{"1330872804":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330872851, 1330872788, 1330872793, 1330872856, 1330872831, 1330872804)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.45356273651123 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:00:03.289526
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_54_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_48_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_42_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_37_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_31_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_24_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_54_6188.jpg', '/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_48_6186.jpg', '/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_42_5176.jpg', '/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_37_6189.jpg', '/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_31_6187.jpg', '/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_24_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_54_6188.jpg
/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_48_6186.jpg
/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_42_5176.jpg
/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_37_6189.jpg
/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_31_6187.jpg
/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_24_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330872997","1330872988","1330872970","1330873002","1330873005","1330872992"],"photo_ids_order":["1330872970","1330872988","1330872992","1330872997","1330873002","1330873005"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/008b508937d094288691c047c788b771.jpg","text":"TemporaryFile(/tmp/multipartBody1822808753026386411asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666063695,"filename":"image_23012025_21_59_37_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/26d128321372c7f1f6cdc94e8bbd89d6.jpg","text":"TemporaryFile(/tmp/multipartBody1776010797639144902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666063695,"filename":"image_23012025_21_59_48_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/de0e943923c62ccac53272f6853c1dd8.jpg","text":"TemporaryFile(/tmp/multipartBody2863742153544121249asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666063695,"filename":"image_23012025_21_59_54_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7e9af8b8ba11335012de1d57a8bcc8f4.jpg","text":"TemporaryFile(/tmp/multipartBody3353804043283502530asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666063695,"filename":"image_23012025_21_59_31_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/89eb046d6b08c5df5fda44814a0eeb9f.jpg","text":"TemporaryFile(/tmp/multipartBody1722402899119173917asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666063695,"filename":"image_23012025_21_59_24_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a6624dfb20088bd2f2cbac8d5a493dc2.jpg","text":"TemporaryFile(/tmp/multipartBody7550328166273953592asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666063695,"filename":"image_23012025_21_59_42_5176.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330872992","file1":"1330872988","file0":"1330872970","file4":"1330873002","file5":"1330873005","file3":"1330872997"},"map_files_photo_id_array":[{"photo_id":"1330873005","filename":"file5"},{"photo_id":"1330872992","filename":"file2"},{"photo_id":"1330873002","filename":"file4"},{"photo_id":"1330872988","filename":"file1"},{"photo_id":"1330872970","filename":"file0"},{"photo_id":"1330872997","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330872997":["hashtag1","hashtag2"]},{"1330872988":["hashtag1","hashtag2"]},{"1330872970":["hashtag1","hashtag2"]},{"1330873002":["hashtag1","hashtag2"]},{"1330873005":["hashtag1","hashtag2"]},{"1330872992":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330872997, 1330872988, 1330872970, 1330873002, 1330873005, 1330872992)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.652838706970215 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:01:02.482050
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_54_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_48_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_43_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_37_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_30_6184.jpg', 2), ('/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_24_6192.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_54_6187.jpg', '/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_48_5178.jpg', '/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_43_6187.jpg', '/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_37_6191.jpg', '/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_30_6184.jpg', '/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_24_6192.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_54_6187.jpg
/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_48_5178.jpg
/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_43_6187.jpg
/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_37_6191.jpg
/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_30_6184.jpg
/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_24_6192.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330873034","1330873042","1330873045","1330873050","1330873029","1330873038"],"photo_ids_order":["1330873029","1330873034","1330873038","1330873042","1330873045","1330873050"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/03e077e895551035a2c3b440165b44ad.jpg","text":"TemporaryFile(/tmp/multipartBody6228430690681293786asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666122890,"filename":"image_23012025_22_00_48_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f73c9f496f7def3eb201ed1d2697a92c.jpg","text":"TemporaryFile(/tmp/multipartBody543955875126068349asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666122890,"filename":"image_23012025_22_00_37_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6769cb1c451e1e494929ee1faa420654.jpg","text":"TemporaryFile(/tmp/multipartBody8016369800470260238asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666122890,"filename":"image_23012025_22_00_30_6184.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f952245a885bbf0d5524b2c6ce1b06d7.jpg","text":"TemporaryFile(/tmp/multipartBody7586106752791925186asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666122890,"filename":"image_23012025_22_00_24_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0d94bd420f230808d10962bda53ce9a2.jpg","text":"TemporaryFile(/tmp/multipartBody2412623823784998417asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666122890,"filename":"image_23012025_22_00_54_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2de751b5710a8ebaf92832c9c635f763.jpg","text":"TemporaryFile(/tmp/multipartBody5236713360432348229asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666122890,"filename":"image_23012025_22_00_43_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330873038","file1":"1330873034","file0":"1330873029","file4":"1330873045","file5":"1330873050","file3":"1330873042"},"map_files_photo_id_array":[{"photo_id":"1330873050","filename":"file5"},{"photo_id":"1330873038","filename":"file2"},{"photo_id":"1330873045","filename":"file4"},{"photo_id":"1330873034","filename":"file1"},{"photo_id":"1330873029","filename":"file0"},{"photo_id":"1330873042","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330873034":["hashtag1","hashtag2"]},{"1330873042":["hashtag1","hashtag2"]},{"1330873045":["hashtag1","hashtag2"]},{"1330873050":["hashtag1","hashtag2"]},{"1330873029":["hashtag1","hashtag2"]},{"1330873038":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330873034, 1330873042, 1330873045, 1330873050, 1330873029, 1330873038)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.19211745262146 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:02:02.433205
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/01/image_23012025_22_01_49_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/01/image_23012025_22_01_43_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/22/01/image_23012025_22_01_37_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/22/01/image_23012025_22_01_30_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/22/01/image_23012025_22_01_24_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/01/image_23012025_22_01_18_5180.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/01/image_23012025_22_01_49_6196.jpg', '/home/nano/Desktop/images/23012025/22/01/image_23012025_22_01_43_6189.jpg', '/home/nano/Desktop/images/23012025/22/01/image_23012025_22_01_37_6190.jpg', '/home/nano/Desktop/images/23012025/22/01/image_23012025_22_01_30_6188.jpg', '/home/nano/Desktop/images/23012025/22/01/image_23012025_22_01_24_6196.jpg', '/home/nano/Desktop/images/23012025/22/01/image_23012025_22_01_18_5180.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/01/image_23012025_22_01_49_6196.jpg
/home/nano/Desktop/images/23012025/22/01/image_23012025_22_01_43_6189.jpg
/home/nano/Desktop/images/23012025/22/01/image_23012025_22_01_37_6190.jpg
/home/nano/Desktop/images/23012025/22/01/image_23012025_22_01_30_6188.jpg
/home/nano/Desktop/images/23012025/22/01/image_23012025_22_01_24_6196.jpg
/home/nano/Desktop/images/23012025/22/01/image_23012025_22_01_18_5180.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330873090","1330873084","1330873080","1330873113","1330873101","1330873076"],"photo_ids_order":["1330873076","1330873080","1330873084","1330873090","1330873101","1330873113"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bafbeee9a5dc67883e3697cf06f427d6.jpg","text":"TemporaryFile(/tmp/multipartBody3893183420364732847asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666182919,"filename":"image_23012025_22_01_30_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b9351110b934eb73c5b4378f19ed7024.jpg","text":"TemporaryFile(/tmp/multipartBody3853915117732088893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666182919,"filename":"image_23012025_22_01_37_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/dd42bf44ebcf9b2e690c8c1d42f518f6.jpg","text":"TemporaryFile(/tmp/multipartBody2167030853092056924asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666182919,"filename":"image_23012025_22_01_43_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9719ce70b9474c8c0408f6e0c696e324.jpg","text":"TemporaryFile(/tmp/multipartBody6184040760630157923asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666182919,"filename":"image_23012025_22_01_18_5180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/aa2f315e2ec75a928d8f283f01957fa4.jpg","text":"TemporaryFile(/tmp/multipartBody1623421350123809519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666182919,"filename":"image_23012025_22_01_24_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b7307b384479d56b0294b729ea76ce58.jpg","text":"TemporaryFile(/tmp/multipartBody6702456835860761163asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666182919,"filename":"image_23012025_22_01_49_6196.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330873084","file1":"1330873080","file0":"1330873076","file4":"1330873101","file5":"1330873113","file3":"1330873090"},"map_files_photo_id_array":[{"photo_id":"1330873113","filename":"file5"},{"photo_id":"1330873084","filename":"file2"},{"photo_id":"1330873101","filename":"file4"},{"photo_id":"1330873080","filename":"file1"},{"photo_id":"1330873076","filename":"file0"},{"photo_id":"1330873090","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330873090":["hashtag1","hashtag2"]},{"1330873084":["hashtag1","hashtag2"]},{"1330873080":["hashtag1","hashtag2"]},{"1330873113":["hashtag1","hashtag2"]},{"1330873101":["hashtag1","hashtag2"]},{"1330873076":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330873090, 1330873084, 1330873080, 1330873113, 1330873101, 1330873076)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.294936418533325 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:03:02.673073
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/03/image_23012025_22_04_00_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/22/02/image_23012025_22_02_13_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/01/image_23012025_22_02_00_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/01/image_23012025_22_01_13_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/22/01/image_23012025_22_01_07_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/22/00/image_23012025_22_01_00_6213.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/03/image_23012025_22_04_00_6199.jpg', '/home/nano/Desktop/images/23012025/22/02/image_23012025_22_02_13_6196.jpg', '/home/nano/Desktop/images/23012025/22/01/image_23012025_22_02_00_6197.jpg', '/home/nano/Desktop/images/23012025/22/01/image_23012025_22_01_13_6188.jpg', '/home/nano/Desktop/images/23012025/22/01/image_23012025_22_01_07_6195.jpg', '/home/nano/Desktop/images/23012025/22/00/image_23012025_22_01_00_6213.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/03/image_23012025_22_04_00_6199.jpg
/home/nano/Desktop/images/23012025/22/02/image_23012025_22_02_13_6196.jpg
/home/nano/Desktop/images/23012025/22/01/image_23012025_22_02_00_6197.jpg
/home/nano/Desktop/images/23012025/22/01/image_23012025_22_01_13_6188.jpg
/home/nano/Desktop/images/23012025/22/01/image_23012025_22_01_07_6195.jpg
/home/nano/Desktop/images/23012025/22/00/image_23012025_22_01_00_6213.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330873232","1330873264","1330873255","1330873243","1330873225","1330873269"],"photo_ids_order":["1330873225","1330873232","1330873243","1330873255","1330873264","1330873269"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8be05de65069dbb6a7683390e5c8d70a.jpg","text":"TemporaryFile(/tmp/multipartBody7893005918085545820asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666243290,"filename":"image_23012025_22_02_13_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a735f21bf1eff388cf256de6a8afb2b9.jpg","text":"TemporaryFile(/tmp/multipartBody4631970713469486147asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666243290,"filename":"image_23012025_22_01_07_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/315d3dcb12b620cf974cdb9c927e8898.jpg","text":"TemporaryFile(/tmp/multipartBody5393116242130570857asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666243290,"filename":"image_23012025_22_01_13_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/73ed66b6b7b46e28897d729a759f0f9c.jpg","text":"TemporaryFile(/tmp/multipartBody7427842946025954898asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666243290,"filename":"image_23012025_22_02_00_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2f1ed5fba4aa7cc56806f1838c8537ec.jpg","text":"TemporaryFile(/tmp/multipartBody5482757211477414210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666243290,"filename":"image_23012025_22_04_00_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b6e79e368b42a529443a5166eee0adf3.jpg","text":"TemporaryFile(/tmp/multipartBody673766537349482766asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666243290,"filename":"image_23012025_22_01_00_6213.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330873243","file1":"1330873232","file0":"1330873225","file4":"1330873264","file5":"1330873269","file3":"1330873255"},"map_files_photo_id_array":[{"photo_id":"1330873269","filename":"file5"},{"photo_id":"1330873243","filename":"file2"},{"photo_id":"1330873264","filename":"file4"},{"photo_id":"1330873232","filename":"file1"},{"photo_id":"1330873225","filename":"file0"},{"photo_id":"1330873255","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330873232":["hashtag1","hashtag2"]},{"1330873264":["hashtag1","hashtag2"]},{"1330873255":["hashtag1","hashtag2"]},{"1330873243":["hashtag1","hashtag2"]},{"1330873225":["hashtag1","hashtag2"]},{"1330873269":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330873232, 1330873264, 1330873255, 1330873243, 1330873225, 1330873269)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.78517413139343 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:04:02.962621
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/03/image_23012025_22_03_43_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/22/03/image_23012025_22_03_36_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/22/02/image_23012025_22_02_49_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_18_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_13_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_07_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/03/image_23012025_22_03_43_6200.jpg', '/home/nano/Desktop/images/23012025/22/03/image_23012025_22_03_36_6199.jpg', '/home/nano/Desktop/images/23012025/22/02/image_23012025_22_02_49_6197.jpg', '/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_18_5178.jpg', '/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_13_6186.jpg', '/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_07_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/03/image_23012025_22_03_43_6200.jpg
/home/nano/Desktop/images/23012025/22/03/image_23012025_22_03_36_6199.jpg
/home/nano/Desktop/images/23012025/22/02/image_23012025_22_02_49_6197.jpg
/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_18_5178.jpg
/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_13_6186.jpg
/home/nano/Desktop/images/23012025/22/00/image_23012025_22_00_07_6197.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330873427","1330873421","1330873430","1330873424","1330873332","1330873329"],"photo_ids_order":["1330873329","1330873332","1330873421","1330873424","1330873427","1330873430"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9f614b0f8de51268513d00fea91b76dc.jpg","text":"TemporaryFile(/tmp/multipartBody6065660026561555684asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666303564,"filename":"image_23012025_22_00_13_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a05abd2d1840e4e196f56d9f49a43df5.jpg","text":"TemporaryFile(/tmp/multipartBody3540332976238616084asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666303564,"filename":"image_23012025_22_02_49_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/11cbb95f187bc3d1f4c8bcefddb37f67.jpg","text":"TemporaryFile(/tmp/multipartBody2277977617858624646asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666303564,"filename":"image_23012025_22_00_07_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/48c632168ddae8b7201f902bbcc42501.jpg","text":"TemporaryFile(/tmp/multipartBody2363219488820202240asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666303564,"filename":"image_23012025_22_00_18_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e0258172d8d5bac7bfa715ee1c7ec303.jpg","text":"TemporaryFile(/tmp/multipartBody1298173874558227435asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666303564,"filename":"image_23012025_22_03_36_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/29a57b1db409cc42ca7ed0156ac6e695.jpg","text":"TemporaryFile(/tmp/multipartBody3090290885400829279asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666303564,"filename":"image_23012025_22_03_43_6200.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330873421","file1":"1330873332","file0":"1330873329","file4":"1330873427","file5":"1330873430","file3":"1330873424"},"map_files_photo_id_array":[{"photo_id":"1330873430","filename":"file5"},{"photo_id":"1330873421","filename":"file2"},{"photo_id":"1330873427","filename":"file4"},{"photo_id":"1330873332","filename":"file1"},{"photo_id":"1330873329","filename":"file0"},{"photo_id":"1330873424","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330873427":["hashtag1","hashtag2"]},{"1330873421":["hashtag1","hashtag2"]},{"1330873430":["hashtag1","hashtag2"]},{"1330873424":["hashtag1","hashtag2"]},{"1330873332":["hashtag1","hashtag2"]},{"1330873329":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330873427, 1330873421, 1330873430, 1330873424, 1330873332, 1330873329)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.55554962158203 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:05:02.728972
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/59/image_23012025_22_00_00_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_18_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_12_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_07_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/21/58/image_23012025_21_59_01_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_54_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/59/image_23012025_22_00_00_6187.jpg', '/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_18_6187.jpg', '/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_12_5178.jpg', '/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_07_6199.jpg', '/home/nano/Desktop/images/23012025/21/58/image_23012025_21_59_01_6187.jpg', '/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_54_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/59/image_23012025_22_00_00_6187.jpg
/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_18_6187.jpg
/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_12_5178.jpg
/home/nano/Desktop/images/23012025/21/59/image_23012025_21_59_07_6199.jpg
/home/nano/Desktop/images/23012025/21/58/image_23012025_21_59_01_6187.jpg
/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_54_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330873480","1330873474","1330873483","1330873477","1330873468","1330873485"],"photo_ids_order":["1330873468","1330873474","1330873477","1330873480","1330873483","1330873485"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/669c0dd60eee7184742eb2572596fa33.jpg","text":"TemporaryFile(/tmp/multipartBody1407361403084624437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666363183,"filename":"image_23012025_21_59_07_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5eb8eef4bd67dc549ad73a8b4f7568f9.jpg","text":"TemporaryFile(/tmp/multipartBody7815993021757110844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666363183,"filename":"image_23012025_21_59_18_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7c3ecbb535fd8d80c2ee1044e0280042.jpg","text":"TemporaryFile(/tmp/multipartBody6313519723485534225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666363183,"filename":"image_23012025_21_59_01_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f516eda9b88916a88c1f04b051fbfe8a.jpg","text":"TemporaryFile(/tmp/multipartBody1514535335079201493asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666363183,"filename":"image_23012025_21_59_12_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/14349235769caf7582c182fdd32ea0cd.jpg","text":"TemporaryFile(/tmp/multipartBody5361630780572010028asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666363183,"filename":"image_23012025_22_00_00_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3e0b3f048773d4e178675046aab14dd1.jpg","text":"TemporaryFile(/tmp/multipartBody9014820687059679782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666363183,"filename":"image_23012025_21_58_54_6195.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330873477","file1":"1330873474","file0":"1330873468","file4":"1330873483","file5":"1330873485","file3":"1330873480"},"map_files_photo_id_array":[{"photo_id":"1330873485","filename":"file5"},{"photo_id":"1330873477","filename":"file2"},{"photo_id":"1330873483","filename":"file4"},{"photo_id":"1330873474","filename":"file1"},{"photo_id":"1330873468","filename":"file0"},{"photo_id":"1330873480","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330873480":["hashtag1","hashtag2"]},{"1330873474":["hashtag1","hashtag2"]},{"1330873483":["hashtag1","hashtag2"]},{"1330873477":["hashtag1","hashtag2"]},{"1330873468":["hashtag1","hashtag2"]},{"1330873485":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330873480, 1330873474, 1330873483, 1330873477, 1330873468, 1330873485)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.4849591255188 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:06:02.817783
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/05/image_23012025_22_05_49_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/22/05/image_23012025_22_05_43_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/05/image_23012025_22_05_36_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/05/image_23012025_22_05_24_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/22/05/image_23012025_22_05_19_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/22/03/image_23012025_22_03_54_5189.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/05/image_23012025_22_05_49_6200.jpg', '/home/nano/Desktop/images/23012025/22/05/image_23012025_22_05_43_6197.jpg', '/home/nano/Desktop/images/23012025/22/05/image_23012025_22_05_36_6197.jpg', '/home/nano/Desktop/images/23012025/22/05/image_23012025_22_05_24_5186.jpg', '/home/nano/Desktop/images/23012025/22/05/image_23012025_22_05_19_6199.jpg', '/home/nano/Desktop/images/23012025/22/03/image_23012025_22_03_54_5189.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/05/image_23012025_22_05_49_6200.jpg
/home/nano/Desktop/images/23012025/22/05/image_23012025_22_05_43_6197.jpg
/home/nano/Desktop/images/23012025/22/05/image_23012025_22_05_36_6197.jpg
/home/nano/Desktop/images/23012025/22/05/image_23012025_22_05_24_5186.jpg
/home/nano/Desktop/images/23012025/22/05/image_23012025_22_05_19_6199.jpg
/home/nano/Desktop/images/23012025/22/03/image_23012025_22_03_54_5189.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330873535","1330873529","1330873538","1330873546","1330873542","1330873524"],"photo_ids_order":["1330873524","1330873529","1330873535","1330873538","1330873542","1330873546"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/124f6160380b694b23af8c3bfa47a48b.jpg","text":"TemporaryFile(/tmp/multipartBody3270682167328644513asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666423405,"filename":"image_23012025_22_05_36_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a83e6a33acd44614a4f4fc852ef870cb.jpg","text":"TemporaryFile(/tmp/multipartBody4643580073051506451asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666423405,"filename":"image_23012025_22_05_43_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a4139c917b636c130a412183ddfdb3c2.jpg","text":"TemporaryFile(/tmp/multipartBody3965079218068442822asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666423405,"filename":"image_23012025_22_05_24_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/789c14ec46e75f4b555461f03ce3b9a6.jpg","text":"TemporaryFile(/tmp/multipartBody8959113966718954909asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666423405,"filename":"image_23012025_22_03_54_5189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/67c6756c03c3876c6b91e59ffa47b001.jpg","text":"TemporaryFile(/tmp/multipartBody928127139161961053asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666423405,"filename":"image_23012025_22_05_19_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d92b404bc8d9d0640b823903c8b5c121.jpg","text":"TemporaryFile(/tmp/multipartBody6492664304820850590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666423405,"filename":"image_23012025_22_05_49_6200.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330873535","file1":"1330873529","file0":"1330873524","file4":"1330873542","file5":"1330873546","file3":"1330873538"},"map_files_photo_id_array":[{"photo_id":"1330873546","filename":"file5"},{"photo_id":"1330873535","filename":"file2"},{"photo_id":"1330873542","filename":"file4"},{"photo_id":"1330873529","filename":"file1"},{"photo_id":"1330873524","filename":"file0"},{"photo_id":"1330873538","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330873535":["hashtag1","hashtag2"]},{"1330873529":["hashtag1","hashtag2"]},{"1330873538":["hashtag1","hashtag2"]},{"1330873546":["hashtag1","hashtag2"]},{"1330873542":["hashtag1","hashtag2"]},{"1330873524":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330873535, 1330873529, 1330873538, 1330873546, 1330873542, 1330873524)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.406319618225098 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:07:03.136969
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/05/image_23012025_22_06_00_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_48_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_42_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_37_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_31_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_24_6192.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/05/image_23012025_22_06_00_6200.jpg', '/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_48_6186.jpg', '/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_42_5182.jpg', '/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_37_6200.jpg', '/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_31_6194.jpg', '/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_24_6192.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/05/image_23012025_22_06_00_6200.jpg
/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_48_6186.jpg
/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_42_5182.jpg
/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_37_6200.jpg
/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_31_6194.jpg
/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_24_6192.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330874440","1330874667","1330874195","1330874703","1330874687","1330874696"],"photo_ids_order":["1330874195","1330874440","1330874667","1330874687","1330874696","1330874703"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d1453d8f76e90c1f973a797011ee6e3b.jpg","text":"TemporaryFile(/tmp/multipartBody445684550716868034asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666483803,"filename":"image_23012025_21_58_48_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/42844c657e46758d480a9f8665ddc4dd.jpg","text":"TemporaryFile(/tmp/multipartBody1922931526590166641asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666483803,"filename":"image_23012025_21_58_42_5182.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/60c99c379b6b1bd26736e76da99d4898.jpg","text":"TemporaryFile(/tmp/multipartBody4374531666570853469asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666483803,"filename":"image_23012025_22_06_00_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b939320b3d81a02066c32a6b02977a73.jpg","text":"TemporaryFile(/tmp/multipartBody3790402543872821383asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666483803,"filename":"image_23012025_21_58_24_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8bb7ef341b3761403c24b0c8d0ac08fb.jpg","text":"TemporaryFile(/tmp/multipartBody4589535421203822006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666483803,"filename":"image_23012025_21_58_37_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7231d32f795f6719d4592b26e33f8e5d.jpg","text":"TemporaryFile(/tmp/multipartBody6412787500439023145asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666483803,"filename":"image_23012025_21_58_31_6194.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330874667","file1":"1330874440","file0":"1330874195","file4":"1330874696","file5":"1330874703","file3":"1330874687"},"map_files_photo_id_array":[{"photo_id":"1330874703","filename":"file5"},{"photo_id":"1330874667","filename":"file2"},{"photo_id":"1330874696","filename":"file4"},{"photo_id":"1330874440","filename":"file1"},{"photo_id":"1330874195","filename":"file0"},{"photo_id":"1330874687","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330874440":["hashtag1","hashtag2"]},{"1330874667":["hashtag1","hashtag2"]},{"1330874195":["hashtag1","hashtag2"]},{"1330874703":["hashtag1","hashtag2"]},{"1330874687":["hashtag1","hashtag2"]},{"1330874696":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330874440, 1330874667, 1330874195, 1330874703, 1330874687, 1330874696)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.473888635635376 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:08:03.070617
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/07/image_23012025_22_07_43_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/07/image_23012025_22_07_06_6214.jpg', 2), ('/home/nano/Desktop/images/23012025/22/06/image_23012025_22_06_30_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_18_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_12_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_07_6209.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/07/image_23012025_22_07_43_6196.jpg', '/home/nano/Desktop/images/23012025/22/07/image_23012025_22_07_06_6214.jpg', '/home/nano/Desktop/images/23012025/22/06/image_23012025_22_06_30_6199.jpg', '/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_18_6197.jpg', '/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_12_5180.jpg', '/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_07_6209.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/07/image_23012025_22_07_43_6196.jpg
/home/nano/Desktop/images/23012025/22/07/image_23012025_22_07_06_6214.jpg
/home/nano/Desktop/images/23012025/22/06/image_23012025_22_06_30_6199.jpg
/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_18_6197.jpg
/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_12_5180.jpg
/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_07_6209.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.5201599597930908 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:08:32.497979
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/07/image_23012025_22_07_43_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/07/image_23012025_22_07_06_6214.jpg', 2), ('/home/nano/Desktop/images/23012025/22/06/image_23012025_22_06_30_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_18_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_12_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_07_6209.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/07/image_23012025_22_07_43_6196.jpg', '/home/nano/Desktop/images/23012025/22/07/image_23012025_22_07_06_6214.jpg', '/home/nano/Desktop/images/23012025/22/06/image_23012025_22_06_30_6199.jpg', '/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_18_6197.jpg', '/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_12_5180.jpg', '/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_07_6209.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/07/image_23012025_22_07_43_6196.jpg
/home/nano/Desktop/images/23012025/22/07/image_23012025_22_07_06_6214.jpg
/home/nano/Desktop/images/23012025/22/06/image_23012025_22_06_30_6199.jpg
/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_18_6197.jpg
/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_12_5180.jpg
/home/nano/Desktop/images/23012025/21/58/image_23012025_21_58_07_6209.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330875201","1330875197","1330874928","1330875190","1330875172","1330874825"],"photo_ids_order":["1330874825","1330874928","1330875172","1330875190","1330875197","1330875201"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ac8d357c5d333ed359e02fe5a4853207.jpg","text":"TemporaryFile(/tmp/multipartBody6871674086832337080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666573095,"filename":"image_23012025_21_58_07_6209.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fe05d30509366e8db5499423572b6990.jpg","text":"TemporaryFile(/tmp/multipartBody4315842864801566636asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666573095,"filename":"image_23012025_21_58_12_5180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/253883385852a2d2c3a59f45222fa95e.jpg","text":"TemporaryFile(/tmp/multipartBody1345639663624347579asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666573095,"filename":"image_23012025_22_07_06_6214.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5979a296b046c0c9c805f14f42e18e8e.jpg","text":"TemporaryFile(/tmp/multipartBody5952654998348412010asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666573095,"filename":"image_23012025_21_58_18_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6f398877428b98e280c5072f02d35200.jpg","text":"TemporaryFile(/tmp/multipartBody4255740746146067762asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666573095,"filename":"image_23012025_22_06_30_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/76521de047455f74b9e5bdc153d9d656.jpg","text":"TemporaryFile(/tmp/multipartBody2119465188138390037asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666573095,"filename":"image_23012025_22_07_43_6196.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330875172","file1":"1330874928","file0":"1330874825","file4":"1330875197","file5":"1330875201","file3":"1330875190"},"map_files_photo_id_array":[{"photo_id":"1330875201","filename":"file5"},{"photo_id":"1330875172","filename":"file2"},{"photo_id":"1330875197","filename":"file4"},{"photo_id":"1330874928","filename":"file1"},{"photo_id":"1330874825","filename":"file0"},{"photo_id":"1330875190","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330875201":["hashtag1","hashtag2"]},{"1330875197":["hashtag1","hashtag2"]},{"1330874928":["hashtag1","hashtag2"]},{"1330875190":["hashtag1","hashtag2"]},{"1330875172":["hashtag1","hashtag2"]},{"1330874825":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330875201, 1330875197, 1330874928, 1330875190, 1330875172, 1330874825)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.14388942718506 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:09:32.587870
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/07/image_23012025_22_07_54_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/21/57/image_23012025_21_58_01_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/21/54/image_23012025_21_54_12_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/21/54/image_23012025_21_54_06_6222.jpg', 2), ('/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_55_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_19_6205.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/07/image_23012025_22_07_54_5189.jpg', '/home/nano/Desktop/images/23012025/21/57/image_23012025_21_58_01_6194.jpg', '/home/nano/Desktop/images/23012025/21/54/image_23012025_21_54_12_6193.jpg', '/home/nano/Desktop/images/23012025/21/54/image_23012025_21_54_06_6222.jpg', '/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_55_6195.jpg', '/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_19_6205.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/07/image_23012025_22_07_54_5189.jpg
/home/nano/Desktop/images/23012025/21/57/image_23012025_21_58_01_6194.jpg
/home/nano/Desktop/images/23012025/21/54/image_23012025_21_54_12_6193.jpg
/home/nano/Desktop/images/23012025/21/54/image_23012025_21_54_06_6222.jpg
/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_55_6195.jpg
/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_19_6205.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330875340","1330875343","1330875331","1330875345","1330875348","1330875371"],"photo_ids_order":["1330875331","1330875340","1330875343","1330875345","1330875348","1330875371"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/420fbad18929283970f3cba01348c818.jpg","text":"TemporaryFile(/tmp/multipartBody8578242614347843108asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666633131,"filename":"image_23012025_21_58_01_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6599678eb5057dea0ec224c06a73338b.jpg","text":"TemporaryFile(/tmp/multipartBody2576505871625463341asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666633131,"filename":"image_23012025_21_54_12_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0d5014d7b5f2d4318cb32640991571b7.jpg","text":"TemporaryFile(/tmp/multipartBody3391803788134969461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666633131,"filename":"image_23012025_22_07_54_5189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0199b78a2e711bb90754c2f9437cdad9.jpg","text":"TemporaryFile(/tmp/multipartBody5389207629232590509asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666633131,"filename":"image_23012025_21_54_06_6222.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/69e9b512b9cfeaa7b1886e6a65f04dcd.jpg","text":"TemporaryFile(/tmp/multipartBody7413977966557141131asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666633131,"filename":"image_23012025_21_53_55_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1e773bea87ef0dbaac08270c5e43a660.jpg","text":"TemporaryFile(/tmp/multipartBody6674540659721717455asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666633131,"filename":"image_23012025_21_53_19_6205.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330875343","file1":"1330875340","file0":"1330875331","file4":"1330875348","file5":"1330875371","file3":"1330875345"},"map_files_photo_id_array":[{"photo_id":"1330875371","filename":"file5"},{"photo_id":"1330875343","filename":"file2"},{"photo_id":"1330875348","filename":"file4"},{"photo_id":"1330875340","filename":"file1"},{"photo_id":"1330875331","filename":"file0"},{"photo_id":"1330875345","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330875340":["hashtag1","hashtag2"]},{"1330875343":["hashtag1","hashtag2"]},{"1330875331":["hashtag1","hashtag2"]},{"1330875345":["hashtag1","hashtag2"]},{"1330875348":["hashtag1","hashtag2"]},{"1330875371":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330875340, 1330875343, 1330875331, 1330875345, 1330875348, 1330875371)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.2867968082428 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:10:32.667608
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_12_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_06_5425.jpg', 2), ('/home/nano/Desktop/images/23012025/21/52/image_23012025_21_53_01_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_19_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_12_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_06_5335.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_12_6192.jpg', '/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_06_5425.jpg', '/home/nano/Desktop/images/23012025/21/52/image_23012025_21_53_01_6193.jpg', '/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_19_6200.jpg', '/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_12_6196.jpg', '/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_06_5335.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_12_6192.jpg
/home/nano/Desktop/images/23012025/21/53/image_23012025_21_53_06_5425.jpg
/home/nano/Desktop/images/23012025/21/52/image_23012025_21_53_01_6193.jpg
/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_19_6200.jpg
/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_12_6196.jpg
/home/nano/Desktop/images/23012025/21/52/image_23012025_21_52_06_5335.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330875406","1330875414","1330875425","1330875419","1330875410","1330875401"],"photo_ids_order":["1330875401","1330875406","1330875410","1330875414","1330875419","1330875425"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ffcee490c4bb0fa54d9d517c9159f8e0.jpg","text":"TemporaryFile(/tmp/multipartBody7583473528884280962asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666693366,"filename":"image_23012025_21_53_06_5425.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2fdbe5a2e9d0e378b4762faea6270645.jpg","text":"TemporaryFile(/tmp/multipartBody4670863947242073625asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666693366,"filename":"image_23012025_21_52_19_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/616df706673afa45f2f6855fc0a7c28b.jpg","text":"TemporaryFile(/tmp/multipartBody103901397420872808asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666693366,"filename":"image_23012025_21_52_06_5335.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/23d9a5a7327c8bca5c9e7e4b22939e8a.jpg","text":"TemporaryFile(/tmp/multipartBody5775521355923279776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666693366,"filename":"image_23012025_21_52_12_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/425f501dbd243f4325280200abcecb87.jpg","text":"TemporaryFile(/tmp/multipartBody7131273037598226779asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666693366,"filename":"image_23012025_21_53_01_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c05762a1b042140216ac727c58e72f43.jpg","text":"TemporaryFile(/tmp/multipartBody7575212527456209264asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666693366,"filename":"image_23012025_21_53_12_6192.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330875410","file1":"1330875406","file0":"1330875401","file4":"1330875419","file5":"1330875425","file3":"1330875414"},"map_files_photo_id_array":[{"photo_id":"1330875425","filename":"file5"},{"photo_id":"1330875410","filename":"file2"},{"photo_id":"1330875419","filename":"file4"},{"photo_id":"1330875406","filename":"file1"},{"photo_id":"1330875401","filename":"file0"},{"photo_id":"1330875414","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330875406":["hashtag1","hashtag2"]},{"1330875414":["hashtag1","hashtag2"]},{"1330875425":["hashtag1","hashtag2"]},{"1330875419":["hashtag1","hashtag2"]},{"1330875410":["hashtag1","hashtag2"]},{"1330875401":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330875406, 1330875414, 1330875425, 1330875419, 1330875410, 1330875401)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.88965606689453 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:11:31.799666
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/21/51/image_23012025_21_52_01_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_18_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_12_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_06_5385.jpg', 2), ('/home/nano/Desktop/images/23012025/21/50/image_23012025_21_51_01_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_18_6203.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/21/51/image_23012025_21_52_01_6197.jpg', '/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_18_6192.jpg', '/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_12_6192.jpg', '/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_06_5385.jpg', '/home/nano/Desktop/images/23012025/21/50/image_23012025_21_51_01_6197.jpg', '/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_18_6203.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/21/51/image_23012025_21_52_01_6197.jpg
/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_18_6192.jpg
/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_12_6192.jpg
/home/nano/Desktop/images/23012025/21/51/image_23012025_21_51_06_5385.jpg
/home/nano/Desktop/images/23012025/21/50/image_23012025_21_51_01_6197.jpg
/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_18_6203.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330875486","1330875498","1330875483","1330875507","1330875494","1330875473"],"photo_ids_order":["1330875473","1330875483","1330875486","1330875494","1330875498","1330875507"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6b05af10e3080ca3c7a5bceb50ca24d0.jpg","text":"TemporaryFile(/tmp/multipartBody9157585056498447781asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666752319,"filename":"image_23012025_21_51_12_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e09ff8497c97961ab40292cccb6ab051.jpg","text":"TemporaryFile(/tmp/multipartBody7597050095949623979asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666752319,"filename":"image_23012025_21_51_01_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/08ceaec6830aa13c03ceecb2d1203f0f.jpg","text":"TemporaryFile(/tmp/multipartBody4704751204424853411asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666752319,"filename":"image_23012025_21_51_18_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/24cc3dfa70529a662ed18b9efa49e986.jpg","text":"TemporaryFile(/tmp/multipartBody1044871616194342679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666752319,"filename":"image_23012025_21_50_18_6203.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3fbc24c718dbbed7ebfee4762f4168fc.jpg","text":"TemporaryFile(/tmp/multipartBody5714091839615810160asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666752319,"filename":"image_23012025_21_51_06_5385.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b0664ffe81c3c587a553bf9fb7478c75.jpg","text":"TemporaryFile(/tmp/multipartBody7791527586171420664asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666752319,"filename":"image_23012025_21_52_01_6197.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330875486","file1":"1330875483","file0":"1330875473","file4":"1330875498","file5":"1330875507","file3":"1330875494"},"map_files_photo_id_array":[{"photo_id":"1330875507","filename":"file5"},{"photo_id":"1330875486","filename":"file2"},{"photo_id":"1330875498","filename":"file4"},{"photo_id":"1330875483","filename":"file1"},{"photo_id":"1330875473","filename":"file0"},{"photo_id":"1330875494","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330875486":["hashtag1","hashtag2"]},{"1330875498":["hashtag1","hashtag2"]},{"1330875483":["hashtag1","hashtag2"]},{"1330875507":["hashtag1","hashtag2"]},{"1330875494":["hashtag1","hashtag2"]},{"1330875473":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330875486, 1330875498, 1330875483, 1330875507, 1330875494, 1330875473)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.696183681488037 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:12:31.865424
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/12/image_23012025_22_12_30_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/22/12/image_23012025_22_12_24_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/22/09/image_23012025_22_09_13_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_12_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/21/49/image_23012025_21_50_01_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_18_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/12/image_23012025_22_12_30_6198.jpg', '/home/nano/Desktop/images/23012025/22/12/image_23012025_22_12_24_5187.jpg', '/home/nano/Desktop/images/23012025/22/09/image_23012025_22_09_13_6198.jpg', '/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_12_5186.jpg', '/home/nano/Desktop/images/23012025/21/49/image_23012025_21_50_01_6191.jpg', '/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_18_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/12/image_23012025_22_12_30_6198.jpg
/home/nano/Desktop/images/23012025/22/12/image_23012025_22_12_24_5187.jpg
/home/nano/Desktop/images/23012025/22/09/image_23012025_22_09_13_6198.jpg
/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_12_5186.jpg
/home/nano/Desktop/images/23012025/21/49/image_23012025_21_50_01_6191.jpg
/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_18_6195.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.5606517791748047 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:13:02.453069
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/12/image_23012025_22_12_30_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/22/12/image_23012025_22_12_24_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/22/09/image_23012025_22_09_13_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_12_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/21/49/image_23012025_21_50_01_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_18_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/12/image_23012025_22_12_30_6198.jpg', '/home/nano/Desktop/images/23012025/22/12/image_23012025_22_12_24_5187.jpg', '/home/nano/Desktop/images/23012025/22/09/image_23012025_22_09_13_6198.jpg', '/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_12_5186.jpg', '/home/nano/Desktop/images/23012025/21/49/image_23012025_21_50_01_6191.jpg', '/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_18_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/12/image_23012025_22_12_30_6198.jpg
/home/nano/Desktop/images/23012025/22/12/image_23012025_22_12_24_5187.jpg
/home/nano/Desktop/images/23012025/22/09/image_23012025_22_09_13_6198.jpg
/home/nano/Desktop/images/23012025/21/50/image_23012025_21_50_12_5186.jpg
/home/nano/Desktop/images/23012025/21/49/image_23012025_21_50_01_6191.jpg
/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_18_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330875597","1330875603","1330875606","1330875600","1330875611","1330875595"],"photo_ids_order":["1330875595","1330875597","1330875600","1330875603","1330875606","1330875611"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/de4139d830459034ee72c3f08efedd50.jpg","text":"TemporaryFile(/tmp/multipartBody60388017151880220asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666843119,"filename":"image_23012025_22_12_24_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/11c803b6022c948aefe4b2b8b8294ca0.jpg","text":"TemporaryFile(/tmp/multipartBody6951703355964413591asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666843119,"filename":"image_23012025_21_50_12_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ebb49ac1927e503999d504038eafa491.jpg","text":"TemporaryFile(/tmp/multipartBody2921966620282658489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666843119,"filename":"image_23012025_21_50_01_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d5ce7988fad5dba980664b9eeeec2eeb.jpg","text":"TemporaryFile(/tmp/multipartBody5103305983023273198asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666843119,"filename":"image_23012025_22_09_13_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5e346a7151527e61b06b0494b52288af.jpg","text":"TemporaryFile(/tmp/multipartBody8271709977096619438asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666843119,"filename":"image_23012025_21_49_18_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/05e58c3140d8acf52b59b33eeefae395.jpg","text":"TemporaryFile(/tmp/multipartBody7358359605338449070asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666843119,"filename":"image_23012025_22_12_30_6198.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330875600","file1":"1330875597","file0":"1330875595","file4":"1330875606","file5":"1330875611","file3":"1330875603"},"map_files_photo_id_array":[{"photo_id":"1330875611","filename":"file5"},{"photo_id":"1330875600","filename":"file2"},{"photo_id":"1330875606","filename":"file4"},{"photo_id":"1330875597","filename":"file1"},{"photo_id":"1330875595","filename":"file0"},{"photo_id":"1330875603","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330875597":["hashtag1","hashtag2"]},{"1330875603":["hashtag1","hashtag2"]},{"1330875606":["hashtag1","hashtag2"]},{"1330875600":["hashtag1","hashtag2"]},{"1330875611":["hashtag1","hashtag2"]},{"1330875595":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330875597, 1330875603, 1330875606, 1330875600, 1330875611, 1330875595)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.923445463180542 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:14:02.910465
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/13/image_23012025_22_14_00_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/22/13/image_23012025_22_13_43_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/22/13/image_23012025_22_13_19_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/22/13/image_23012025_22_13_06_6212.jpg', 2), ('/home/nano/Desktop/images/23012025/22/12/image_23012025_22_12_36_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_12_6199.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/13/image_23012025_22_14_00_6200.jpg', '/home/nano/Desktop/images/23012025/22/13/image_23012025_22_13_43_6199.jpg', '/home/nano/Desktop/images/23012025/22/13/image_23012025_22_13_19_6199.jpg', '/home/nano/Desktop/images/23012025/22/13/image_23012025_22_13_06_6212.jpg', '/home/nano/Desktop/images/23012025/22/12/image_23012025_22_12_36_6198.jpg', '/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_12_6199.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/13/image_23012025_22_14_00_6200.jpg
/home/nano/Desktop/images/23012025/22/13/image_23012025_22_13_43_6199.jpg
/home/nano/Desktop/images/23012025/22/13/image_23012025_22_13_19_6199.jpg
/home/nano/Desktop/images/23012025/22/13/image_23012025_22_13_06_6212.jpg
/home/nano/Desktop/images/23012025/22/12/image_23012025_22_12_36_6198.jpg
/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_12_6199.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330875667","1330875657","1330875659","1330875674","1330875670","1330875664"],"photo_ids_order":["1330875657","1330875659","1330875664","1330875667","1330875670","1330875674"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/da8ae18da6df09e40898f6a112f8b0c2.jpg","text":"TemporaryFile(/tmp/multipartBody1594353606477998486asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666903611,"filename":"image_23012025_22_13_06_6212.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a9986fa2fa309a8558f7c80b99d9f991.jpg","text":"TemporaryFile(/tmp/multipartBody7197738764062982562asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666903611,"filename":"image_23012025_22_14_00_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/488929cb812d1505ebb49a9275685317.jpg","text":"TemporaryFile(/tmp/multipartBody3680660125193076193asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666903611,"filename":"image_23012025_22_13_43_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d3778aad9728924f99ce07f54b35a565.jpg","text":"TemporaryFile(/tmp/multipartBody4231354738835178095asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666903611,"filename":"image_23012025_21_49_12_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/55a8ea2cd9140836dbbcbf22000cc17d.jpg","text":"TemporaryFile(/tmp/multipartBody8251152181663047487asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666903611,"filename":"image_23012025_22_12_36_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9df91f0b6d812455645e49480ff690a6.jpg","text":"TemporaryFile(/tmp/multipartBody7026857220064561398asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666903611,"filename":"image_23012025_22_13_19_6199.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330875664","file1":"1330875659","file0":"1330875657","file4":"1330875670","file5":"1330875674","file3":"1330875667"},"map_files_photo_id_array":[{"photo_id":"1330875674","filename":"file5"},{"photo_id":"1330875664","filename":"file2"},{"photo_id":"1330875670","filename":"file4"},{"photo_id":"1330875659","filename":"file1"},{"photo_id":"1330875657","filename":"file0"},{"photo_id":"1330875667","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330875667":["hashtag1","hashtag2"]},{"1330875657":["hashtag1","hashtag2"]},{"1330875659":["hashtag1","hashtag2"]},{"1330875674":["hashtag1","hashtag2"]},{"1330875670":["hashtag1","hashtag2"]},{"1330875664":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330875667, 1330875657, 1330875659, 1330875674, 1330875670, 1330875664)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.432990789413452 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:15:02.930846
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/14/image_23012025_22_14_06_6223.jpg', 2), ('/home/nano/Desktop/images/23012025/22/13/image_23012025_22_13_49_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_06_5194.jpg', 2), ('/home/nano/Desktop/images/23012025/21/48/image_23012025_21_49_01_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_18_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_12_6203.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/14/image_23012025_22_14_06_6223.jpg', '/home/nano/Desktop/images/23012025/22/13/image_23012025_22_13_49_6199.jpg', '/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_06_5194.jpg', '/home/nano/Desktop/images/23012025/21/48/image_23012025_21_49_01_6193.jpg', '/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_18_6198.jpg', '/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_12_6203.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/14/image_23012025_22_14_06_6223.jpg
/home/nano/Desktop/images/23012025/22/13/image_23012025_22_13_49_6199.jpg
/home/nano/Desktop/images/23012025/21/49/image_23012025_21_49_06_5194.jpg
/home/nano/Desktop/images/23012025/21/48/image_23012025_21_49_01_6193.jpg
/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_18_6198.jpg
/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_12_6203.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330875724","1330875729","1330875726","1330875714","1330875731","1330875722"],"photo_ids_order":["1330875714","1330875722","1330875724","1330875726","1330875729","1330875731"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3634eded8f91b794984904251518a290.jpg","text":"TemporaryFile(/tmp/multipartBody3909333027889904061asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666963518,"filename":"image_23012025_21_49_06_5194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a2483e1c2205d4f88ebcb52795efe242.jpg","text":"TemporaryFile(/tmp/multipartBody384251280275566598asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666963518,"filename":"image_23012025_21_48_18_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/57d72ae15e0b90f6780ca6f343756d08.jpg","text":"TemporaryFile(/tmp/multipartBody8830637109605801874asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666963518,"filename":"image_23012025_21_49_01_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/71017c02f99eab33a988c6b84a41abd2.jpg","text":"TemporaryFile(/tmp/multipartBody427813205185367855asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666963518,"filename":"image_23012025_22_14_06_6223.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c16313946ef717a0edff35f53399c651.jpg","text":"TemporaryFile(/tmp/multipartBody6214131592475182990asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666963518,"filename":"image_23012025_21_48_12_6203.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3cc16e8879a5c97af997392c5ee138b5.jpg","text":"TemporaryFile(/tmp/multipartBody3025370490441034753asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737666963518,"filename":"image_23012025_22_13_49_6199.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330875724","file1":"1330875722","file0":"1330875714","file4":"1330875729","file5":"1330875731","file3":"1330875726"},"map_files_photo_id_array":[{"photo_id":"1330875731","filename":"file5"},{"photo_id":"1330875724","filename":"file2"},{"photo_id":"1330875729","filename":"file4"},{"photo_id":"1330875722","filename":"file1"},{"photo_id":"1330875714","filename":"file0"},{"photo_id":"1330875726","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330875724":["hashtag1","hashtag2"]},{"1330875729":["hashtag1","hashtag2"]},{"1330875726":["hashtag1","hashtag2"]},{"1330875714":["hashtag1","hashtag2"]},{"1330875731":["hashtag1","hashtag2"]},{"1330875722":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330875724, 1330875729, 1330875726, 1330875714, 1330875731, 1330875722)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.793494939804077 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:16:02.811146
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/15/image_23012025_22_15_43_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/15/image_23012025_22_15_36_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/22/14/image_23012025_22_14_13_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_06_5200.jpg', 2), ('/home/nano/Desktop/images/23012025/21/47/image_23012025_21_48_01_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/21/47/image_23012025_21_47_12_6194.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/15/image_23012025_22_15_43_6197.jpg', '/home/nano/Desktop/images/23012025/22/15/image_23012025_22_15_36_6202.jpg', '/home/nano/Desktop/images/23012025/22/14/image_23012025_22_14_13_6197.jpg', '/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_06_5200.jpg', '/home/nano/Desktop/images/23012025/21/47/image_23012025_21_48_01_6186.jpg', '/home/nano/Desktop/images/23012025/21/47/image_23012025_21_47_12_6194.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/15/image_23012025_22_15_43_6197.jpg
/home/nano/Desktop/images/23012025/22/15/image_23012025_22_15_36_6202.jpg
/home/nano/Desktop/images/23012025/22/14/image_23012025_22_14_13_6197.jpg
/home/nano/Desktop/images/23012025/21/48/image_23012025_21_48_06_5200.jpg
/home/nano/Desktop/images/23012025/21/47/image_23012025_21_48_01_6186.jpg
/home/nano/Desktop/images/23012025/21/47/image_23012025_21_47_12_6194.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330875904","1330875891","1330875888","1330875896","1330875899","1330875884"],"photo_ids_order":["1330875884","1330875888","1330875891","1330875896","1330875899","1330875904"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4e91187f85a30e22d12c0c4bff3bb26e.jpg","text":"TemporaryFile(/tmp/multipartBody7398778506508136247asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667023449,"filename":"image_23012025_21_47_12_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6a516992cffd44928cd25a96c1d4ebed.jpg","text":"TemporaryFile(/tmp/multipartBody4435907492016389973asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667023449,"filename":"image_23012025_22_14_13_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/55933ed76b61f245ff0020e02c280b85.jpg","text":"TemporaryFile(/tmp/multipartBody2776553202248372933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667023449,"filename":"image_23012025_22_15_36_6202.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/72d24f48c0f216250d24d880e1ff463f.jpg","text":"TemporaryFile(/tmp/multipartBody3317735781888034198asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667023449,"filename":"image_23012025_21_48_06_5200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b471c848ba44dfd0a33ada0fe8720fb0.jpg","text":"TemporaryFile(/tmp/multipartBody492788198688301712asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667023449,"filename":"image_23012025_21_48_01_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8afea5bb3726c2a72ef975edadb82c45.jpg","text":"TemporaryFile(/tmp/multipartBody3673043699312695981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667023449,"filename":"image_23012025_22_15_43_6197.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330875891","file1":"1330875888","file0":"1330875884","file4":"1330875899","file5":"1330875904","file3":"1330875896"},"map_files_photo_id_array":[{"photo_id":"1330875904","filename":"file5"},{"photo_id":"1330875891","filename":"file2"},{"photo_id":"1330875899","filename":"file4"},{"photo_id":"1330875888","filename":"file1"},{"photo_id":"1330875884","filename":"file0"},{"photo_id":"1330875896","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330875904":["hashtag1","hashtag2"]},{"1330875891":["hashtag1","hashtag2"]},{"1330875888":["hashtag1","hashtag2"]},{"1330875896":["hashtag1","hashtag2"]},{"1330875899":["hashtag1","hashtag2"]},{"1330875884":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330875904, 1330875891, 1330875888, 1330875896, 1330875899, 1330875884)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.48734188079834 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:17:03.057183
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/16/image_23012025_22_16_49_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/16/image_23012025_22_16_13_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/22/15/image_23012025_22_16_00_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/21/47/image_23012025_21_47_06_5201.jpg', 2), ('/home/nano/Desktop/images/23012025/21/46/image_23012025_21_47_01_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/21/46/image_23012025_21_46_12_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/16/image_23012025_22_16_49_6197.jpg', '/home/nano/Desktop/images/23012025/22/16/image_23012025_22_16_13_6202.jpg', '/home/nano/Desktop/images/23012025/22/15/image_23012025_22_16_00_6205.jpg', '/home/nano/Desktop/images/23012025/21/47/image_23012025_21_47_06_5201.jpg', '/home/nano/Desktop/images/23012025/21/46/image_23012025_21_47_01_6194.jpg', '/home/nano/Desktop/images/23012025/21/46/image_23012025_21_46_12_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/16/image_23012025_22_16_49_6197.jpg
/home/nano/Desktop/images/23012025/22/16/image_23012025_22_16_13_6202.jpg
/home/nano/Desktop/images/23012025/22/15/image_23012025_22_16_00_6205.jpg
/home/nano/Desktop/images/23012025/21/47/image_23012025_21_47_06_5201.jpg
/home/nano/Desktop/images/23012025/21/46/image_23012025_21_47_01_6194.jpg
/home/nano/Desktop/images/23012025/21/46/image_23012025_21_46_12_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330875958","1330875966","1330875953","1330875947","1330875970","1330875973"],"photo_ids_order":["1330875947","1330875953","1330875958","1330875966","1330875970","1330875973"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/deb2e8d1739c3f278961c4ecc1bf3f69.jpg","text":"TemporaryFile(/tmp/multipartBody6610201460074668241asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667083585,"filename":"image_23012025_22_16_00_6205.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2f700103c8157a62cde5a0778545dda4.jpg","text":"TemporaryFile(/tmp/multipartBody4891083170991575430asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667083585,"filename":"image_23012025_21_47_06_5201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d804eef24b56175b640b90a4ea8c7f94.jpg","text":"TemporaryFile(/tmp/multipartBody4929494053437238253asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667083585,"filename":"image_23012025_22_16_13_6202.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c5a2d3293fd4bc86cd88b351beb7bbab.jpg","text":"TemporaryFile(/tmp/multipartBody8459371729603143530asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667083585,"filename":"image_23012025_22_16_49_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c2757c8766dad05b8ff72543da77238a.jpg","text":"TemporaryFile(/tmp/multipartBody1909204093564445442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667083585,"filename":"image_23012025_21_47_01_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d287ae8ef34d28efe51fd39fcde0ddea.jpg","text":"TemporaryFile(/tmp/multipartBody5630051976755442862asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667083585,"filename":"image_23012025_21_46_12_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330875958","file1":"1330875953","file0":"1330875947","file4":"1330875970","file5":"1330875973","file3":"1330875966"},"map_files_photo_id_array":[{"photo_id":"1330875973","filename":"file5"},{"photo_id":"1330875958","filename":"file2"},{"photo_id":"1330875970","filename":"file4"},{"photo_id":"1330875953","filename":"file1"},{"photo_id":"1330875947","filename":"file0"},{"photo_id":"1330875966","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330875958":["hashtag1","hashtag2"]},{"1330875966":["hashtag1","hashtag2"]},{"1330875953":["hashtag1","hashtag2"]},{"1330875947":["hashtag1","hashtag2"]},{"1330875970":["hashtag1","hashtag2"]},{"1330875973":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330875958, 1330875966, 1330875953, 1330875947, 1330875970, 1330875973)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.59396243095398 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:18:03.007915
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_43_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_36_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_24_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_13_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_06_6220.jpg', 2), ('/home/nano/Desktop/images/23012025/22/16/image_23012025_22_17_00_6204.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_43_6198.jpg', '/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_36_6197.jpg', '/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_24_5187.jpg', '/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_13_6198.jpg', '/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_06_6220.jpg', '/home/nano/Desktop/images/23012025/22/16/image_23012025_22_17_00_6204.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_43_6198.jpg
/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_36_6197.jpg
/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_24_5187.jpg
/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_13_6198.jpg
/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_06_6220.jpg
/home/nano/Desktop/images/23012025/22/16/image_23012025_22_17_00_6204.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.4727904796600342 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:18:32.474957
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/18/image_23012025_22_18_24_5195.jpg', 2), ('/home/nano/Desktop/images/23012025/22/18/image_23012025_22_18_13_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_54_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_43_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_36_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_24_5187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/18/image_23012025_22_18_24_5195.jpg', '/home/nano/Desktop/images/23012025/22/18/image_23012025_22_18_13_6197.jpg', '/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_54_5188.jpg', '/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_43_6198.jpg', '/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_36_6197.jpg', '/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_24_5187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/18/image_23012025_22_18_24_5195.jpg
/home/nano/Desktop/images/23012025/22/18/image_23012025_22_18_13_6197.jpg
/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_54_5188.jpg
/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_43_6198.jpg
/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_36_6197.jpg
/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_24_5187.jpg
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330876047","1330876043","1330876052","1330876033","1330876036","1330876039"],"photo_ids_order":["1330876033","1330876036","1330876039","1330876043","1330876047","1330876052"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bc4c3a852e3f9a457bda8536bcf1616a.jpg","text":"TemporaryFile(/tmp/multipartBody3879000298767995126asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667173221,"filename":"image_23012025_22_17_36_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c5de9d5d98497bbccb1f707b7c26b743.jpg","text":"TemporaryFile(/tmp/multipartBody2307256618524294344asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667173221,"filename":"image_23012025_22_17_43_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/84524a5a04c29c8d29edda525afa51c3.jpg","text":"TemporaryFile(/tmp/multipartBody945183292820227381asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667173221,"filename":"image_23012025_22_17_24_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a9b44c511a1a822e319b685a48d72cac.jpg","text":"TemporaryFile(/tmp/multipartBody3340167839253553988asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667173221,"filename":"image_23012025_22_18_24_5195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bb30e4966a5183b9b5849a45fbb8a8f0.jpg","text":"TemporaryFile(/tmp/multipartBody771581822240473502asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667173221,"filename":"image_23012025_22_18_13_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7ad19575d961570e697543bd9fb77fc5.jpg","text":"TemporaryFile(/tmp/multipartBody8040137995348946776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667173221,"filename":"image_23012025_22_17_54_5188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330876039","file1":"1330876036","file0":"1330876033","file4":"1330876047","file5":"1330876052","file3":"1330876043"},"map_files_photo_id_array":[{"photo_id":"1330876052","filename":"file5"},{"photo_id":"1330876039","filename":"file2"},{"photo_id":"1330876047","filename":"file4"},{"photo_id":"1330876036","filename":"file1"},{"photo_id":"1330876033","filename":"file0"},{"photo_id":"1330876043","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330876047":["hashtag1","hashtag2"]},{"1330876043":["hashtag1","hashtag2"]},{"1330876052":["hashtag1","hashtag2"]},{"1330876033":["hashtag1","hashtag2"]},{"1330876036":["hashtag1","hashtag2"]},{"1330876039":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330876047, 1330876043, 1330876052, 1330876033, 1330876036, 1330876039)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 28.9272677898407 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:19:03.497585
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_13_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_06_6220.jpg', 2), ('/home/nano/Desktop/images/23012025/22/16/image_23012025_22_17_00_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/21/46/image_23012025_21_46_06_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/21/45/image_23012025_21_46_00_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/21/45/image_23012025_21_45_12_6193.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_13_6198.jpg', '/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_06_6220.jpg', '/home/nano/Desktop/images/23012025/22/16/image_23012025_22_17_00_6204.jpg', '/home/nano/Desktop/images/23012025/21/46/image_23012025_21_46_06_6200.jpg', '/home/nano/Desktop/images/23012025/21/45/image_23012025_21_46_00_5178.jpg', '/home/nano/Desktop/images/23012025/21/45/image_23012025_21_45_12_6193.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_13_6198.jpg
/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_06_6220.jpg
/home/nano/Desktop/images/23012025/22/16/image_23012025_22_17_00_6204.jpg
/home/nano/Desktop/images/23012025/21/46/image_23012025_21_46_06_6200.jpg
/home/nano/Desktop/images/23012025/21/45/image_23012025_21_46_00_5178.jpg
/home/nano/Desktop/images/23012025/21/45/image_23012025_21_45_12_6193.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.4526519775390625 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:19:32.590223
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/19/image_23012025_22_19_36_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/19/image_23012025_22_19_30_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/22/19/image_23012025_22_19_19_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/19/image_23012025_22_19_13_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/19/image_23012025_22_19_06_6232.jpg', 2), ('/home/nano/Desktop/images/23012025/22/18/image_23012025_22_19_00_6205.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/19/image_23012025_22_19_36_6196.jpg', '/home/nano/Desktop/images/23012025/22/19/image_23012025_22_19_30_6199.jpg', '/home/nano/Desktop/images/23012025/22/19/image_23012025_22_19_19_6197.jpg', '/home/nano/Desktop/images/23012025/22/19/image_23012025_22_19_13_6196.jpg', '/home/nano/Desktop/images/23012025/22/19/image_23012025_22_19_06_6232.jpg', '/home/nano/Desktop/images/23012025/22/18/image_23012025_22_19_00_6205.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/19/image_23012025_22_19_36_6196.jpg
/home/nano/Desktop/images/23012025/22/19/image_23012025_22_19_30_6199.jpg
/home/nano/Desktop/images/23012025/22/19/image_23012025_22_19_19_6197.jpg
/home/nano/Desktop/images/23012025/22/19/image_23012025_22_19_13_6196.jpg
/home/nano/Desktop/images/23012025/22/19/image_23012025_22_19_06_6232.jpg
/home/nano/Desktop/images/23012025/22/18/image_23012025_22_19_00_6205.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330876176","1330876185","1330876187","1330876196","1330876192","1330876180"],"photo_ids_order":["1330876176","1330876180","1330876185","1330876187","1330876192","1330876196"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c5a97dc598d84411286719d7cbc5d2e8.jpg","text":"TemporaryFile(/tmp/multipartBody7584702227682747145asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667233142,"filename":"image_23012025_22_19_36_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b509c3ec75bd0630e1d616f5430d8fc9.jpg","text":"TemporaryFile(/tmp/multipartBody8655011472174679314asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667233142,"filename":"image_23012025_22_19_19_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/54dca5b3804b4d057de132a2cfdacca7.jpg","text":"TemporaryFile(/tmp/multipartBody7063855367088979988asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667233142,"filename":"image_23012025_22_19_13_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/00f901297126972f8a0fba74e5c344cc.jpg","text":"TemporaryFile(/tmp/multipartBody1377524826558719506asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667233142,"filename":"image_23012025_22_19_00_6205.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f0662443e6aa46aa25a438151605aae4.jpg","text":"TemporaryFile(/tmp/multipartBody6816738762739929867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667233142,"filename":"image_23012025_22_19_06_6232.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/55ca635cc28520a094dfcd5dca3e0c08.jpg","text":"TemporaryFile(/tmp/multipartBody2506074648858541774asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667233142,"filename":"image_23012025_22_19_30_6199.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330876185","file1":"1330876180","file0":"1330876176","file4":"1330876192","file5":"1330876196","file3":"1330876187"},"map_files_photo_id_array":[{"photo_id":"1330876196","filename":"file5"},{"photo_id":"1330876185","filename":"file2"},{"photo_id":"1330876192","filename":"file4"},{"photo_id":"1330876180","filename":"file1"},{"photo_id":"1330876176","filename":"file0"},{"photo_id":"1330876187","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330876176":["hashtag1","hashtag2"]},{"1330876185":["hashtag1","hashtag2"]},{"1330876187":["hashtag1","hashtag2"]},{"1330876196":["hashtag1","hashtag2"]},{"1330876192":["hashtag1","hashtag2"]},{"1330876180":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330876176, 1330876185, 1330876187, 1330876196, 1330876192, 1330876180)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.031785488128662 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:20:32.678472
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/20/image_23012025_22_20_49_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/22/20/image_23012025_22_20_30_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/22/20/image_23012025_22_20_06_6214.jpg', 2), ('/home/nano/Desktop/images/23012025/22/19/image_23012025_22_19_49_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_13_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_06_6220.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/20/image_23012025_22_20_49_6198.jpg', '/home/nano/Desktop/images/23012025/22/20/image_23012025_22_20_30_6202.jpg', '/home/nano/Desktop/images/23012025/22/20/image_23012025_22_20_06_6214.jpg', '/home/nano/Desktop/images/23012025/22/19/image_23012025_22_19_49_6198.jpg', '/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_13_6198.jpg', '/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_06_6220.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/20/image_23012025_22_20_49_6198.jpg
/home/nano/Desktop/images/23012025/22/20/image_23012025_22_20_30_6202.jpg
/home/nano/Desktop/images/23012025/22/20/image_23012025_22_20_06_6214.jpg
/home/nano/Desktop/images/23012025/22/19/image_23012025_22_19_49_6198.jpg
/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_13_6198.jpg
/home/nano/Desktop/images/23012025/22/17/image_23012025_22_17_06_6220.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330876293","1330876225","1330876377","1330876230","1330876372","1330876228"],"photo_ids_order":["1330876225","1330876228","1330876230","1330876293","1330876372","1330876377"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/37847a273e788ead19a891220ac31e5e.jpg","text":"TemporaryFile(/tmp/multipartBody9129906561096264252asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667293456,"filename":"image_23012025_22_19_49_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9788d46ad81c621e00ed8c634e7eb37a.jpg","text":"TemporaryFile(/tmp/multipartBody3271001575552565120asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667293456,"filename":"image_23012025_22_20_49_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6398076cfc01425dd05577521d5c8639.jpg","text":"TemporaryFile(/tmp/multipartBody4054155176396178347asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667293456,"filename":"image_23012025_22_17_06_6220.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/271a395274168379900d97740f06641b.jpg","text":"TemporaryFile(/tmp/multipartBody5555399798564582454asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667293456,"filename":"image_23012025_22_20_06_6214.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f37473e67c706d1fdae949356920501c.jpg","text":"TemporaryFile(/tmp/multipartBody7269587448347518148asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667293456,"filename":"image_23012025_22_17_13_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/04bb2ec52efe52b46c6606b168fb9f04.jpg","text":"TemporaryFile(/tmp/multipartBody3379620582048007784asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667293456,"filename":"image_23012025_22_20_30_6202.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330876230","file1":"1330876228","file0":"1330876225","file4":"1330876372","file5":"1330876377","file3":"1330876293"},"map_files_photo_id_array":[{"photo_id":"1330876377","filename":"file5"},{"photo_id":"1330876230","filename":"file2"},{"photo_id":"1330876372","filename":"file4"},{"photo_id":"1330876228","filename":"file1"},{"photo_id":"1330876225","filename":"file0"},{"photo_id":"1330876293","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330876293":["hashtag1","hashtag2"]},{"1330876225":["hashtag1","hashtag2"]},{"1330876377":["hashtag1","hashtag2"]},{"1330876230":["hashtag1","hashtag2"]},{"1330876372":["hashtag1","hashtag2"]},{"1330876228":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330876293, 1330876225, 1330876377, 1330876230, 1330876372, 1330876228)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.1746609210968 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:21:31.768261
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/21/image_23012025_22_21_54_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/22/21/image_23012025_22_21_49_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/22/21/image_23012025_22_21_43_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/22/21/image_23012025_22_21_36_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/22/21/image_23012025_22_21_30_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/22/21/image_23012025_22_21_24_5186.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/21/image_23012025_22_21_54_5192.jpg', '/home/nano/Desktop/images/23012025/22/21/image_23012025_22_21_49_6191.jpg', '/home/nano/Desktop/images/23012025/22/21/image_23012025_22_21_43_6193.jpg', '/home/nano/Desktop/images/23012025/22/21/image_23012025_22_21_36_6192.jpg', '/home/nano/Desktop/images/23012025/22/21/image_23012025_22_21_30_6204.jpg', '/home/nano/Desktop/images/23012025/22/21/image_23012025_22_21_24_5186.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/21/image_23012025_22_21_54_5192.jpg
/home/nano/Desktop/images/23012025/22/21/image_23012025_22_21_49_6191.jpg
/home/nano/Desktop/images/23012025/22/21/image_23012025_22_21_43_6193.jpg
/home/nano/Desktop/images/23012025/22/21/image_23012025_22_21_36_6192.jpg
/home/nano/Desktop/images/23012025/22/21/image_23012025_22_21_30_6204.jpg
/home/nano/Desktop/images/23012025/22/21/image_23012025_22_21_24_5186.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330876494","1330876530","1330876503","1330876540","1330876498","1330876507"],"photo_ids_order":["1330876494","1330876498","1330876503","1330876507","1330876530","1330876540"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9cbcdd1b2e6d48d0202780a1c016d09f.jpg","text":"TemporaryFile(/tmp/multipartBody7127837483827415153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667352338,"filename":"image_23012025_22_21_54_5192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ca97cc81b88967844182090165bf2e6d.jpg","text":"TemporaryFile(/tmp/multipartBody3377899813501005633asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667352338,"filename":"image_23012025_22_21_30_6204.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a2d7c8ccf8d1fc01debe2eccaddaa9c8.jpg","text":"TemporaryFile(/tmp/multipartBody1132420114998227389asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667352338,"filename":"image_23012025_22_21_43_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/79f1bd133ba218bb9462859fc74a0a52.jpg","text":"TemporaryFile(/tmp/multipartBody1456954350230248798asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667352338,"filename":"image_23012025_22_21_24_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/32978aecea8750cd0f37fc9f77459e02.jpg","text":"TemporaryFile(/tmp/multipartBody1321600200357289555asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667352338,"filename":"image_23012025_22_21_49_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/760bfbd86721e8c59654948a972ac856.jpg","text":"TemporaryFile(/tmp/multipartBody455637245533576405asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667352338,"filename":"image_23012025_22_21_36_6192.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330876503","file1":"1330876498","file0":"1330876494","file4":"1330876530","file5":"1330876540","file3":"1330876507"},"map_files_photo_id_array":[{"photo_id":"1330876540","filename":"file5"},{"photo_id":"1330876503","filename":"file2"},{"photo_id":"1330876530","filename":"file4"},{"photo_id":"1330876498","filename":"file1"},{"photo_id":"1330876494","filename":"file0"},{"photo_id":"1330876507","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330876494":["hashtag1","hashtag2"]},{"1330876530":["hashtag1","hashtag2"]},{"1330876503":["hashtag1","hashtag2"]},{"1330876540":["hashtag1","hashtag2"]},{"1330876498":["hashtag1","hashtag2"]},{"1330876507":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330876494, 1330876530, 1330876503, 1330876540, 1330876498, 1330876507)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.521356344223022 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:22:31.900592
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_55_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_49_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_43_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_36_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_30_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_19_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_55_6191.jpg', '/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_49_6192.jpg', '/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_43_6193.jpg', '/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_36_6192.jpg', '/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_30_6198.jpg', '/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_19_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_55_6191.jpg
/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_49_6192.jpg
/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_43_6193.jpg
/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_36_6192.jpg
/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_30_6198.jpg
/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_19_6195.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.5369281768798828 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:23:02.707733
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_55_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_49_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_43_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_36_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_30_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_19_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_55_6191.jpg', '/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_49_6192.jpg', '/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_43_6193.jpg', '/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_36_6192.jpg', '/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_30_6198.jpg', '/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_19_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_55_6191.jpg
/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_49_6192.jpg
/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_43_6193.jpg
/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_36_6192.jpg
/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_30_6198.jpg
/home/nano/Desktop/images/23012025/22/22/image_23012025_22_22_19_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330877526","1330877541","1330877535","1330877543","1330877519","1330877554"],"photo_ids_order":["1330877519","1330877526","1330877535","1330877541","1330877543","1330877554"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/510ec3448ef5112c2d65ebe814610b93.jpg","text":"TemporaryFile(/tmp/multipartBody2084879821696921015asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667443232,"filename":"image_23012025_22_22_49_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/367f13ea2c8fac0d0a03631a19e94f00.jpg","text":"TemporaryFile(/tmp/multipartBody2894243390762239874asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667443232,"filename":"image_23012025_22_22_36_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/892ab0fe64c2cf8f4b66e7b830c1d8da.jpg","text":"TemporaryFile(/tmp/multipartBody4508431458803757500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667443232,"filename":"image_23012025_22_22_43_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6e22a1e7af2db3fbe819c744994f3812.jpg","text":"TemporaryFile(/tmp/multipartBody5080360696530772733asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667443232,"filename":"image_23012025_22_22_30_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/40f3574374829db98fbfa13e5175c753.jpg","text":"TemporaryFile(/tmp/multipartBody6451259153277373622asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667443232,"filename":"image_23012025_22_22_55_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f03871b8aa22b7bfa0ce77a97d615372.jpg","text":"TemporaryFile(/tmp/multipartBody4222776822369192509asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667443232,"filename":"image_23012025_22_22_19_6195.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330877535","file1":"1330877526","file0":"1330877519","file4":"1330877543","file5":"1330877554","file3":"1330877541"},"map_files_photo_id_array":[{"photo_id":"1330877554","filename":"file5"},{"photo_id":"1330877535","filename":"file2"},{"photo_id":"1330877543","filename":"file4"},{"photo_id":"1330877526","filename":"file1"},{"photo_id":"1330877519","filename":"file0"},{"photo_id":"1330877541","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330877526":["hashtag1","hashtag2"]},{"1330877541":["hashtag1","hashtag2"]},{"1330877535":["hashtag1","hashtag2"]},{"1330877543":["hashtag1","hashtag2"]},{"1330877519":["hashtag1","hashtag2"]},{"1330877554":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330877526, 1330877541, 1330877535, 1330877543, 1330877519, 1330877554)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.260043621063232 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:24:03.059042
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/23/image_23012025_22_24_00_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/22/23/image_23012025_22_23_49_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/22/23/image_23012025_22_23_42_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/22/23/image_23012025_22_23_36_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/22/23/image_23012025_22_23_30_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/22/23/image_23012025_22_23_25_6192.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/23/image_23012025_22_24_00_5178.jpg', '/home/nano/Desktop/images/23012025/22/23/image_23012025_22_23_49_6187.jpg', '/home/nano/Desktop/images/23012025/22/23/image_23012025_22_23_42_6186.jpg', '/home/nano/Desktop/images/23012025/22/23/image_23012025_22_23_36_6194.jpg', '/home/nano/Desktop/images/23012025/22/23/image_23012025_22_23_30_5184.jpg', '/home/nano/Desktop/images/23012025/22/23/image_23012025_22_23_25_6192.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/23/image_23012025_22_24_00_5178.jpg
/home/nano/Desktop/images/23012025/22/23/image_23012025_22_23_49_6187.jpg
/home/nano/Desktop/images/23012025/22/23/image_23012025_22_23_42_6186.jpg
/home/nano/Desktop/images/23012025/22/23/image_23012025_22_23_36_6194.jpg
/home/nano/Desktop/images/23012025/22/23/image_23012025_22_23_30_5184.jpg
/home/nano/Desktop/images/23012025/22/23/image_23012025_22_23_25_6192.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330878011","1330877963","1330877924","1330878028","1330877932","1330878024"],"photo_ids_order":["1330877924","1330877932","1330877963","1330878011","1330878024","1330878028"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/64f56677ce27af24d83605626ac26435.jpg","text":"TemporaryFile(/tmp/multipartBody5653570965897698102asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667503526,"filename":"image_23012025_22_23_36_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/860d8bbf5457fb80d2910930a0b55d00.jpg","text":"TemporaryFile(/tmp/multipartBody4910691018415533789asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667503526,"filename":"image_23012025_22_23_42_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/044b67262b8767ea7c5cbb3c0a286327.jpg","text":"TemporaryFile(/tmp/multipartBody7002704393282751927asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667503526,"filename":"image_23012025_22_24_00_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ba89a1e6e3d2661970f96780590fd6b3.jpg","text":"TemporaryFile(/tmp/multipartBody8623203123662541343asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667503526,"filename":"image_23012025_22_23_25_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9b57588e812838ec5f884b3075f9d197.jpg","text":"TemporaryFile(/tmp/multipartBody6836755777347881479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667503526,"filename":"image_23012025_22_23_49_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f18fd0e71e1839bc5f2ef6132a4aecf0.jpg","text":"TemporaryFile(/tmp/multipartBody2900148218376396628asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667503526,"filename":"image_23012025_22_23_30_5184.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330877963","file1":"1330877932","file0":"1330877924","file4":"1330878024","file5":"1330878028","file3":"1330878011"},"map_files_photo_id_array":[{"photo_id":"1330878028","filename":"file5"},{"photo_id":"1330877963","filename":"file2"},{"photo_id":"1330878024","filename":"file4"},{"photo_id":"1330877932","filename":"file1"},{"photo_id":"1330877924","filename":"file0"},{"photo_id":"1330878011","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330878011":["hashtag1","hashtag2"]},{"1330877963":["hashtag1","hashtag2"]},{"1330877924":["hashtag1","hashtag2"]},{"1330878028":["hashtag1","hashtag2"]},{"1330877932":["hashtag1","hashtag2"]},{"1330878024":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330878011, 1330877963, 1330877924, 1330878028, 1330877932, 1330878024)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.9691846370697 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:25:02.944857
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/24/image_23012025_22_24_55_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/22/24/image_23012025_22_24_48_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/22/24/image_23012025_22_24_42_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/22/24/image_23012025_22_24_36_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/22/24/image_23012025_22_24_30_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/22/24/image_23012025_22_24_25_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/24/image_23012025_22_24_55_6191.jpg', '/home/nano/Desktop/images/23012025/22/24/image_23012025_22_24_48_6187.jpg', '/home/nano/Desktop/images/23012025/22/24/image_23012025_22_24_42_6187.jpg', '/home/nano/Desktop/images/23012025/22/24/image_23012025_22_24_36_6189.jpg', '/home/nano/Desktop/images/23012025/22/24/image_23012025_22_24_30_5178.jpg', '/home/nano/Desktop/images/23012025/22/24/image_23012025_22_24_25_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/24/image_23012025_22_24_55_6191.jpg
/home/nano/Desktop/images/23012025/22/24/image_23012025_22_24_48_6187.jpg
/home/nano/Desktop/images/23012025/22/24/image_23012025_22_24_42_6187.jpg
/home/nano/Desktop/images/23012025/22/24/image_23012025_22_24_36_6189.jpg
/home/nano/Desktop/images/23012025/22/24/image_23012025_22_24_30_5178.jpg
/home/nano/Desktop/images/23012025/22/24/image_23012025_22_24_25_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330878105","1330878068","1330878082","1330878112","1330878084","1330878072"],"photo_ids_order":["1330878068","1330878072","1330878082","1330878084","1330878105","1330878112"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9cd4659c71c8f78dc40d7215555240ff.jpg","text":"TemporaryFile(/tmp/multipartBody7086719916555682227asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667563409,"filename":"image_23012025_22_24_30_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/69d63dcbafbdf86176ac6d208938e8f9.jpg","text":"TemporaryFile(/tmp/multipartBody8640950225206144694asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667563409,"filename":"image_23012025_22_24_55_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e8628096d61ab57dda623b204c8453f8.jpg","text":"TemporaryFile(/tmp/multipartBody3727619011326160517asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667563409,"filename":"image_23012025_22_24_42_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/67aecc122b5e5969ae0bd77e37f23ebe.jpg","text":"TemporaryFile(/tmp/multipartBody1492034009784079947asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667563409,"filename":"image_23012025_22_24_25_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7e7d58720bc09dc1771f5e0048847bd3.jpg","text":"TemporaryFile(/tmp/multipartBody460736552387568082asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667563409,"filename":"image_23012025_22_24_36_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b0c344943b688ad6cdd6e028d57f13cf.jpg","text":"TemporaryFile(/tmp/multipartBody6526523192020856092asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667563409,"filename":"image_23012025_22_24_48_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330878082","file1":"1330878072","file0":"1330878068","file4":"1330878105","file5":"1330878112","file3":"1330878084"},"map_files_photo_id_array":[{"photo_id":"1330878112","filename":"file5"},{"photo_id":"1330878082","filename":"file2"},{"photo_id":"1330878105","filename":"file4"},{"photo_id":"1330878072","filename":"file1"},{"photo_id":"1330878068","filename":"file0"},{"photo_id":"1330878084","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330878105":["hashtag1","hashtag2"]},{"1330878068":["hashtag1","hashtag2"]},{"1330878082":["hashtag1","hashtag2"]},{"1330878112":["hashtag1","hashtag2"]},{"1330878084":["hashtag1","hashtag2"]},{"1330878072":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330878105, 1330878068, 1330878082, 1330878112, 1330878084, 1330878072)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.33409333229065 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:26:02.919252
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/25/image_23012025_22_25_42_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/22/25/image_23012025_22_25_36_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/22/25/image_23012025_22_25_30_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/22/25/image_23012025_22_25_06_5257.jpg', 2), ('/home/nano/Desktop/images/23012025/22/24/image_23012025_22_25_01_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/22/24/image_23012025_22_24_19_6190.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/25/image_23012025_22_25_42_6188.jpg', '/home/nano/Desktop/images/23012025/22/25/image_23012025_22_25_36_6202.jpg', '/home/nano/Desktop/images/23012025/22/25/image_23012025_22_25_30_5185.jpg', '/home/nano/Desktop/images/23012025/22/25/image_23012025_22_25_06_5257.jpg', '/home/nano/Desktop/images/23012025/22/24/image_23012025_22_25_01_6188.jpg', '/home/nano/Desktop/images/23012025/22/24/image_23012025_22_24_19_6190.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/25/image_23012025_22_25_42_6188.jpg
/home/nano/Desktop/images/23012025/22/25/image_23012025_22_25_36_6202.jpg
/home/nano/Desktop/images/23012025/22/25/image_23012025_22_25_30_5185.jpg
/home/nano/Desktop/images/23012025/22/25/image_23012025_22_25_06_5257.jpg
/home/nano/Desktop/images/23012025/22/24/image_23012025_22_25_01_6188.jpg
/home/nano/Desktop/images/23012025/22/24/image_23012025_22_24_19_6190.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330878161","1330878146","1330878172","1330878150","1330878168","1330878141"],"photo_ids_order":["1330878141","1330878146","1330878150","1330878161","1330878168","1330878172"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0978ab6bb81e5236baa68d2abacd8727.jpg","text":"TemporaryFile(/tmp/multipartBody3180094194200731807asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667623416,"filename":"image_23012025_22_25_06_5257.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/869e1c3e85db754e7d9a896ae2a92c23.jpg","text":"TemporaryFile(/tmp/multipartBody6894242357048406650asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667623416,"filename":"image_23012025_22_25_36_6202.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6362db826ed5cb31d6673a582e701b23.jpg","text":"TemporaryFile(/tmp/multipartBody2139603686744724603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667623416,"filename":"image_23012025_22_24_19_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/964464126a9782cfab204a910f911d59.jpg","text":"TemporaryFile(/tmp/multipartBody8940012108816885718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667623416,"filename":"image_23012025_22_25_30_5185.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4ba891d61aaffe7306535ff1c252159c.jpg","text":"TemporaryFile(/tmp/multipartBody3862129473198914301asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667623416,"filename":"image_23012025_22_25_01_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ef8696290aecf61c0c0633ad2394a4a0.jpg","text":"TemporaryFile(/tmp/multipartBody6369372379221972689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667623416,"filename":"image_23012025_22_25_42_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330878150","file1":"1330878146","file0":"1330878141","file4":"1330878168","file5":"1330878172","file3":"1330878161"},"map_files_photo_id_array":[{"photo_id":"1330878172","filename":"file5"},{"photo_id":"1330878150","filename":"file2"},{"photo_id":"1330878168","filename":"file4"},{"photo_id":"1330878146","filename":"file1"},{"photo_id":"1330878141","filename":"file0"},{"photo_id":"1330878161","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330878161":["hashtag1","hashtag2"]},{"1330878146":["hashtag1","hashtag2"]},{"1330878172":["hashtag1","hashtag2"]},{"1330878150":["hashtag1","hashtag2"]},{"1330878168":["hashtag1","hashtag2"]},{"1330878141":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330878161, 1330878146, 1330878172, 1330878150, 1330878168, 1330878141)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.4303936958313 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:27:02.990451
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/26/image_23012025_22_26_55_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/26/image_23012025_22_26_48_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/26/image_23012025_22_26_42_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/22/26/image_23012025_22_26_36_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/22/26/image_23012025_22_26_31_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/22/26/image_23012025_22_26_25_6191.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/26/image_23012025_22_26_55_6197.jpg', '/home/nano/Desktop/images/23012025/22/26/image_23012025_22_26_48_6197.jpg', '/home/nano/Desktop/images/23012025/22/26/image_23012025_22_26_42_6188.jpg', '/home/nano/Desktop/images/23012025/22/26/image_23012025_22_26_36_5184.jpg', '/home/nano/Desktop/images/23012025/22/26/image_23012025_22_26_31_6194.jpg', '/home/nano/Desktop/images/23012025/22/26/image_23012025_22_26_25_6191.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/26/image_23012025_22_26_55_6197.jpg
/home/nano/Desktop/images/23012025/22/26/image_23012025_22_26_48_6197.jpg
/home/nano/Desktop/images/23012025/22/26/image_23012025_22_26_42_6188.jpg
/home/nano/Desktop/images/23012025/22/26/image_23012025_22_26_36_5184.jpg
/home/nano/Desktop/images/23012025/22/26/image_23012025_22_26_31_6194.jpg
/home/nano/Desktop/images/23012025/22/26/image_23012025_22_26_25_6191.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330878392","1330878371","1330878196","1330878381","1330878360","1330878348"],"photo_ids_order":["1330878196","1330878348","1330878360","1330878371","1330878381","1330878392"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9ea701c00e5de6455f062f2188cf972d.jpg","text":"TemporaryFile(/tmp/multipartBody1700739389501786059asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667683502,"filename":"image_23012025_22_26_25_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c5418e1397d6b8dc43624b33646a0efe.jpg","text":"TemporaryFile(/tmp/multipartBody8476292408091961342asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667683502,"filename":"image_23012025_22_26_36_5184.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9504b96c0d12920045bc2742bb3d3a19.jpg","text":"TemporaryFile(/tmp/multipartBody865044711320600695asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667683502,"filename":"image_23012025_22_26_55_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7762872c44026917b34701a5f7f3c80b.jpg","text":"TemporaryFile(/tmp/multipartBody5757171395193975507asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667683502,"filename":"image_23012025_22_26_31_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/58ee850694fbf8f9398beb5fff337ab0.jpg","text":"TemporaryFile(/tmp/multipartBody7371632257636691154asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667683502,"filename":"image_23012025_22_26_42_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/22a815b6f279e27d4f76005d777e0e4a.jpg","text":"TemporaryFile(/tmp/multipartBody8750247603598632799asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667683502,"filename":"image_23012025_22_26_48_6197.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330878360","file1":"1330878348","file0":"1330878196","file4":"1330878381","file5":"1330878392","file3":"1330878371"},"map_files_photo_id_array":[{"photo_id":"1330878392","filename":"file5"},{"photo_id":"1330878360","filename":"file2"},{"photo_id":"1330878381","filename":"file4"},{"photo_id":"1330878348","filename":"file1"},{"photo_id":"1330878196","filename":"file0"},{"photo_id":"1330878371","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330878392":["hashtag1","hashtag2"]},{"1330878371":["hashtag1","hashtag2"]},{"1330878196":["hashtag1","hashtag2"]},{"1330878381":["hashtag1","hashtag2"]},{"1330878360":["hashtag1","hashtag2"]},{"1330878348":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330878392, 1330878371, 1330878196, 1330878381, 1330878360, 1330878348)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.615392684936523 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:28:03.138173
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/27/image_23012025_22_27_55_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/22/27/image_23012025_22_27_48_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/22/27/image_23012025_22_27_42_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/22/27/image_23012025_22_27_36_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/22/27/image_23012025_22_27_31_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/22/27/image_23012025_22_27_25_6192.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/27/image_23012025_22_27_55_6192.jpg', '/home/nano/Desktop/images/23012025/22/27/image_23012025_22_27_48_6191.jpg', '/home/nano/Desktop/images/23012025/22/27/image_23012025_22_27_42_6194.jpg', '/home/nano/Desktop/images/23012025/22/27/image_23012025_22_27_36_5184.jpg', '/home/nano/Desktop/images/23012025/22/27/image_23012025_22_27_31_6195.jpg', '/home/nano/Desktop/images/23012025/22/27/image_23012025_22_27_25_6192.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/27/image_23012025_22_27_55_6192.jpg
/home/nano/Desktop/images/23012025/22/27/image_23012025_22_27_48_6191.jpg
/home/nano/Desktop/images/23012025/22/27/image_23012025_22_27_42_6194.jpg
/home/nano/Desktop/images/23012025/22/27/image_23012025_22_27_36_5184.jpg
/home/nano/Desktop/images/23012025/22/27/image_23012025_22_27_31_6195.jpg
/home/nano/Desktop/images/23012025/22/27/image_23012025_22_27_25_6192.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330878545","1330878539","1330878532","1330878541","1330878535","1330878528"],"photo_ids_order":["1330878528","1330878532","1330878535","1330878539","1330878541","1330878545"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/de159d277834d1db329d1739189b970a.jpg","text":"TemporaryFile(/tmp/multipartBody1211625554894415180asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667743740,"filename":"image_23012025_22_27_25_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/46bfeeb3171441fd1b621809f1144b3f.jpg","text":"TemporaryFile(/tmp/multipartBody1276957701449720157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667743740,"filename":"image_23012025_22_27_36_5184.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e5af9fa18150a0d0f974704291b3f5b1.jpg","text":"TemporaryFile(/tmp/multipartBody8722892256814363660asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667743740,"filename":"image_23012025_22_27_48_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f1736085382b97f20c794bcdad3d4f90.jpg","text":"TemporaryFile(/tmp/multipartBody7909007951588093855asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667743740,"filename":"image_23012025_22_27_31_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1cc9bc40e447526eecefea495f14f4a5.jpg","text":"TemporaryFile(/tmp/multipartBody8748551998165244311asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667743740,"filename":"image_23012025_22_27_42_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ea80e5aba641677b5412e48b95ea0b70.jpg","text":"TemporaryFile(/tmp/multipartBody5085782614604019761asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667743740,"filename":"image_23012025_22_27_55_6192.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330878535","file1":"1330878532","file0":"1330878528","file4":"1330878541","file5":"1330878545","file3":"1330878539"},"map_files_photo_id_array":[{"photo_id":"1330878545","filename":"file5"},{"photo_id":"1330878535","filename":"file2"},{"photo_id":"1330878541","filename":"file4"},{"photo_id":"1330878532","filename":"file1"},{"photo_id":"1330878528","filename":"file0"},{"photo_id":"1330878539","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330878545":["hashtag1","hashtag2"]},{"1330878539":["hashtag1","hashtag2"]},{"1330878532":["hashtag1","hashtag2"]},{"1330878541":["hashtag1","hashtag2"]},{"1330878535":["hashtag1","hashtag2"]},{"1330878528":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330878545, 1330878539, 1330878532, 1330878541, 1330878535, 1330878528)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.490719079971313 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:29:03.806491
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/28/image_23012025_22_28_54_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/22/28/image_23012025_22_28_48_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/22/28/image_23012025_22_28_42_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/22/28/image_23012025_22_28_36_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/22/28/image_23012025_22_28_31_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/22/28/image_23012025_22_28_25_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/28/image_23012025_22_28_54_6193.jpg', '/home/nano/Desktop/images/23012025/22/28/image_23012025_22_28_48_6194.jpg', '/home/nano/Desktop/images/23012025/22/28/image_23012025_22_28_42_6194.jpg', '/home/nano/Desktop/images/23012025/22/28/image_23012025_22_28_36_5183.jpg', '/home/nano/Desktop/images/23012025/22/28/image_23012025_22_28_31_6195.jpg', '/home/nano/Desktop/images/23012025/22/28/image_23012025_22_28_25_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/28/image_23012025_22_28_54_6193.jpg
/home/nano/Desktop/images/23012025/22/28/image_23012025_22_28_48_6194.jpg
/home/nano/Desktop/images/23012025/22/28/image_23012025_22_28_42_6194.jpg
/home/nano/Desktop/images/23012025/22/28/image_23012025_22_28_36_5183.jpg
/home/nano/Desktop/images/23012025/22/28/image_23012025_22_28_31_6195.jpg
/home/nano/Desktop/images/23012025/22/28/image_23012025_22_28_25_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330878580","1330878574","1330878607","1330878597","1330878588","1330878567"],"photo_ids_order":["1330878567","1330878574","1330878580","1330878588","1330878597","1330878607"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6ac3a13ff93f7750ea4a75ee33432769.jpg","text":"TemporaryFile(/tmp/multipartBody3179523736054728553asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667804391,"filename":"image_23012025_22_28_42_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e84a2fbc77728e919773e4200395c216.jpg","text":"TemporaryFile(/tmp/multipartBody2042615568836725130asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667804391,"filename":"image_23012025_22_28_48_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d8b4d21c6ee4f8fe64e248ced2e129e7.jpg","text":"TemporaryFile(/tmp/multipartBody1497030060293700475asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667804391,"filename":"image_23012025_22_28_25_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/505addb05b26ae8b98cce1fc4f00361d.jpg","text":"TemporaryFile(/tmp/multipartBody6315176466848883869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667804391,"filename":"image_23012025_22_28_31_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f4ae6db7cdd27280b67a5b990de7f3d2.jpg","text":"TemporaryFile(/tmp/multipartBody689415692090986687asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667804391,"filename":"image_23012025_22_28_36_5183.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2d45e0a6c66e01bf6ea355570f0e1b53.jpg","text":"TemporaryFile(/tmp/multipartBody1280012210177741414asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667804391,"filename":"image_23012025_22_28_54_6193.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330878580","file1":"1330878574","file0":"1330878567","file4":"1330878597","file5":"1330878607","file3":"1330878588"},"map_files_photo_id_array":[{"photo_id":"1330878607","filename":"file5"},{"photo_id":"1330878580","filename":"file2"},{"photo_id":"1330878597","filename":"file4"},{"photo_id":"1330878574","filename":"file1"},{"photo_id":"1330878567","filename":"file0"},{"photo_id":"1330878588","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330878580":["hashtag1","hashtag2"]},{"1330878574":["hashtag1","hashtag2"]},{"1330878607":["hashtag1","hashtag2"]},{"1330878597":["hashtag1","hashtag2"]},{"1330878588":["hashtag1","hashtag2"]},{"1330878567":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330878580, 1330878574, 1330878607, 1330878597, 1330878588, 1330878567)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.6195547580719 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:30:02.424088
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/29/image_23012025_22_29_54_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/22/29/image_23012025_22_29_48_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/22/29/image_23012025_22_29_42_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/22/29/image_23012025_22_29_37_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/22/29/image_23012025_22_29_31_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/22/29/image_23012025_22_29_24_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/29/image_23012025_22_29_54_6198.jpg', '/home/nano/Desktop/images/23012025/22/29/image_23012025_22_29_48_6202.jpg', '/home/nano/Desktop/images/23012025/22/29/image_23012025_22_29_42_5187.jpg', '/home/nano/Desktop/images/23012025/22/29/image_23012025_22_29_37_6194.jpg', '/home/nano/Desktop/images/23012025/22/29/image_23012025_22_29_31_6193.jpg', '/home/nano/Desktop/images/23012025/22/29/image_23012025_22_29_24_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/29/image_23012025_22_29_54_6198.jpg
/home/nano/Desktop/images/23012025/22/29/image_23012025_22_29_48_6202.jpg
/home/nano/Desktop/images/23012025/22/29/image_23012025_22_29_42_5187.jpg
/home/nano/Desktop/images/23012025/22/29/image_23012025_22_29_37_6194.jpg
/home/nano/Desktop/images/23012025/22/29/image_23012025_22_29_31_6193.jpg
/home/nano/Desktop/images/23012025/22/29/image_23012025_22_29_24_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330878659","1330878650","1330878668","1330878637","1330878634","1330878663"],"photo_ids_order":["1330878634","1330878637","1330878650","1330878659","1330878663","1330878668"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/94b57d582034b6bcdfcefd549e4ba2fa.jpg","text":"TemporaryFile(/tmp/multipartBody7955865150305928285asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667862994,"filename":"image_23012025_22_29_37_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2e0853eb2650b94ae296615c5db04600.jpg","text":"TemporaryFile(/tmp/multipartBody1597108557598275664asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667862994,"filename":"image_23012025_22_29_42_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/75c557ad0f35f01ec2253dad98957227.jpg","text":"TemporaryFile(/tmp/multipartBody6147098425552540634asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667862994,"filename":"image_23012025_22_29_24_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/657f24e518f8fe1f1bc7f23ea6aa7de8.jpg","text":"TemporaryFile(/tmp/multipartBody3517217194196512857asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667862994,"filename":"image_23012025_22_29_48_6202.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a5c8e146ba21d5a88f61af6b19811454.jpg","text":"TemporaryFile(/tmp/multipartBody4513806878655933503asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667862994,"filename":"image_23012025_22_29_54_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d18abd572d0cd828f428de7ee3a4536b.jpg","text":"TemporaryFile(/tmp/multipartBody77635521861916793asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667862994,"filename":"image_23012025_22_29_31_6193.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330878650","file1":"1330878637","file0":"1330878634","file4":"1330878663","file5":"1330878668","file3":"1330878659"},"map_files_photo_id_array":[{"photo_id":"1330878668","filename":"file5"},{"photo_id":"1330878650","filename":"file2"},{"photo_id":"1330878663","filename":"file4"},{"photo_id":"1330878637","filename":"file1"},{"photo_id":"1330878634","filename":"file0"},{"photo_id":"1330878659","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330878659":["hashtag1","hashtag2"]},{"1330878650":["hashtag1","hashtag2"]},{"1330878668":["hashtag1","hashtag2"]},{"1330878637":["hashtag1","hashtag2"]},{"1330878634":["hashtag1","hashtag2"]},{"1330878663":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330878659, 1330878650, 1330878668, 1330878637, 1330878634, 1330878663)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.796674251556396 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:31:02.509557
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/30/image_23012025_22_30_54_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/22/30/image_23012025_22_30_48_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/22/30/image_23012025_22_30_42_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/22/30/image_23012025_22_30_37_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/30/image_23012025_22_30_31_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/22/30/image_23012025_22_30_18_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/30/image_23012025_22_30_54_6188.jpg', '/home/nano/Desktop/images/23012025/22/30/image_23012025_22_30_48_6192.jpg', '/home/nano/Desktop/images/23012025/22/30/image_23012025_22_30_42_5181.jpg', '/home/nano/Desktop/images/23012025/22/30/image_23012025_22_30_37_6197.jpg', '/home/nano/Desktop/images/23012025/22/30/image_23012025_22_30_31_6200.jpg', '/home/nano/Desktop/images/23012025/22/30/image_23012025_22_30_18_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/30/image_23012025_22_30_54_6188.jpg
/home/nano/Desktop/images/23012025/22/30/image_23012025_22_30_48_6192.jpg
/home/nano/Desktop/images/23012025/22/30/image_23012025_22_30_42_5181.jpg
/home/nano/Desktop/images/23012025/22/30/image_23012025_22_30_37_6197.jpg
/home/nano/Desktop/images/23012025/22/30/image_23012025_22_30_31_6200.jpg
/home/nano/Desktop/images/23012025/22/30/image_23012025_22_30_18_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330878748","1330878751","1330878745","1330878753","1330878813","1330878816"],"photo_ids_order":["1330878745","1330878748","1330878751","1330878753","1330878813","1330878816"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d994b2d03f5c88542ed58dbca878f0a7.jpg","text":"TemporaryFile(/tmp/multipartBody5420425331494169700asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667923067,"filename":"image_23012025_22_30_48_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/68e635100e3f009d45c11d4331b797d9.jpg","text":"TemporaryFile(/tmp/multipartBody1180351158788160685asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667923067,"filename":"image_23012025_22_30_42_5181.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6017c751ff9877e843cb0dd1651921ed.jpg","text":"TemporaryFile(/tmp/multipartBody1733665609399508573asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667923067,"filename":"image_23012025_22_30_54_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e0eb2f56d0ad83c8b6f77cf4a5bdebfa.jpg","text":"TemporaryFile(/tmp/multipartBody795493153682335161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667923067,"filename":"image_23012025_22_30_37_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/677e8172a77377d7ebd96f1de79482e5.jpg","text":"TemporaryFile(/tmp/multipartBody2959442353336866283asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667923067,"filename":"image_23012025_22_30_31_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ea241f7517060462ea081dd690709546.jpg","text":"TemporaryFile(/tmp/multipartBody7310111137774079148asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667923067,"filename":"image_23012025_22_30_18_6196.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330878751","file1":"1330878748","file0":"1330878745","file4":"1330878813","file5":"1330878816","file3":"1330878753"},"map_files_photo_id_array":[{"photo_id":"1330878816","filename":"file5"},{"photo_id":"1330878751","filename":"file2"},{"photo_id":"1330878813","filename":"file4"},{"photo_id":"1330878748","filename":"file1"},{"photo_id":"1330878745","filename":"file0"},{"photo_id":"1330878753","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330878748":["hashtag1","hashtag2"]},{"1330878751":["hashtag1","hashtag2"]},{"1330878745":["hashtag1","hashtag2"]},{"1330878753":["hashtag1","hashtag2"]},{"1330878813":["hashtag1","hashtag2"]},{"1330878816":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330878748, 1330878751, 1330878745, 1330878753, 1330878813, 1330878816)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.38629603385925 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:32:02.472934
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/31/image_23012025_22_31_55_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/22/31/image_23012025_22_31_48_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/31/image_23012025_22_31_42_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/22/31/image_23012025_22_31_36_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/22/31/image_23012025_22_31_31_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/22/31/image_23012025_22_31_25_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/31/image_23012025_22_31_55_6199.jpg', '/home/nano/Desktop/images/23012025/22/31/image_23012025_22_31_48_6196.jpg', '/home/nano/Desktop/images/23012025/22/31/image_23012025_22_31_42_6200.jpg', '/home/nano/Desktop/images/23012025/22/31/image_23012025_22_31_36_5178.jpg', '/home/nano/Desktop/images/23012025/22/31/image_23012025_22_31_31_6188.jpg', '/home/nano/Desktop/images/23012025/22/31/image_23012025_22_31_25_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/31/image_23012025_22_31_55_6199.jpg
/home/nano/Desktop/images/23012025/22/31/image_23012025_22_31_48_6196.jpg
/home/nano/Desktop/images/23012025/22/31/image_23012025_22_31_42_6200.jpg
/home/nano/Desktop/images/23012025/22/31/image_23012025_22_31_36_5178.jpg
/home/nano/Desktop/images/23012025/22/31/image_23012025_22_31_31_6188.jpg
/home/nano/Desktop/images/23012025/22/31/image_23012025_22_31_25_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330879016","1330879366","1330879354","1330879386","1330879204","1330879370"],"photo_ids_order":["1330879016","1330879204","1330879354","1330879366","1330879370","1330879386"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/04286e393fdca93355f8a0698f32ca0d.jpg","text":"TemporaryFile(/tmp/multipartBody4255585069249782727asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667983040,"filename":"image_23012025_22_31_55_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/85ff4082d1fee408329e76710653c78d.jpg","text":"TemporaryFile(/tmp/multipartBody8080004922873122629asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667983040,"filename":"image_23012025_22_31_36_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/54163fedf849e734094e44e2b08636fa.jpg","text":"TemporaryFile(/tmp/multipartBody1092894800387623602asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667983040,"filename":"image_23012025_22_31_42_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9523669f3b5afb13f91f2db7313c196e.jpg","text":"TemporaryFile(/tmp/multipartBody4847489299629726244asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667983040,"filename":"image_23012025_22_31_25_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a6d601f1095302cbcb4067538af8855c.jpg","text":"TemporaryFile(/tmp/multipartBody42830356882252465asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667983040,"filename":"image_23012025_22_31_48_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ab76f5df79ec054529305a81bd81d09e.jpg","text":"TemporaryFile(/tmp/multipartBody2620142628523313224asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737667983040,"filename":"image_23012025_22_31_31_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330879354","file1":"1330879204","file0":"1330879016","file4":"1330879370","file5":"1330879386","file3":"1330879366"},"map_files_photo_id_array":[{"photo_id":"1330879386","filename":"file5"},{"photo_id":"1330879354","filename":"file2"},{"photo_id":"1330879370","filename":"file4"},{"photo_id":"1330879204","filename":"file1"},{"photo_id":"1330879016","filename":"file0"},{"photo_id":"1330879366","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330879016":["hashtag1","hashtag2"]},{"1330879366":["hashtag1","hashtag2"]},{"1330879354":["hashtag1","hashtag2"]},{"1330879386":["hashtag1","hashtag2"]},{"1330879204":["hashtag1","hashtag2"]},{"1330879370":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330879016, 1330879366, 1330879354, 1330879386, 1330879204, 1330879370)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.76682257652283 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:33:02.890761
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/33/image_23012025_22_34_01_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/22/32/image_23012025_22_32_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/22/32/image_23012025_22_32_49_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/22/32/image_23012025_22_32_42_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/22/32/image_23012025_22_32_36_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/22/32/image_23012025_22_32_30_5178.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/33/image_23012025_22_34_01_6195.jpg', '/home/nano/Desktop/images/23012025/22/32/image_23012025_22_32_55_6188.jpg', '/home/nano/Desktop/images/23012025/22/32/image_23012025_22_32_49_6188.jpg', '/home/nano/Desktop/images/23012025/22/32/image_23012025_22_32_42_6191.jpg', '/home/nano/Desktop/images/23012025/22/32/image_23012025_22_32_36_6190.jpg', '/home/nano/Desktop/images/23012025/22/32/image_23012025_22_32_30_5178.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/33/image_23012025_22_34_01_6195.jpg
/home/nano/Desktop/images/23012025/22/32/image_23012025_22_32_55_6188.jpg
/home/nano/Desktop/images/23012025/22/32/image_23012025_22_32_49_6188.jpg
/home/nano/Desktop/images/23012025/22/32/image_23012025_22_32_42_6191.jpg
/home/nano/Desktop/images/23012025/22/32/image_23012025_22_32_36_6190.jpg
/home/nano/Desktop/images/23012025/22/32/image_23012025_22_32_30_5178.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330879628","1330879648","1330879639","1330879653","1330879635","1330879643"],"photo_ids_order":["1330879628","1330879635","1330879639","1330879643","1330879648","1330879653"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0f1c55c342babd105d6b266440a4cbe6.jpg","text":"TemporaryFile(/tmp/multipartBody7158246640674214993asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668043308,"filename":"image_23012025_22_34_01_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ee24e9de5e5f68382c4401421fa8d36b.jpg","text":"TemporaryFile(/tmp/multipartBody3764370334908539243asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668043308,"filename":"image_23012025_22_32_36_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/63a0f2718cbad63c28509092e56b8c22.jpg","text":"TemporaryFile(/tmp/multipartBody5406250711860516903asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668043308,"filename":"image_23012025_22_32_49_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f6f9122b07a397eac7a23bd23217228f.jpg","text":"TemporaryFile(/tmp/multipartBody4627903826093725170asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668043308,"filename":"image_23012025_22_32_30_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/47a1a6dd900cc2974a111950ec0f699c.jpg","text":"TemporaryFile(/tmp/multipartBody8799461507003503971asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668043308,"filename":"image_23012025_22_32_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/70b6a2b520122a32b1df8139f0b80729.jpg","text":"TemporaryFile(/tmp/multipartBody8566267873168685369asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668043308,"filename":"image_23012025_22_32_42_6191.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330879639","file1":"1330879635","file0":"1330879628","file4":"1330879648","file5":"1330879653","file3":"1330879643"},"map_files_photo_id_array":[{"photo_id":"1330879653","filename":"file5"},{"photo_id":"1330879639","filename":"file2"},{"photo_id":"1330879648","filename":"file4"},{"photo_id":"1330879635","filename":"file1"},{"photo_id":"1330879628","filename":"file0"},{"photo_id":"1330879643","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330879628":["hashtag1","hashtag2"]},{"1330879648":["hashtag1","hashtag2"]},{"1330879639":["hashtag1","hashtag2"]},{"1330879653":["hashtag1","hashtag2"]},{"1330879635":["hashtag1","hashtag2"]},{"1330879643":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330879628, 1330879648, 1330879639, 1330879653, 1330879635, 1330879643)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.18937635421753 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:34:02.971776
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/33/image_23012025_22_33_49_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/22/33/image_23012025_22_33_42_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/22/33/image_23012025_22_33_36_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/22/33/image_23012025_22_33_30_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/22/33/image_23012025_22_33_25_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/22/33/image_23012025_22_33_19_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/33/image_23012025_22_33_49_6192.jpg', '/home/nano/Desktop/images/23012025/22/33/image_23012025_22_33_42_6186.jpg', '/home/nano/Desktop/images/23012025/22/33/image_23012025_22_33_36_6189.jpg', '/home/nano/Desktop/images/23012025/22/33/image_23012025_22_33_30_5178.jpg', '/home/nano/Desktop/images/23012025/22/33/image_23012025_22_33_25_6188.jpg', '/home/nano/Desktop/images/23012025/22/33/image_23012025_22_33_19_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/33/image_23012025_22_33_49_6192.jpg
/home/nano/Desktop/images/23012025/22/33/image_23012025_22_33_42_6186.jpg
/home/nano/Desktop/images/23012025/22/33/image_23012025_22_33_36_6189.jpg
/home/nano/Desktop/images/23012025/22/33/image_23012025_22_33_30_5178.jpg
/home/nano/Desktop/images/23012025/22/33/image_23012025_22_33_25_6188.jpg
/home/nano/Desktop/images/23012025/22/33/image_23012025_22_33_19_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330879712","1330879696","1330879709","1330879684","1330879703","1330879688"],"photo_ids_order":["1330879684","1330879688","1330879696","1330879703","1330879709","1330879712"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f7725b0abda0203318a6a997606ffd06.jpg","text":"TemporaryFile(/tmp/multipartBody4855430281747010383asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668103474,"filename":"image_23012025_22_33_19_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e8b0abc19bb4977039ae6c001e660d9a.jpg","text":"TemporaryFile(/tmp/multipartBody242290619958061190asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668103474,"filename":"image_23012025_22_33_36_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ca39749d55fa3b368d38d075e1a59f02.jpg","text":"TemporaryFile(/tmp/multipartBody7033568010130901579asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668103474,"filename":"image_23012025_22_33_25_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/64f484ee5902ebf28ce7ad72488f05f7.jpg","text":"TemporaryFile(/tmp/multipartBody8341942408274811074asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668103474,"filename":"image_23012025_22_33_49_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/62864b97700c0ef82384e5a09ff066ac.jpg","text":"TemporaryFile(/tmp/multipartBody8621201887132281201asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668103474,"filename":"image_23012025_22_33_30_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/adc3527da3b1510798c84ce8b09fd0de.jpg","text":"TemporaryFile(/tmp/multipartBody2548228309967146156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668103474,"filename":"image_23012025_22_33_42_6186.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330879696","file1":"1330879688","file0":"1330879684","file4":"1330879709","file5":"1330879712","file3":"1330879703"},"map_files_photo_id_array":[{"photo_id":"1330879712","filename":"file5"},{"photo_id":"1330879696","filename":"file2"},{"photo_id":"1330879709","filename":"file4"},{"photo_id":"1330879688","filename":"file1"},{"photo_id":"1330879684","filename":"file0"},{"photo_id":"1330879703","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330879712":["hashtag1","hashtag2"]},{"1330879696":["hashtag1","hashtag2"]},{"1330879709":["hashtag1","hashtag2"]},{"1330879684":["hashtag1","hashtag2"]},{"1330879703":["hashtag1","hashtag2"]},{"1330879688":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330879712, 1330879696, 1330879709, 1330879684, 1330879703, 1330879688)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.257230043411255 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:35:02.978020
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/34/image_23012025_22_34_55_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/22/34/image_23012025_22_34_48_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/22/34/image_23012025_22_34_42_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/34/image_23012025_22_34_36_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/22/34/image_23012025_22_34_31_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/22/34/image_23012025_22_34_25_6194.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/34/image_23012025_22_34_55_6193.jpg', '/home/nano/Desktop/images/23012025/22/34/image_23012025_22_34_48_6191.jpg', '/home/nano/Desktop/images/23012025/22/34/image_23012025_22_34_42_6197.jpg', '/home/nano/Desktop/images/23012025/22/34/image_23012025_22_34_36_5183.jpg', '/home/nano/Desktop/images/23012025/22/34/image_23012025_22_34_31_6192.jpg', '/home/nano/Desktop/images/23012025/22/34/image_23012025_22_34_25_6194.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/34/image_23012025_22_34_55_6193.jpg
/home/nano/Desktop/images/23012025/22/34/image_23012025_22_34_48_6191.jpg
/home/nano/Desktop/images/23012025/22/34/image_23012025_22_34_42_6197.jpg
/home/nano/Desktop/images/23012025/22/34/image_23012025_22_34_36_5183.jpg
/home/nano/Desktop/images/23012025/22/34/image_23012025_22_34_31_6192.jpg
/home/nano/Desktop/images/23012025/22/34/image_23012025_22_34_25_6194.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330879777","1330879771","1330879780","1330879753","1330879785","1330879748"],"photo_ids_order":["1330879748","1330879753","1330879771","1330879777","1330879780","1330879785"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e63960e98612a39539d11e64754efaee.jpg","text":"TemporaryFile(/tmp/multipartBody6470517483180080403asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668163811,"filename":"image_23012025_22_34_36_5183.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0ec750cd32a9d48c81d057e8c14084a1.jpg","text":"TemporaryFile(/tmp/multipartBody3275007805041188723asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668163811,"filename":"image_23012025_22_34_42_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9783e41dc42f5874c8d95f9666884e28.jpg","text":"TemporaryFile(/tmp/multipartBody2417663002654089289asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668163811,"filename":"image_23012025_22_34_31_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/971d761acbbb1bca55e57965508bdcfe.jpg","text":"TemporaryFile(/tmp/multipartBody361771839423817628asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668163811,"filename":"image_23012025_22_34_48_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/74cbc0446ea5e30d81b1d79b6a68e070.jpg","text":"TemporaryFile(/tmp/multipartBody7174993684106010445asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668163811,"filename":"image_23012025_22_34_25_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9b8a7e0c22295b43c8331406679563ef.jpg","text":"TemporaryFile(/tmp/multipartBody5288674951441425349asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668163811,"filename":"image_23012025_22_34_55_6193.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330879771","file1":"1330879753","file0":"1330879748","file4":"1330879780","file5":"1330879785","file3":"1330879777"},"map_files_photo_id_array":[{"photo_id":"1330879785","filename":"file5"},{"photo_id":"1330879771","filename":"file2"},{"photo_id":"1330879780","filename":"file4"},{"photo_id":"1330879753","filename":"file1"},{"photo_id":"1330879748","filename":"file0"},{"photo_id":"1330879777","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330879777":["hashtag1","hashtag2"]},{"1330879771":["hashtag1","hashtag2"]},{"1330879780":["hashtag1","hashtag2"]},{"1330879753":["hashtag1","hashtag2"]},{"1330879785":["hashtag1","hashtag2"]},{"1330879748":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330879777, 1330879771, 1330879780, 1330879753, 1330879785, 1330879748)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.5995569229126 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:36:03.065108
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/35/image_23012025_22_35_55_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/22/35/image_23012025_22_35_48_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/35/image_23012025_22_35_42_6233.jpg', 2), ('/home/nano/Desktop/images/23012025/22/35/image_23012025_22_35_36_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/22/35/image_23012025_22_35_31_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/35/image_23012025_22_35_25_6191.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/35/image_23012025_22_35_55_6192.jpg', '/home/nano/Desktop/images/23012025/22/35/image_23012025_22_35_48_6196.jpg', '/home/nano/Desktop/images/23012025/22/35/image_23012025_22_35_42_6233.jpg', '/home/nano/Desktop/images/23012025/22/35/image_23012025_22_35_36_5185.jpg', '/home/nano/Desktop/images/23012025/22/35/image_23012025_22_35_31_6197.jpg', '/home/nano/Desktop/images/23012025/22/35/image_23012025_22_35_25_6191.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/35/image_23012025_22_35_55_6192.jpg
/home/nano/Desktop/images/23012025/22/35/image_23012025_22_35_48_6196.jpg
/home/nano/Desktop/images/23012025/22/35/image_23012025_22_35_42_6233.jpg
/home/nano/Desktop/images/23012025/22/35/image_23012025_22_35_36_5185.jpg
/home/nano/Desktop/images/23012025/22/35/image_23012025_22_35_31_6197.jpg
/home/nano/Desktop/images/23012025/22/35/image_23012025_22_35_25_6191.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.4764070510864258 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:36:32.503720
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/36/image_23012025_22_36_55_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/22/36/image_23012025_22_36_48_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/22/36/image_23012025_22_36_42_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/22/36/image_23012025_22_36_31_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/22/36/image_23012025_22_36_25_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/22/36/image_23012025_22_36_18_6193.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/36/image_23012025_22_36_55_6190.jpg', '/home/nano/Desktop/images/23012025/22/36/image_23012025_22_36_48_6191.jpg', '/home/nano/Desktop/images/23012025/22/36/image_23012025_22_36_42_6200.jpg', '/home/nano/Desktop/images/23012025/22/36/image_23012025_22_36_31_6190.jpg', '/home/nano/Desktop/images/23012025/22/36/image_23012025_22_36_25_6192.jpg', '/home/nano/Desktop/images/23012025/22/36/image_23012025_22_36_18_6193.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/36/image_23012025_22_36_55_6190.jpg
/home/nano/Desktop/images/23012025/22/36/image_23012025_22_36_48_6191.jpg
/home/nano/Desktop/images/23012025/22/36/image_23012025_22_36_42_6200.jpg
/home/nano/Desktop/images/23012025/22/36/image_23012025_22_36_31_6190.jpg
/home/nano/Desktop/images/23012025/22/36/image_23012025_22_36_25_6192.jpg
/home/nano/Desktop/images/23012025/22/36/image_23012025_22_36_18_6193.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330879846","1330879828","1330879839","1330879830","1330879848","1330879856"],"photo_ids_order":["1330879828","1330879830","1330879839","1330879846","1330879848","1330879856"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/45ca4bcb299d3b88a86500d02b612668.jpg","text":"TemporaryFile(/tmp/multipartBody7849349893210760488asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668253030,"filename":"image_23012025_22_36_31_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f3e221b2a2912148f7d1192e44900f50.jpg","text":"TemporaryFile(/tmp/multipartBody5554300853579075841asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668253030,"filename":"image_23012025_22_36_55_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2e00a867a4200e33e14d1e5ac03f81e9.jpg","text":"TemporaryFile(/tmp/multipartBody6540922176354733775asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668253030,"filename":"image_23012025_22_36_42_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9484cbac428589fc51f55bdfbab4b480.jpg","text":"TemporaryFile(/tmp/multipartBody4398468079006155461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668253030,"filename":"image_23012025_22_36_48_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a214645fe53a2e5451321d610d3fb806.jpg","text":"TemporaryFile(/tmp/multipartBody4456690633246342241asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668253030,"filename":"image_23012025_22_36_25_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d8504a8ee969b4340d33a1897351749e.jpg","text":"TemporaryFile(/tmp/multipartBody1136328921337870619asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668253030,"filename":"image_23012025_22_36_18_6193.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330879839","file1":"1330879830","file0":"1330879828","file4":"1330879848","file5":"1330879856","file3":"1330879846"},"map_files_photo_id_array":[{"photo_id":"1330879856","filename":"file5"},{"photo_id":"1330879839","filename":"file2"},{"photo_id":"1330879848","filename":"file4"},{"photo_id":"1330879830","filename":"file1"},{"photo_id":"1330879828","filename":"file0"},{"photo_id":"1330879846","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330879846":["hashtag1","hashtag2"]},{"1330879828":["hashtag1","hashtag2"]},{"1330879839":["hashtag1","hashtag2"]},{"1330879830":["hashtag1","hashtag2"]},{"1330879848":["hashtag1","hashtag2"]},{"1330879856":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330879846, 1330879828, 1330879839, 1330879830, 1330879848, 1330879856)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.566094636917114 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:37:32.616930
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/37/image_23012025_22_37_54_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/37/image_23012025_22_37_48_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/37/image_23012025_22_37_42_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/22/37/image_23012025_22_37_36_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/22/37/image_23012025_22_37_31_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/22/37/image_23012025_22_37_25_6191.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/37/image_23012025_22_37_54_6196.jpg', '/home/nano/Desktop/images/23012025/22/37/image_23012025_22_37_48_6197.jpg', '/home/nano/Desktop/images/23012025/22/37/image_23012025_22_37_42_6193.jpg', '/home/nano/Desktop/images/23012025/22/37/image_23012025_22_37_36_5181.jpg', '/home/nano/Desktop/images/23012025/22/37/image_23012025_22_37_31_6187.jpg', '/home/nano/Desktop/images/23012025/22/37/image_23012025_22_37_25_6191.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/37/image_23012025_22_37_54_6196.jpg
/home/nano/Desktop/images/23012025/22/37/image_23012025_22_37_48_6197.jpg
/home/nano/Desktop/images/23012025/22/37/image_23012025_22_37_42_6193.jpg
/home/nano/Desktop/images/23012025/22/37/image_23012025_22_37_36_5181.jpg
/home/nano/Desktop/images/23012025/22/37/image_23012025_22_37_31_6187.jpg
/home/nano/Desktop/images/23012025/22/37/image_23012025_22_37_25_6191.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330879925","1330879936","1330879921","1330879915","1330879918","1330879923"],"photo_ids_order":["1330879915","1330879918","1330879921","1330879923","1330879925","1330879936"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0d088fe408a49b54af9ebab9f00b9818.jpg","text":"TemporaryFile(/tmp/multipartBody6381106486828422879asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668313146,"filename":"image_23012025_22_37_31_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d192240f2f67376c361cbd08d8ce18bf.jpg","text":"TemporaryFile(/tmp/multipartBody1399148778700969406asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668313146,"filename":"image_23012025_22_37_25_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9b7f3628e5321c808d3fb215024b7151.jpg","text":"TemporaryFile(/tmp/multipartBody99218046162699524asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668313146,"filename":"image_23012025_22_37_42_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6a3039075c9172a3aee52ee4209d4b5e.jpg","text":"TemporaryFile(/tmp/multipartBody7965870553293484040asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668313146,"filename":"image_23012025_22_37_54_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a38faaad61f512bce31b82e56bd08332.jpg","text":"TemporaryFile(/tmp/multipartBody164519256101297381asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668313146,"filename":"image_23012025_22_37_48_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/357b952dd14f2b69e217a0bd9bbc2e15.jpg","text":"TemporaryFile(/tmp/multipartBody5779482976258480146asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668313146,"filename":"image_23012025_22_37_36_5181.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330879921","file1":"1330879918","file0":"1330879915","file4":"1330879925","file5":"1330879936","file3":"1330879923"},"map_files_photo_id_array":[{"photo_id":"1330879936","filename":"file5"},{"photo_id":"1330879921","filename":"file2"},{"photo_id":"1330879925","filename":"file4"},{"photo_id":"1330879918","filename":"file1"},{"photo_id":"1330879915","filename":"file0"},{"photo_id":"1330879923","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330879925":["hashtag1","hashtag2"]},{"1330879936":["hashtag1","hashtag2"]},{"1330879921":["hashtag1","hashtag2"]},{"1330879915":["hashtag1","hashtag2"]},{"1330879918":["hashtag1","hashtag2"]},{"1330879923":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330879925, 1330879936, 1330879921, 1330879915, 1330879918, 1330879923)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.4840292930603 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:38:32.787621
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/38/image_23012025_22_38_54_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/22/38/image_23012025_22_38_48_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/22/38/image_23012025_22_38_42_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/22/38/image_23012025_22_38_37_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/38/image_23012025_22_38_31_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/38/image_23012025_22_38_24_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/38/image_23012025_22_38_54_6199.jpg', '/home/nano/Desktop/images/23012025/22/38/image_23012025_22_38_48_6198.jpg', '/home/nano/Desktop/images/23012025/22/38/image_23012025_22_38_42_5188.jpg', '/home/nano/Desktop/images/23012025/22/38/image_23012025_22_38_37_6197.jpg', '/home/nano/Desktop/images/23012025/22/38/image_23012025_22_38_31_6196.jpg', '/home/nano/Desktop/images/23012025/22/38/image_23012025_22_38_24_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/38/image_23012025_22_38_54_6199.jpg
/home/nano/Desktop/images/23012025/22/38/image_23012025_22_38_48_6198.jpg
/home/nano/Desktop/images/23012025/22/38/image_23012025_22_38_42_5188.jpg
/home/nano/Desktop/images/23012025/22/38/image_23012025_22_38_37_6197.jpg
/home/nano/Desktop/images/23012025/22/38/image_23012025_22_38_31_6196.jpg
/home/nano/Desktop/images/23012025/22/38/image_23012025_22_38_24_6197.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330879969","1330879972","1330879986","1330879980","1330879983","1330879976"],"photo_ids_order":["1330879969","1330879972","1330879976","1330879980","1330879983","1330879986"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d58e22e65d3c39c1c3a26951d33cd8cb.jpg","text":"TemporaryFile(/tmp/multipartBody1849141357223985147asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668373385,"filename":"image_23012025_22_38_54_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/653897418df2c6679378e6653ceee16e.jpg","text":"TemporaryFile(/tmp/multipartBody4431263886784064544asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668373385,"filename":"image_23012025_22_38_48_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/abed5387ed6fc5b7255ed79569621b68.jpg","text":"TemporaryFile(/tmp/multipartBody4335308987646964326asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668373385,"filename":"image_23012025_22_38_24_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ab4194aa883da5be3d8a78417f8ad8c0.jpg","text":"TemporaryFile(/tmp/multipartBody2916266410150022628asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668373385,"filename":"image_23012025_22_38_37_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5a361f46c9c31886cc9daa3c7a3f82b3.jpg","text":"TemporaryFile(/tmp/multipartBody566580951523687744asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668373385,"filename":"image_23012025_22_38_31_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/516674952ea2500ef45925197ec99b9a.jpg","text":"TemporaryFile(/tmp/multipartBody3895524781147563201asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668373385,"filename":"image_23012025_22_38_42_5188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330879976","file1":"1330879972","file0":"1330879969","file4":"1330879983","file5":"1330879986","file3":"1330879980"},"map_files_photo_id_array":[{"photo_id":"1330879986","filename":"file5"},{"photo_id":"1330879976","filename":"file2"},{"photo_id":"1330879983","filename":"file4"},{"photo_id":"1330879972","filename":"file1"},{"photo_id":"1330879969","filename":"file0"},{"photo_id":"1330879980","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330879969":["hashtag1","hashtag2"]},{"1330879972":["hashtag1","hashtag2"]},{"1330879986":["hashtag1","hashtag2"]},{"1330879980":["hashtag1","hashtag2"]},{"1330879983":["hashtag1","hashtag2"]},{"1330879976":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330879969, 1330879972, 1330879986, 1330879980, 1330879983, 1330879976)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.632935762405396 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:39:31.937300
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/39/image_23012025_22_39_54_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/39/image_23012025_22_39_48_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/39/image_23012025_22_39_42_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/22/39/image_23012025_22_39_37_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/22/39/image_23012025_22_39_31_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/39/image_23012025_22_39_24_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/39/image_23012025_22_39_54_6196.jpg', '/home/nano/Desktop/images/23012025/22/39/image_23012025_22_39_48_6196.jpg', '/home/nano/Desktop/images/23012025/22/39/image_23012025_22_39_42_5186.jpg', '/home/nano/Desktop/images/23012025/22/39/image_23012025_22_39_37_6195.jpg', '/home/nano/Desktop/images/23012025/22/39/image_23012025_22_39_31_6196.jpg', '/home/nano/Desktop/images/23012025/22/39/image_23012025_22_39_24_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/39/image_23012025_22_39_54_6196.jpg
/home/nano/Desktop/images/23012025/22/39/image_23012025_22_39_48_6196.jpg
/home/nano/Desktop/images/23012025/22/39/image_23012025_22_39_42_5186.jpg
/home/nano/Desktop/images/23012025/22/39/image_23012025_22_39_37_6195.jpg
/home/nano/Desktop/images/23012025/22/39/image_23012025_22_39_31_6196.jpg
/home/nano/Desktop/images/23012025/22/39/image_23012025_22_39_24_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330880062","1330880065","1330880029","1330880043","1330880025","1330880034"],"photo_ids_order":["1330880025","1330880029","1330880034","1330880043","1330880062","1330880065"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/dab63ece0f413191515c17834faf0424.jpg","text":"TemporaryFile(/tmp/multipartBody8734091566414572188asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668432518,"filename":"image_23012025_22_39_31_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c525653a44ec25f3a4f8a28ff6273551.jpg","text":"TemporaryFile(/tmp/multipartBody2772172232128398719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668432518,"filename":"image_23012025_22_39_24_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/02453e2c1e11a45f621133c9c6f289a9.jpg","text":"TemporaryFile(/tmp/multipartBody2896939942251245176asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668432518,"filename":"image_23012025_22_39_48_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/33479c4b9a70a8a81331e2697eda855c.jpg","text":"TemporaryFile(/tmp/multipartBody6842856149570766845asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668432518,"filename":"image_23012025_22_39_37_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f08e61e2eea711bc5b49696c4ac703cd.jpg","text":"TemporaryFile(/tmp/multipartBody8932869288473692001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668432518,"filename":"image_23012025_22_39_54_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ce82b7f1ff4ccc987bcec453548f30fb.jpg","text":"TemporaryFile(/tmp/multipartBody5493919951228815541asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668432518,"filename":"image_23012025_22_39_42_5186.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330880034","file1":"1330880029","file0":"1330880025","file4":"1330880062","file5":"1330880065","file3":"1330880043"},"map_files_photo_id_array":[{"photo_id":"1330880065","filename":"file5"},{"photo_id":"1330880034","filename":"file2"},{"photo_id":"1330880062","filename":"file4"},{"photo_id":"1330880029","filename":"file1"},{"photo_id":"1330880025","filename":"file0"},{"photo_id":"1330880043","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330880062":["hashtag1","hashtag2"]},{"1330880065":["hashtag1","hashtag2"]},{"1330880029":["hashtag1","hashtag2"]},{"1330880043":["hashtag1","hashtag2"]},{"1330880025":["hashtag1","hashtag2"]},{"1330880034":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330880062, 1330880065, 1330880029, 1330880043, 1330880025, 1330880034)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.132425546646118 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:40:32.073994
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_55_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_48_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_42_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_36_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_31_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_25_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_55_6203.jpg', '/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_48_6196.jpg', '/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_42_6202.jpg', '/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_36_5190.jpg', '/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_31_6197.jpg', '/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_25_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_55_6203.jpg
/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_48_6196.jpg
/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_42_6202.jpg
/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_36_5190.jpg
/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_31_6197.jpg
/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_25_6197.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.48516130447387695 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:41:02.764236
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_55_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_48_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_42_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_36_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_31_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_25_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_55_6203.jpg', '/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_48_6196.jpg', '/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_42_6202.jpg', '/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_36_5190.jpg', '/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_31_6197.jpg', '/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_25_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_55_6203.jpg
/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_48_6196.jpg
/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_42_6202.jpg
/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_36_5190.jpg
/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_31_6197.jpg
/home/nano/Desktop/images/23012025/22/40/image_23012025_22_40_25_6197.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330880153","1330880117","1330880161","1330880164","1330880134","1330880145"],"photo_ids_order":["1330880117","1330880134","1330880145","1330880153","1330880161","1330880164"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/726fac04dc27e1368f0043a43ca9f354.jpg","text":"TemporaryFile(/tmp/multipartBody5953936214258903736asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668523641,"filename":"image_23012025_22_40_36_5190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/81529601f1143d022d2d990a9e6c9a74.jpg","text":"TemporaryFile(/tmp/multipartBody7841143044080522297asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668523641,"filename":"image_23012025_22_40_55_6203.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/31ce8a09bab6de2474c13bed504919d9.jpg","text":"TemporaryFile(/tmp/multipartBody4082953229617803101asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668523641,"filename":"image_23012025_22_40_31_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f1b93d95ed547a0c1333984fae6128aa.jpg","text":"TemporaryFile(/tmp/multipartBody1900622053176315257asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668523641,"filename":"image_23012025_22_40_25_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7a634df8fa3d1caa0cd34f88a8b078c2.jpg","text":"TemporaryFile(/tmp/multipartBody4959649571821370890asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668523641,"filename":"image_23012025_22_40_48_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0eb1e6d87df264ff82cd643410f8ee58.jpg","text":"TemporaryFile(/tmp/multipartBody7193780296232449667asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668523641,"filename":"image_23012025_22_40_42_6202.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330880145","file1":"1330880134","file0":"1330880117","file4":"1330880161","file5":"1330880164","file3":"1330880153"},"map_files_photo_id_array":[{"photo_id":"1330880164","filename":"file5"},{"photo_id":"1330880145","filename":"file2"},{"photo_id":"1330880161","filename":"file4"},{"photo_id":"1330880134","filename":"file1"},{"photo_id":"1330880117","filename":"file0"},{"photo_id":"1330880153","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330880153":["hashtag1","hashtag2"]},{"1330880117":["hashtag1","hashtag2"]},{"1330880161":["hashtag1","hashtag2"]},{"1330880164":["hashtag1","hashtag2"]},{"1330880134":["hashtag1","hashtag2"]},{"1330880145":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330880153, 1330880117, 1330880161, 1330880164, 1330880134, 1330880145)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.82383918762207 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:42:02.836054
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/41/image_23012025_22_41_55_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/41/image_23012025_22_41_49_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/22/41/image_23012025_22_41_42_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/22/41/image_23012025_22_41_36_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/41/image_23012025_22_41_30_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/22/41/image_23012025_22_41_25_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/41/image_23012025_22_41_55_6197.jpg', '/home/nano/Desktop/images/23012025/22/41/image_23012025_22_41_49_6198.jpg', '/home/nano/Desktop/images/23012025/22/41/image_23012025_22_41_42_6195.jpg', '/home/nano/Desktop/images/23012025/22/41/image_23012025_22_41_36_6196.jpg', '/home/nano/Desktop/images/23012025/22/41/image_23012025_22_41_30_5179.jpg', '/home/nano/Desktop/images/23012025/22/41/image_23012025_22_41_25_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/41/image_23012025_22_41_55_6197.jpg
/home/nano/Desktop/images/23012025/22/41/image_23012025_22_41_49_6198.jpg
/home/nano/Desktop/images/23012025/22/41/image_23012025_22_41_42_6195.jpg
/home/nano/Desktop/images/23012025/22/41/image_23012025_22_41_36_6196.jpg
/home/nano/Desktop/images/23012025/22/41/image_23012025_22_41_30_5179.jpg
/home/nano/Desktop/images/23012025/22/41/image_23012025_22_41_25_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330880342","1330880351","1330880339","1330880354","1330880350","1330880346"],"photo_ids_order":["1330880339","1330880342","1330880346","1330880350","1330880351","1330880354"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a481657005b8a123c9e15aee3855fbfc.jpg","text":"TemporaryFile(/tmp/multipartBody2045496473504896987asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668583329,"filename":"image_23012025_22_41_49_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6595afaae683a7f61749b06a9f74b4b3.jpg","text":"TemporaryFile(/tmp/multipartBody6074722635648994386asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668583329,"filename":"image_23012025_22_41_30_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/99daab861c8b93e99e2db54fe20d37ab.jpg","text":"TemporaryFile(/tmp/multipartBody3304954927720472778asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668583329,"filename":"image_23012025_22_41_55_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7634cd06ecbaa14ab0fe4479459e3949.jpg","text":"TemporaryFile(/tmp/multipartBody5734424550490511540asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668583329,"filename":"image_23012025_22_41_25_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/526341c0c6dc52da6bf3f0b0db408687.jpg","text":"TemporaryFile(/tmp/multipartBody800276081840951210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668583329,"filename":"image_23012025_22_41_36_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/41fb291af8a603d15e69dc7a019982ad.jpg","text":"TemporaryFile(/tmp/multipartBody1846226461173165316asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668583329,"filename":"image_23012025_22_41_42_6195.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330880346","file1":"1330880342","file0":"1330880339","file4":"1330880351","file5":"1330880354","file3":"1330880350"},"map_files_photo_id_array":[{"photo_id":"1330880354","filename":"file5"},{"photo_id":"1330880346","filename":"file2"},{"photo_id":"1330880351","filename":"file4"},{"photo_id":"1330880342","filename":"file1"},{"photo_id":"1330880339","filename":"file0"},{"photo_id":"1330880350","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330880342":["hashtag1","hashtag2"]},{"1330880351":["hashtag1","hashtag2"]},{"1330880339":["hashtag1","hashtag2"]},{"1330880354":["hashtag1","hashtag2"]},{"1330880350":["hashtag1","hashtag2"]},{"1330880346":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330880342, 1330880351, 1330880339, 1330880354, 1330880350, 1330880346)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.056917667388916 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:43:03.085981
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/43/image_23012025_22_44_00_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/22/42/image_23012025_22_42_55_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/42/image_23012025_22_42_49_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/42/image_23012025_22_42_36_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/22/42/image_23012025_22_42_30_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/22/42/image_23012025_22_42_25_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/43/image_23012025_22_44_00_5186.jpg', '/home/nano/Desktop/images/23012025/22/42/image_23012025_22_42_55_6196.jpg', '/home/nano/Desktop/images/23012025/22/42/image_23012025_22_42_49_6197.jpg', '/home/nano/Desktop/images/23012025/22/42/image_23012025_22_42_36_6204.jpg', '/home/nano/Desktop/images/23012025/22/42/image_23012025_22_42_30_5188.jpg', '/home/nano/Desktop/images/23012025/22/42/image_23012025_22_42_25_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/43/image_23012025_22_44_00_5186.jpg
/home/nano/Desktop/images/23012025/22/42/image_23012025_22_42_55_6196.jpg
/home/nano/Desktop/images/23012025/22/42/image_23012025_22_42_49_6197.jpg
/home/nano/Desktop/images/23012025/22/42/image_23012025_22_42_36_6204.jpg
/home/nano/Desktop/images/23012025/22/42/image_23012025_22_42_30_5188.jpg
/home/nano/Desktop/images/23012025/22/42/image_23012025_22_42_25_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330880378","1330880386","1330880380","1330880391","1330880376","1330880393"],"photo_ids_order":["1330880376","1330880378","1330880380","1330880386","1330880391","1330880393"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f77ed577bbcb3d39c4954f977af2aeb1.jpg","text":"TemporaryFile(/tmp/multipartBody9164006544233083149asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668643681,"filename":"image_23012025_22_42_55_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/444eef0638b11a0e8b7b3594889aa0a5.jpg","text":"TemporaryFile(/tmp/multipartBody2466651131264250707asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668643681,"filename":"image_23012025_22_42_36_6204.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a2f8cbc2339fab76f6e672265c06d0ce.jpg","text":"TemporaryFile(/tmp/multipartBody9073444771218945036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668643681,"filename":"image_23012025_22_42_49_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/13987a08e9cc9b2d4a0f369f367df2b0.jpg","text":"TemporaryFile(/tmp/multipartBody1689361988545326494asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668643681,"filename":"image_23012025_22_42_30_5188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bf15c24747fd7026d295e9f0a7771544.jpg","text":"TemporaryFile(/tmp/multipartBody1394481390753620092asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668643681,"filename":"image_23012025_22_44_00_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1125383c9408e675dd61c9abbfbdb6d2.jpg","text":"TemporaryFile(/tmp/multipartBody3616413800204737639asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668643681,"filename":"image_23012025_22_42_25_6196.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330880380","file1":"1330880378","file0":"1330880376","file4":"1330880391","file5":"1330880393","file3":"1330880386"},"map_files_photo_id_array":[{"photo_id":"1330880393","filename":"file5"},{"photo_id":"1330880380","filename":"file2"},{"photo_id":"1330880391","filename":"file4"},{"photo_id":"1330880378","filename":"file1"},{"photo_id":"1330880376","filename":"file0"},{"photo_id":"1330880386","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330880378":["hashtag1","hashtag2"]},{"1330880386":["hashtag1","hashtag2"]},{"1330880380":["hashtag1","hashtag2"]},{"1330880391":["hashtag1","hashtag2"]},{"1330880376":["hashtag1","hashtag2"]},{"1330880393":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330880378, 1330880386, 1330880380, 1330880391, 1330880376, 1330880393)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.282999992370605 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:44:03.214549
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/43/image_23012025_22_43_49_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/43/image_23012025_22_43_42_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/22/43/image_23012025_22_43_36_6212.jpg', 2), ('/home/nano/Desktop/images/23012025/22/43/image_23012025_22_43_30_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/22/43/image_23012025_22_43_25_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/43/image_23012025_22_43_19_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/43/image_23012025_22_43_49_6196.jpg', '/home/nano/Desktop/images/23012025/22/43/image_23012025_22_43_42_6195.jpg', '/home/nano/Desktop/images/23012025/22/43/image_23012025_22_43_36_6212.jpg', '/home/nano/Desktop/images/23012025/22/43/image_23012025_22_43_30_5187.jpg', '/home/nano/Desktop/images/23012025/22/43/image_23012025_22_43_25_6196.jpg', '/home/nano/Desktop/images/23012025/22/43/image_23012025_22_43_19_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/43/image_23012025_22_43_49_6196.jpg
/home/nano/Desktop/images/23012025/22/43/image_23012025_22_43_42_6195.jpg
/home/nano/Desktop/images/23012025/22/43/image_23012025_22_43_36_6212.jpg
/home/nano/Desktop/images/23012025/22/43/image_23012025_22_43_30_5187.jpg
/home/nano/Desktop/images/23012025/22/43/image_23012025_22_43_25_6196.jpg
/home/nano/Desktop/images/23012025/22/43/image_23012025_22_43_19_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330880660","1330880590","1330880662","1330880656","1330880595","1330880658"],"photo_ids_order":["1330880590","1330880595","1330880656","1330880658","1330880660","1330880662"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2fa97ace96eac66a8665973ad0c7ed67.jpg","text":"TemporaryFile(/tmp/multipartBody6053272752587395407asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668703846,"filename":"image_23012025_22_43_25_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7404de09f3d17d9807d74be7977d4963.jpg","text":"TemporaryFile(/tmp/multipartBody2852576711861113970asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668703846,"filename":"image_23012025_22_43_49_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e0805500e5e298a8b7ff5f7dd34e1b0a.jpg","text":"TemporaryFile(/tmp/multipartBody1602638744224178262asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668703846,"filename":"image_23012025_22_43_19_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/178c909893c96b93cc28c7092a0ff941.jpg","text":"TemporaryFile(/tmp/multipartBody368113206320857991asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668703846,"filename":"image_23012025_22_43_36_6212.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/260023cde76fb2d414b95ef06212f5ce.jpg","text":"TemporaryFile(/tmp/multipartBody9107071964794753210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668703846,"filename":"image_23012025_22_43_42_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0fb7e005dccfa15b8e92acf4b26c4969.jpg","text":"TemporaryFile(/tmp/multipartBody8473843632993559990asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668703846,"filename":"image_23012025_22_43_30_5187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330880656","file1":"1330880595","file0":"1330880590","file4":"1330880660","file5":"1330880662","file3":"1330880658"},"map_files_photo_id_array":[{"photo_id":"1330880662","filename":"file5"},{"photo_id":"1330880656","filename":"file2"},{"photo_id":"1330880660","filename":"file4"},{"photo_id":"1330880595","filename":"file1"},{"photo_id":"1330880590","filename":"file0"},{"photo_id":"1330880658","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330880660":["hashtag1","hashtag2"]},{"1330880590":["hashtag1","hashtag2"]},{"1330880662":["hashtag1","hashtag2"]},{"1330880656":["hashtag1","hashtag2"]},{"1330880595":["hashtag1","hashtag2"]},{"1330880658":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330880660, 1330880590, 1330880662, 1330880656, 1330880595, 1330880658)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.76208186149597 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:45:03.311036
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/44/image_23012025_22_44_55_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/44/image_23012025_22_44_49_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/44/image_23012025_22_44_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/44/image_23012025_22_44_36_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/22/44/image_23012025_22_44_30_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/22/44/image_23012025_22_44_25_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/44/image_23012025_22_44_55_6196.jpg', '/home/nano/Desktop/images/23012025/22/44/image_23012025_22_44_49_6197.jpg', '/home/nano/Desktop/images/23012025/22/44/image_23012025_22_44_42_6196.jpg', '/home/nano/Desktop/images/23012025/22/44/image_23012025_22_44_36_6201.jpg', '/home/nano/Desktop/images/23012025/22/44/image_23012025_22_44_30_5186.jpg', '/home/nano/Desktop/images/23012025/22/44/image_23012025_22_44_25_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/44/image_23012025_22_44_55_6196.jpg
/home/nano/Desktop/images/23012025/22/44/image_23012025_22_44_49_6197.jpg
/home/nano/Desktop/images/23012025/22/44/image_23012025_22_44_42_6196.jpg
/home/nano/Desktop/images/23012025/22/44/image_23012025_22_44_36_6201.jpg
/home/nano/Desktop/images/23012025/22/44/image_23012025_22_44_30_5186.jpg
/home/nano/Desktop/images/23012025/22/44/image_23012025_22_44_25_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330880753","1330880729","1330880732","1330880734","1330880737","1330880736"],"photo_ids_order":["1330880729","1330880732","1330880734","1330880736","1330880737","1330880753"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/953a2c626c83c84869f08a67db02f592.jpg","text":"TemporaryFile(/tmp/multipartBody6017340671137120988asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668763920,"filename":"image_23012025_22_44_25_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/50b3f1d0ba72789be55ff01a8cfe8bc5.jpg","text":"TemporaryFile(/tmp/multipartBody2696126345271794361asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668763920,"filename":"image_23012025_22_44_55_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/04a3fb7e9c63581528f4374173c39461.jpg","text":"TemporaryFile(/tmp/multipartBody7230840333818715222asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668763920,"filename":"image_23012025_22_44_49_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/12027279cd5784fce78c1a52d7448e55.jpg","text":"TemporaryFile(/tmp/multipartBody4447446253175064549asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668763920,"filename":"image_23012025_22_44_42_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/da4159814e4d53a2d94cdd6bb0736505.jpg","text":"TemporaryFile(/tmp/multipartBody8731934315836943706asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668763920,"filename":"image_23012025_22_44_30_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/dc91f5a68d64315316613f051b4fb8c0.jpg","text":"TemporaryFile(/tmp/multipartBody6736688401500725386asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668763920,"filename":"image_23012025_22_44_36_6201.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330880734","file1":"1330880732","file0":"1330880729","file4":"1330880737","file5":"1330880753","file3":"1330880736"},"map_files_photo_id_array":[{"photo_id":"1330880753","filename":"file5"},{"photo_id":"1330880734","filename":"file2"},{"photo_id":"1330880737","filename":"file4"},{"photo_id":"1330880732","filename":"file1"},{"photo_id":"1330880729","filename":"file0"},{"photo_id":"1330880736","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330880753":["hashtag1","hashtag2"]},{"1330880729":["hashtag1","hashtag2"]},{"1330880732":["hashtag1","hashtag2"]},{"1330880734":["hashtag1","hashtag2"]},{"1330880737":["hashtag1","hashtag2"]},{"1330880736":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330880753, 1330880729, 1330880732, 1330880734, 1330880737, 1330880736)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.18999648094177 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:46:03.051749
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/45/image_23012025_22_45_55_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/45/image_23012025_22_45_49_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/45/image_23012025_22_45_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/45/image_23012025_22_45_36_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/22/45/image_23012025_22_45_30_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/22/45/image_23012025_22_45_19_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/45/image_23012025_22_45_55_6196.jpg', '/home/nano/Desktop/images/23012025/22/45/image_23012025_22_45_49_6196.jpg', '/home/nano/Desktop/images/23012025/22/45/image_23012025_22_45_42_6196.jpg', '/home/nano/Desktop/images/23012025/22/45/image_23012025_22_45_36_6202.jpg', '/home/nano/Desktop/images/23012025/22/45/image_23012025_22_45_30_5187.jpg', '/home/nano/Desktop/images/23012025/22/45/image_23012025_22_45_19_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/45/image_23012025_22_45_55_6196.jpg
/home/nano/Desktop/images/23012025/22/45/image_23012025_22_45_49_6196.jpg
/home/nano/Desktop/images/23012025/22/45/image_23012025_22_45_42_6196.jpg
/home/nano/Desktop/images/23012025/22/45/image_23012025_22_45_36_6202.jpg
/home/nano/Desktop/images/23012025/22/45/image_23012025_22_45_30_5187.jpg
/home/nano/Desktop/images/23012025/22/45/image_23012025_22_45_19_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330881091","1330880804","1330880807","1330880905","1330880809","1330881092"],"photo_ids_order":["1330880804","1330880807","1330880809","1330880905","1330881091","1330881092"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8fcfc5ebe1da95f278347bd5d527525f.jpg","text":"TemporaryFile(/tmp/multipartBody4667560084761485201asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668823658,"filename":"image_23012025_22_45_30_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/28e9922b188eb5561f5c8650ebfafbcc.jpg","text":"TemporaryFile(/tmp/multipartBody5990514000688631497asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668823658,"filename":"image_23012025_22_45_55_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d022e2b5c9ab8797fa31aacb3e2fdd64.jpg","text":"TemporaryFile(/tmp/multipartBody770709076399401094asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668823658,"filename":"image_23012025_22_45_49_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2f95d69dfe66fd14fbbeaa413a38ccfe.jpg","text":"TemporaryFile(/tmp/multipartBody6793598313635403260asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668823658,"filename":"image_23012025_22_45_36_6202.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4eaf627d47c5ab1e18fb9769ad5fba8b.jpg","text":"TemporaryFile(/tmp/multipartBody614951211013503023asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668823658,"filename":"image_23012025_22_45_42_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1c4adc36b7320721c212335ff5453f1c.jpg","text":"TemporaryFile(/tmp/multipartBody8733741026103598828asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668823658,"filename":"image_23012025_22_45_19_6196.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330880809","file1":"1330880807","file0":"1330880804","file4":"1330881091","file5":"1330881092","file3":"1330880905"},"map_files_photo_id_array":[{"photo_id":"1330881092","filename":"file5"},{"photo_id":"1330880809","filename":"file2"},{"photo_id":"1330881091","filename":"file4"},{"photo_id":"1330880807","filename":"file1"},{"photo_id":"1330880804","filename":"file0"},{"photo_id":"1330880905","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330881091":["hashtag1","hashtag2"]},{"1330880804":["hashtag1","hashtag2"]},{"1330880807":["hashtag1","hashtag2"]},{"1330880905":["hashtag1","hashtag2"]},{"1330880809":["hashtag1","hashtag2"]},{"1330881092":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330881091, 1330880804, 1330880807, 1330880905, 1330880809, 1330881092)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.372344255447388 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:47:02.505254
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/46/image_23012025_22_46_55_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/46/image_23012025_22_46_48_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/46/image_23012025_22_46_42_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/46/image_23012025_22_46_36_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/22/46/image_23012025_22_46_30_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/22/46/image_23012025_22_46_25_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/46/image_23012025_22_46_55_6197.jpg', '/home/nano/Desktop/images/23012025/22/46/image_23012025_22_46_48_6196.jpg', '/home/nano/Desktop/images/23012025/22/46/image_23012025_22_46_42_6197.jpg', '/home/nano/Desktop/images/23012025/22/46/image_23012025_22_46_36_6202.jpg', '/home/nano/Desktop/images/23012025/22/46/image_23012025_22_46_30_5187.jpg', '/home/nano/Desktop/images/23012025/22/46/image_23012025_22_46_25_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/46/image_23012025_22_46_55_6197.jpg
/home/nano/Desktop/images/23012025/22/46/image_23012025_22_46_48_6196.jpg
/home/nano/Desktop/images/23012025/22/46/image_23012025_22_46_42_6197.jpg
/home/nano/Desktop/images/23012025/22/46/image_23012025_22_46_36_6202.jpg
/home/nano/Desktop/images/23012025/22/46/image_23012025_22_46_30_5187.jpg
/home/nano/Desktop/images/23012025/22/46/image_23012025_22_46_25_6197.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330881359","1330881274","1330881279","1330881327","1330881269","1330881263"],"photo_ids_order":["1330881263","1330881269","1330881274","1330881279","1330881327","1330881359"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/edeb57bf71d340c775a18e83eee24ac5.jpg","text":"TemporaryFile(/tmp/multipartBody739727058433102062asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668883019,"filename":"image_23012025_22_46_25_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b0b43f885ad0bc793956c4854da06c97.jpg","text":"TemporaryFile(/tmp/multipartBody3495897367520167590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668883019,"filename":"image_23012025_22_46_42_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fa8cc73ca3dc314cd2b883655f96cb82.jpg","text":"TemporaryFile(/tmp/multipartBody5313797159562519263asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668883019,"filename":"image_23012025_22_46_36_6202.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/96966a2ace68193884c5211e09cc77dd.jpg","text":"TemporaryFile(/tmp/multipartBody5208706510212261668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668883019,"filename":"image_23012025_22_46_30_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/292af47f841cfa50808428d58fb55cbf.jpg","text":"TemporaryFile(/tmp/multipartBody8132778848871102483asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668883019,"filename":"image_23012025_22_46_48_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/786d0d3b826a23de91a2eda79ccc41df.jpg","text":"TemporaryFile(/tmp/multipartBody1367297791397950870asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668883019,"filename":"image_23012025_22_46_55_6197.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330881274","file1":"1330881269","file0":"1330881263","file4":"1330881327","file5":"1330881359","file3":"1330881279"},"map_files_photo_id_array":[{"photo_id":"1330881359","filename":"file5"},{"photo_id":"1330881274","filename":"file2"},{"photo_id":"1330881327","filename":"file4"},{"photo_id":"1330881269","filename":"file1"},{"photo_id":"1330881263","filename":"file0"},{"photo_id":"1330881279","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330881359":["hashtag1","hashtag2"]},{"1330881274":["hashtag1","hashtag2"]},{"1330881279":["hashtag1","hashtag2"]},{"1330881327":["hashtag1","hashtag2"]},{"1330881269":["hashtag1","hashtag2"]},{"1330881263":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330881359, 1330881274, 1330881279, 1330881327, 1330881269, 1330881263)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.217459440231323 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:48:02.410530
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/47/image_23012025_22_47_55_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/47/image_23012025_22_47_48_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/47/image_23012025_22_47_42_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/47/image_23012025_22_47_36_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/22/47/image_23012025_22_47_31_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/47/image_23012025_22_47_25_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/47/image_23012025_22_47_55_6196.jpg', '/home/nano/Desktop/images/23012025/22/47/image_23012025_22_47_48_6197.jpg', '/home/nano/Desktop/images/23012025/22/47/image_23012025_22_47_42_6197.jpg', '/home/nano/Desktop/images/23012025/22/47/image_23012025_22_47_36_5187.jpg', '/home/nano/Desktop/images/23012025/22/47/image_23012025_22_47_31_6197.jpg', '/home/nano/Desktop/images/23012025/22/47/image_23012025_22_47_25_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/47/image_23012025_22_47_55_6196.jpg
/home/nano/Desktop/images/23012025/22/47/image_23012025_22_47_48_6197.jpg
/home/nano/Desktop/images/23012025/22/47/image_23012025_22_47_42_6197.jpg
/home/nano/Desktop/images/23012025/22/47/image_23012025_22_47_36_5187.jpg
/home/nano/Desktop/images/23012025/22/47/image_23012025_22_47_31_6197.jpg
/home/nano/Desktop/images/23012025/22/47/image_23012025_22_47_25_6196.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.47773051261901855 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:48:32.001989
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/48/image_23012025_22_48_54_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/22/48/image_23012025_22_48_49_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/48/image_23012025_22_48_43_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/48/image_23012025_22_48_36_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/22/48/image_23012025_22_48_30_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/22/48/image_23012025_22_48_24_5188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/48/image_23012025_22_48_54_5184.jpg', '/home/nano/Desktop/images/23012025/22/48/image_23012025_22_48_49_6197.jpg', '/home/nano/Desktop/images/23012025/22/48/image_23012025_22_48_43_6196.jpg', '/home/nano/Desktop/images/23012025/22/48/image_23012025_22_48_36_6198.jpg', '/home/nano/Desktop/images/23012025/22/48/image_23012025_22_48_30_6205.jpg', '/home/nano/Desktop/images/23012025/22/48/image_23012025_22_48_24_5188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/48/image_23012025_22_48_54_5184.jpg
/home/nano/Desktop/images/23012025/22/48/image_23012025_22_48_49_6197.jpg
/home/nano/Desktop/images/23012025/22/48/image_23012025_22_48_43_6196.jpg
/home/nano/Desktop/images/23012025/22/48/image_23012025_22_48_36_6198.jpg
/home/nano/Desktop/images/23012025/22/48/image_23012025_22_48_30_6205.jpg
/home/nano/Desktop/images/23012025/22/48/image_23012025_22_48_24_5188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330881469","1330881460","1330881442","1330881444","1330881453","1330881440"],"photo_ids_order":["1330881440","1330881442","1330881444","1330881453","1330881460","1330881469"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ac9da400ed538e74bf05566c0af2d831.jpg","text":"TemporaryFile(/tmp/multipartBody5491127880955477378asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668972623,"filename":"image_23012025_22_48_24_5188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f2f061da1f18c306d5f82a3d0a0eba48.jpg","text":"TemporaryFile(/tmp/multipartBody8151457663358196577asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668972623,"filename":"image_23012025_22_48_30_6205.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/64e7a13de671cf68b83da4de4a970fc8.jpg","text":"TemporaryFile(/tmp/multipartBody4213223337695186436asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668972623,"filename":"image_23012025_22_48_49_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/76e7ac0f242d019e80e2a0b695fede8d.jpg","text":"TemporaryFile(/tmp/multipartBody2202400065365620401asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668972623,"filename":"image_23012025_22_48_43_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/058c969f07f5b18b470aeb8b05b40633.jpg","text":"TemporaryFile(/tmp/multipartBody7116238723982730584asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668972623,"filename":"image_23012025_22_48_36_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/11cefde993a52fe9e8ff2f3575d7159c.jpg","text":"TemporaryFile(/tmp/multipartBody4795366092347738032asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737668972623,"filename":"image_23012025_22_48_54_5184.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330881444","file1":"1330881442","file0":"1330881440","file4":"1330881460","file5":"1330881469","file3":"1330881453"},"map_files_photo_id_array":[{"photo_id":"1330881469","filename":"file5"},{"photo_id":"1330881444","filename":"file2"},{"photo_id":"1330881460","filename":"file4"},{"photo_id":"1330881442","filename":"file1"},{"photo_id":"1330881440","filename":"file0"},{"photo_id":"1330881453","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330881469":["hashtag1","hashtag2"]},{"1330881460":["hashtag1","hashtag2"]},{"1330881442":["hashtag1","hashtag2"]},{"1330881444":["hashtag1","hashtag2"]},{"1330881453":["hashtag1","hashtag2"]},{"1330881440":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330881469, 1330881460, 1330881442, 1330881444, 1330881453, 1330881440)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.933066844940186 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:49:32.142476
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/49/image_23012025_22_49_55_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/49/image_23012025_22_49_49_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/22/49/image_23012025_22_49_42_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/49/image_23012025_22_49_36_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/22/49/image_23012025_22_49_30_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/22/49/image_23012025_22_49_24_5190.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/49/image_23012025_22_49_55_6197.jpg', '/home/nano/Desktop/images/23012025/22/49/image_23012025_22_49_49_6205.jpg', '/home/nano/Desktop/images/23012025/22/49/image_23012025_22_49_42_6197.jpg', '/home/nano/Desktop/images/23012025/22/49/image_23012025_22_49_36_6198.jpg', '/home/nano/Desktop/images/23012025/22/49/image_23012025_22_49_30_6201.jpg', '/home/nano/Desktop/images/23012025/22/49/image_23012025_22_49_24_5190.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/49/image_23012025_22_49_55_6197.jpg
/home/nano/Desktop/images/23012025/22/49/image_23012025_22_49_49_6205.jpg
/home/nano/Desktop/images/23012025/22/49/image_23012025_22_49_42_6197.jpg
/home/nano/Desktop/images/23012025/22/49/image_23012025_22_49_36_6198.jpg
/home/nano/Desktop/images/23012025/22/49/image_23012025_22_49_30_6201.jpg
/home/nano/Desktop/images/23012025/22/49/image_23012025_22_49_24_5190.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330881592","1330881530","1330881622","1330881534","1330881609","1330881626"],"photo_ids_order":["1330881530","1330881534","1330881592","1330881609","1330881622","1330881626"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c3af1cc8490110ddb7da53d57dfa9804.jpg","text":"TemporaryFile(/tmp/multipartBody7748819429575946843asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669032757,"filename":"image_23012025_22_49_42_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bd5cabc22e5fafb04fafcd91808d1788.jpg","text":"TemporaryFile(/tmp/multipartBody6678542396846102994asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669032757,"filename":"image_23012025_22_49_55_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/15da12046d7e261c58569d39772a4dee.jpg","text":"TemporaryFile(/tmp/multipartBody4476915111785620366asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669032757,"filename":"image_23012025_22_49_30_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9d131bfd2d98d703b9a874986edb5041.jpg","text":"TemporaryFile(/tmp/multipartBody4573526255616588086asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669032757,"filename":"image_23012025_22_49_49_6205.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c545384054192f5391899ee0d6dd8880.jpg","text":"TemporaryFile(/tmp/multipartBody7365843454522046692asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669032757,"filename":"image_23012025_22_49_36_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/00c034711d0a87532f7344a18d5d7b90.jpg","text":"TemporaryFile(/tmp/multipartBody6146199331259001200asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669032757,"filename":"image_23012025_22_49_24_5190.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330881592","file1":"1330881534","file0":"1330881530","file4":"1330881622","file5":"1330881626","file3":"1330881609"},"map_files_photo_id_array":[{"photo_id":"1330881626","filename":"file5"},{"photo_id":"1330881592","filename":"file2"},{"photo_id":"1330881622","filename":"file4"},{"photo_id":"1330881534","filename":"file1"},{"photo_id":"1330881530","filename":"file0"},{"photo_id":"1330881609","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330881592":["hashtag1","hashtag2"]},{"1330881530":["hashtag1","hashtag2"]},{"1330881622":["hashtag1","hashtag2"]},{"1330881534":["hashtag1","hashtag2"]},{"1330881609":["hashtag1","hashtag2"]},{"1330881626":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330881592, 1330881530, 1330881622, 1330881534, 1330881609, 1330881626)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.47181725502014 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:50:32.214106
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_55_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_49_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_42_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_36_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_30_5195.jpg', 2), ('/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_25_6201.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_55_6206.jpg', '/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_49_6199.jpg', '/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_42_6198.jpg', '/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_36_6201.jpg', '/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_30_5195.jpg', '/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_25_6201.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_55_6206.jpg
/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_49_6199.jpg
/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_42_6198.jpg
/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_36_6201.jpg
/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_30_5195.jpg
/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_25_6201.jpg
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330881641","1330881638","1330881659","1330881644","1330881653","1330881647"],"photo_ids_order":["1330881638","1330881641","1330881644","1330881647","1330881653","1330881659"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d7287a398593349abb355b70460c71d5.jpg","text":"TemporaryFile(/tmp/multipartBody5294938541937912690asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669092884,"filename":"image_23012025_22_50_49_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/26bec86ed830f54ca4fd6dc9a4788e6b.jpg","text":"TemporaryFile(/tmp/multipartBody4308254008369649077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669092884,"filename":"image_23012025_22_50_55_6206.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/62772fad81d61795a2363efb360ad393.jpg","text":"TemporaryFile(/tmp/multipartBody1902546747553911999asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669092884,"filename":"image_23012025_22_50_25_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7bb543985a05708afb12005d0972eb92.jpg","text":"TemporaryFile(/tmp/multipartBody7989804205500993135asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669092884,"filename":"image_23012025_22_50_42_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/92f853242e5b8ff1323bc38c07b49dcd.jpg","text":"TemporaryFile(/tmp/multipartBody2561650697225833257asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669092884,"filename":"image_23012025_22_50_30_5195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/99f2ca72281881a2183d06dbb0e2c352.jpg","text":"TemporaryFile(/tmp/multipartBody5743973663131585249asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669092884,"filename":"image_23012025_22_50_36_6201.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330881644","file1":"1330881641","file0":"1330881638","file4":"1330881653","file5":"1330881659","file3":"1330881647"},"map_files_photo_id_array":[{"photo_id":"1330881659","filename":"file5"},{"photo_id":"1330881644","filename":"file2"},{"photo_id":"1330881653","filename":"file4"},{"photo_id":"1330881641","filename":"file1"},{"photo_id":"1330881638","filename":"file0"},{"photo_id":"1330881647","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330881641":["hashtag1","hashtag2"]},{"1330881638":["hashtag1","hashtag2"]},{"1330881659":["hashtag1","hashtag2"]},{"1330881644":["hashtag1","hashtag2"]},{"1330881653":["hashtag1","hashtag2"]},{"1330881647":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330881641, 1330881638, 1330881659, 1330881644, 1330881653, 1330881647)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 28.840993881225586 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:51:02.741614
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_19_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_12_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_06_6215.jpg', 2), ('/home/nano/Desktop/images/23012025/22/49/image_23012025_22_50_00_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/22/49/image_23012025_22_49_19_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/49/image_23012025_22_49_12_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_19_6197.jpg', '/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_12_6199.jpg', '/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_06_6215.jpg', '/home/nano/Desktop/images/23012025/22/49/image_23012025_22_50_00_5187.jpg', '/home/nano/Desktop/images/23012025/22/49/image_23012025_22_49_19_6197.jpg', '/home/nano/Desktop/images/23012025/22/49/image_23012025_22_49_12_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_19_6197.jpg
/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_12_6199.jpg
/home/nano/Desktop/images/23012025/22/50/image_23012025_22_50_06_6215.jpg
/home/nano/Desktop/images/23012025/22/49/image_23012025_22_50_00_5187.jpg
/home/nano/Desktop/images/23012025/22/49/image_23012025_22_49_19_6197.jpg
/home/nano/Desktop/images/23012025/22/49/image_23012025_22_49_12_6197.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330881670","1330881667","1330881693","1330881695","1330881698","1330881674"],"photo_ids_order":["1330881667","1330881670","1330881674","1330881693","1330881695","1330881698"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d953c7ed52da82f4390ef477b85138ae.jpg","text":"TemporaryFile(/tmp/multipartBody4578527063082976630asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669123336,"filename":"image_23012025_22_50_12_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/dc374ff2bb5b3927223dc7ee10bff91c.jpg","text":"TemporaryFile(/tmp/multipartBody1836236179772463115asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669123336,"filename":"image_23012025_22_50_19_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/48af5b110380ef69c1e5d8520a241b64.jpg","text":"TemporaryFile(/tmp/multipartBody9184022054235296646asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669123336,"filename":"image_23012025_22_50_00_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f5cf830e6abff20229ac70e89b4eb2a7.jpg","text":"TemporaryFile(/tmp/multipartBody3015407458414365640asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669123336,"filename":"image_23012025_22_49_19_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c6377a91c95f6dd178aa6496074f4ff8.jpg","text":"TemporaryFile(/tmp/multipartBody7578672014488101527asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669123336,"filename":"image_23012025_22_49_12_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/89d55b54319b95ade72bd42f624d7df4.jpg","text":"TemporaryFile(/tmp/multipartBody1813082474518156353asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669123336,"filename":"image_23012025_22_50_06_6215.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330881674","file1":"1330881670","file0":"1330881667","file4":"1330881695","file5":"1330881698","file3":"1330881693"},"map_files_photo_id_array":[{"photo_id":"1330881698","filename":"file5"},{"photo_id":"1330881674","filename":"file2"},{"photo_id":"1330881695","filename":"file4"},{"photo_id":"1330881670","filename":"file1"},{"photo_id":"1330881667","filename":"file0"},{"photo_id":"1330881693","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330881670":["hashtag1","hashtag2"]},{"1330881667":["hashtag1","hashtag2"]},{"1330881693":["hashtag1","hashtag2"]},{"1330881695":["hashtag1","hashtag2"]},{"1330881698":["hashtag1","hashtag2"]},{"1330881674":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330881670, 1330881667, 1330881693, 1330881695, 1330881698, 1330881674)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.16640830039978 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:52:02.872545
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/51/image_23012025_22_51_55_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/51/image_23012025_22_51_49_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/51/image_23012025_22_51_42_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/51/image_23012025_22_51_36_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/51/image_23012025_22_51_30_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/22/51/image_23012025_22_51_24_5191.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/51/image_23012025_22_51_55_6197.jpg', '/home/nano/Desktop/images/23012025/22/51/image_23012025_22_51_49_6196.jpg', '/home/nano/Desktop/images/23012025/22/51/image_23012025_22_51_42_6197.jpg', '/home/nano/Desktop/images/23012025/22/51/image_23012025_22_51_36_6196.jpg', '/home/nano/Desktop/images/23012025/22/51/image_23012025_22_51_30_6199.jpg', '/home/nano/Desktop/images/23012025/22/51/image_23012025_22_51_24_5191.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/51/image_23012025_22_51_55_6197.jpg
/home/nano/Desktop/images/23012025/22/51/image_23012025_22_51_49_6196.jpg
/home/nano/Desktop/images/23012025/22/51/image_23012025_22_51_42_6197.jpg
/home/nano/Desktop/images/23012025/22/51/image_23012025_22_51_36_6196.jpg
/home/nano/Desktop/images/23012025/22/51/image_23012025_22_51_30_6199.jpg
/home/nano/Desktop/images/23012025/22/51/image_23012025_22_51_24_5191.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330881755","1330881749","1330881742","1330881753","1330881738","1330881746"],"photo_ids_order":["1330881738","1330881742","1330881746","1330881749","1330881753","1330881755"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2b962f0c2537b73f99337634bc6aa224.jpg","text":"TemporaryFile(/tmp/multipartBody933489285132610876asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669183382,"filename":"image_23012025_22_51_24_5191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/dcc7dca4d1e81a27aa21278a627820b4.jpg","text":"TemporaryFile(/tmp/multipartBody6313897197862318105asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669183382,"filename":"image_23012025_22_51_36_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/482c524eac6955c2b1afd74b4dcd617e.jpg","text":"TemporaryFile(/tmp/multipartBody6220875567271713987asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669183382,"filename":"image_23012025_22_51_49_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/11feb86fa713a0c53c95c26b8ee63f06.jpg","text":"TemporaryFile(/tmp/multipartBody85866663667624168asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669183382,"filename":"image_23012025_22_51_30_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8039f59c71bc1c3506e5e46b759f03f7.jpg","text":"TemporaryFile(/tmp/multipartBody4204615818327766233asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669183382,"filename":"image_23012025_22_51_55_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/13281b3994ef0e63f217e729ab431cdf.jpg","text":"TemporaryFile(/tmp/multipartBody1477099541336217886asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669183382,"filename":"image_23012025_22_51_42_6197.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330881746","file1":"1330881742","file0":"1330881738","file4":"1330881753","file5":"1330881755","file3":"1330881749"},"map_files_photo_id_array":[{"photo_id":"1330881755","filename":"file5"},{"photo_id":"1330881746","filename":"file2"},{"photo_id":"1330881753","filename":"file4"},{"photo_id":"1330881742","filename":"file1"},{"photo_id":"1330881738","filename":"file0"},{"photo_id":"1330881749","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330881755":["hashtag1","hashtag2"]},{"1330881749":["hashtag1","hashtag2"]},{"1330881742":["hashtag1","hashtag2"]},{"1330881753":["hashtag1","hashtag2"]},{"1330881738":["hashtag1","hashtag2"]},{"1330881746":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330881755, 1330881749, 1330881742, 1330881753, 1330881738, 1330881746)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.949309587478638 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:53:03.014394
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/53/image_23012025_22_54_00_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/22/52/image_23012025_22_52_55_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/22/52/image_23012025_22_52_49_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/22/52/image_23012025_22_52_42_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/22/52/image_23012025_22_52_36_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/22/52/image_23012025_22_52_30_5187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/53/image_23012025_22_54_00_5187.jpg', '/home/nano/Desktop/images/23012025/22/52/image_23012025_22_52_55_6200.jpg', '/home/nano/Desktop/images/23012025/22/52/image_23012025_22_52_49_6199.jpg', '/home/nano/Desktop/images/23012025/22/52/image_23012025_22_52_42_6200.jpg', '/home/nano/Desktop/images/23012025/22/52/image_23012025_22_52_36_6202.jpg', '/home/nano/Desktop/images/23012025/22/52/image_23012025_22_52_30_5187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/53/image_23012025_22_54_00_5187.jpg
/home/nano/Desktop/images/23012025/22/52/image_23012025_22_52_55_6200.jpg
/home/nano/Desktop/images/23012025/22/52/image_23012025_22_52_49_6199.jpg
/home/nano/Desktop/images/23012025/22/52/image_23012025_22_52_42_6200.jpg
/home/nano/Desktop/images/23012025/22/52/image_23012025_22_52_36_6202.jpg
/home/nano/Desktop/images/23012025/22/52/image_23012025_22_52_30_5187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330881821","1330881817","1330881805","1330881786","1330881819","1330881782"],"photo_ids_order":["1330881782","1330881786","1330881805","1330881817","1330881819","1330881821"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/686d84be739c843001e4b46b5b65b223.jpg","text":"TemporaryFile(/tmp/multipartBody6304100029221426822asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669243543,"filename":"image_23012025_22_52_30_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/325854c66f04f86d74047d4cfdd14119.jpg","text":"TemporaryFile(/tmp/multipartBody3495407259484683579asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669243543,"filename":"image_23012025_22_52_42_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/45e7037fb6f3167dfbbfba8c59a7c12c.jpg","text":"TemporaryFile(/tmp/multipartBody7844870933061097891asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669243543,"filename":"image_23012025_22_52_49_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3cc73bbef7e5cfe7ff91d45920471757.jpg","text":"TemporaryFile(/tmp/multipartBody7814970519171192561asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669243543,"filename":"image_23012025_22_52_55_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c583adc062e67d9e50f6842d893be6d9.jpg","text":"TemporaryFile(/tmp/multipartBody1560348108949240328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669243543,"filename":"image_23012025_22_52_36_6202.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/56491a1c13f3a874fa0782bb8de39859.jpg","text":"TemporaryFile(/tmp/multipartBody935786192198762756asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669243543,"filename":"image_23012025_22_54_00_5187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330881805","file1":"1330881786","file0":"1330881782","file4":"1330881819","file5":"1330881821","file3":"1330881817"},"map_files_photo_id_array":[{"photo_id":"1330881821","filename":"file5"},{"photo_id":"1330881805","filename":"file2"},{"photo_id":"1330881819","filename":"file4"},{"photo_id":"1330881786","filename":"file1"},{"photo_id":"1330881782","filename":"file0"},{"photo_id":"1330881817","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330881821":["hashtag1","hashtag2"]},{"1330881817":["hashtag1","hashtag2"]},{"1330881805":["hashtag1","hashtag2"]},{"1330881786":["hashtag1","hashtag2"]},{"1330881819":["hashtag1","hashtag2"]},{"1330881782":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330881821, 1330881817, 1330881805, 1330881786, 1330881819, 1330881782)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.80423092842102 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:54:03.429303
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/53/image_23012025_22_53_49_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/53/image_23012025_22_53_42_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/53/image_23012025_22_53_36_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/22/53/image_23012025_22_53_30_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/22/53/image_23012025_22_53_25_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/53/image_23012025_22_53_19_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/53/image_23012025_22_53_49_6196.jpg', '/home/nano/Desktop/images/23012025/22/53/image_23012025_22_53_42_6197.jpg', '/home/nano/Desktop/images/23012025/22/53/image_23012025_22_53_36_6198.jpg', '/home/nano/Desktop/images/23012025/22/53/image_23012025_22_53_30_5187.jpg', '/home/nano/Desktop/images/23012025/22/53/image_23012025_22_53_25_6196.jpg', '/home/nano/Desktop/images/23012025/22/53/image_23012025_22_53_19_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/53/image_23012025_22_53_49_6196.jpg
/home/nano/Desktop/images/23012025/22/53/image_23012025_22_53_42_6197.jpg
/home/nano/Desktop/images/23012025/22/53/image_23012025_22_53_36_6198.jpg
/home/nano/Desktop/images/23012025/22/53/image_23012025_22_53_30_5187.jpg
/home/nano/Desktop/images/23012025/22/53/image_23012025_22_53_25_6196.jpg
/home/nano/Desktop/images/23012025/22/53/image_23012025_22_53_19_6197.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.4905719757080078 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:54:32.597381
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/54/image_23012025_22_54_55_6203.jpg', 2), ('/home/nano/Desktop/images/23012025/22/54/image_23012025_22_54_49_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/54/image_23012025_22_54_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/54/image_23012025_22_54_36_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/22/54/image_23012025_22_54_30_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/22/54/image_23012025_22_54_25_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/54/image_23012025_22_54_55_6203.jpg', '/home/nano/Desktop/images/23012025/22/54/image_23012025_22_54_49_6196.jpg', '/home/nano/Desktop/images/23012025/22/54/image_23012025_22_54_42_6196.jpg', '/home/nano/Desktop/images/23012025/22/54/image_23012025_22_54_36_6201.jpg', '/home/nano/Desktop/images/23012025/22/54/image_23012025_22_54_30_5186.jpg', '/home/nano/Desktop/images/23012025/22/54/image_23012025_22_54_25_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/54/image_23012025_22_54_55_6203.jpg
/home/nano/Desktop/images/23012025/22/54/image_23012025_22_54_49_6196.jpg
/home/nano/Desktop/images/23012025/22/54/image_23012025_22_54_42_6196.jpg
/home/nano/Desktop/images/23012025/22/54/image_23012025_22_54_36_6201.jpg
/home/nano/Desktop/images/23012025/22/54/image_23012025_22_54_30_5186.jpg
/home/nano/Desktop/images/23012025/22/54/image_23012025_22_54_25_6197.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330881880","1330881885","1330881915","1330881900","1330881896","1330881875"],"photo_ids_order":["1330881875","1330881880","1330881885","1330881896","1330881900","1330881915"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/51f0f391941f0086831533fef8e4f8d8.jpg","text":"TemporaryFile(/tmp/multipartBody3374639192495553891asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669333317,"filename":"image_23012025_22_54_49_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c85ab45f5d89e5347ca35f4daa5f4287.jpg","text":"TemporaryFile(/tmp/multipartBody223476819108103897asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669333317,"filename":"image_23012025_22_54_42_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4ae0aa033f66217763df85b7ecd20201.jpg","text":"TemporaryFile(/tmp/multipartBody5547600830254628113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669333317,"filename":"image_23012025_22_54_25_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/90c8189f9c1fe21d52b58f6e846cefc3.jpg","text":"TemporaryFile(/tmp/multipartBody3972891672287502463asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669333317,"filename":"image_23012025_22_54_30_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a6f7dc3bb6c5a1644089705d21bc66c5.jpg","text":"TemporaryFile(/tmp/multipartBody6950333246980582142asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669333317,"filename":"image_23012025_22_54_36_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a7c7dbeac177b06af5e09ecb1abb82a5.jpg","text":"TemporaryFile(/tmp/multipartBody5702118316406532632asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669333317,"filename":"image_23012025_22_54_55_6203.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330881885","file1":"1330881880","file0":"1330881875","file4":"1330881900","file5":"1330881915","file3":"1330881896"},"map_files_photo_id_array":[{"photo_id":"1330881915","filename":"file5"},{"photo_id":"1330881885","filename":"file2"},{"photo_id":"1330881900","filename":"file4"},{"photo_id":"1330881880","filename":"file1"},{"photo_id":"1330881875","filename":"file0"},{"photo_id":"1330881896","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330881880":["hashtag1","hashtag2"]},{"1330881885":["hashtag1","hashtag2"]},{"1330881915":["hashtag1","hashtag2"]},{"1330881900":["hashtag1","hashtag2"]},{"1330881896":["hashtag1","hashtag2"]},{"1330881875":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330881880, 1330881885, 1330881915, 1330881900, 1330881896, 1330881875)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.83981680870056 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:55:32.720333
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/55/image_23012025_22_55_55_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/55/image_23012025_22_55_49_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/55/image_23012025_22_55_42_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/55/image_23012025_22_55_36_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/22/55/image_23012025_22_55_30_5188.jpg', 2), ('/home/nano/Desktop/images/23012025/22/55/image_23012025_22_55_25_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/55/image_23012025_22_55_55_6196.jpg', '/home/nano/Desktop/images/23012025/22/55/image_23012025_22_55_49_6196.jpg', '/home/nano/Desktop/images/23012025/22/55/image_23012025_22_55_42_6197.jpg', '/home/nano/Desktop/images/23012025/22/55/image_23012025_22_55_36_6198.jpg', '/home/nano/Desktop/images/23012025/22/55/image_23012025_22_55_30_5188.jpg', '/home/nano/Desktop/images/23012025/22/55/image_23012025_22_55_25_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/55/image_23012025_22_55_55_6196.jpg
/home/nano/Desktop/images/23012025/22/55/image_23012025_22_55_49_6196.jpg
/home/nano/Desktop/images/23012025/22/55/image_23012025_22_55_42_6197.jpg
/home/nano/Desktop/images/23012025/22/55/image_23012025_22_55_36_6198.jpg
/home/nano/Desktop/images/23012025/22/55/image_23012025_22_55_30_5188.jpg
/home/nano/Desktop/images/23012025/22/55/image_23012025_22_55_25_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330881958","1330881975","1330881963","1330881972","1330881933","1330881983"],"photo_ids_order":["1330881933","1330881958","1330881963","1330881972","1330881975","1330881983"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4fda9bad3291cfaf5fadf77f23c3a65f.jpg","text":"TemporaryFile(/tmp/multipartBody3548868207632242736asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669393220,"filename":"image_23012025_22_55_49_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a836dfb97c70cae8e8cb7bf1d4ddf676.jpg","text":"TemporaryFile(/tmp/multipartBody8571722083699310121asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669393220,"filename":"image_23012025_22_55_30_5188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a6db620a8a4161f7bebe0a7f219a21aa.jpg","text":"TemporaryFile(/tmp/multipartBody6554734289426552596asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669393220,"filename":"image_23012025_22_55_42_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8deebd16f36dd211f21da34346e56f7b.jpg","text":"TemporaryFile(/tmp/multipartBody7970379328315030411asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669393220,"filename":"image_23012025_22_55_36_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/dfde1dd750781b66292b623c7818f553.jpg","text":"TemporaryFile(/tmp/multipartBody5797835244364431467asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669393220,"filename":"image_23012025_22_55_55_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/76d3c5b0cb0bac1d257e14b049b30129.jpg","text":"TemporaryFile(/tmp/multipartBody3631940376070689446asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669393220,"filename":"image_23012025_22_55_25_6196.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330881963","file1":"1330881958","file0":"1330881933","file4":"1330881975","file5":"1330881983","file3":"1330881972"},"map_files_photo_id_array":[{"photo_id":"1330881983","filename":"file5"},{"photo_id":"1330881963","filename":"file2"},{"photo_id":"1330881975","filename":"file4"},{"photo_id":"1330881958","filename":"file1"},{"photo_id":"1330881933","filename":"file0"},{"photo_id":"1330881972","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330881958":["hashtag1","hashtag2"]},{"1330881975":["hashtag1","hashtag2"]},{"1330881963":["hashtag1","hashtag2"]},{"1330881972":["hashtag1","hashtag2"]},{"1330881933":["hashtag1","hashtag2"]},{"1330881983":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330881958, 1330881975, 1330881963, 1330881972, 1330881933, 1330881983)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.07436013221741 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:56:31.806138
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/56/image_23012025_22_56_55_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/56/image_23012025_22_56_49_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/22/56/image_23012025_22_56_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/56/image_23012025_22_56_36_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/22/56/image_23012025_22_56_30_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/22/56/image_23012025_22_56_25_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/56/image_23012025_22_56_55_6197.jpg', '/home/nano/Desktop/images/23012025/22/56/image_23012025_22_56_49_6198.jpg', '/home/nano/Desktop/images/23012025/22/56/image_23012025_22_56_42_6196.jpg', '/home/nano/Desktop/images/23012025/22/56/image_23012025_22_56_36_6199.jpg', '/home/nano/Desktop/images/23012025/22/56/image_23012025_22_56_30_5187.jpg', '/home/nano/Desktop/images/23012025/22/56/image_23012025_22_56_25_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/56/image_23012025_22_56_55_6197.jpg
/home/nano/Desktop/images/23012025/22/56/image_23012025_22_56_49_6198.jpg
/home/nano/Desktop/images/23012025/22/56/image_23012025_22_56_42_6196.jpg
/home/nano/Desktop/images/23012025/22/56/image_23012025_22_56_36_6199.jpg
/home/nano/Desktop/images/23012025/22/56/image_23012025_22_56_30_5187.jpg
/home/nano/Desktop/images/23012025/22/56/image_23012025_22_56_25_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330882036","1330882030","1330882041","1330882023","1330882025","1330882028"],"photo_ids_order":["1330882023","1330882025","1330882028","1330882030","1330882036","1330882041"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c5633b198e70cc037c004fc06d7eb8ae.jpg","text":"TemporaryFile(/tmp/multipartBody8241042309199637383asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669452359,"filename":"image_23012025_22_56_30_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/dc8db8cac107a99a981a6756c9cf9d6f.jpg","text":"TemporaryFile(/tmp/multipartBody3235411573044329288asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669452359,"filename":"image_23012025_22_56_36_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2b51743833d19a98c07a476e6a34eb3c.jpg","text":"TemporaryFile(/tmp/multipartBody5394735130866458827asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669452359,"filename":"image_23012025_22_56_25_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/53c0d3bb037dcf99b13e5acb89eb166b.jpg","text":"TemporaryFile(/tmp/multipartBody1155851984652244048asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669452359,"filename":"image_23012025_22_56_55_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c71907b554bb13543b0204f0d009734a.jpg","text":"TemporaryFile(/tmp/multipartBody2704299526010316963asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669452359,"filename":"image_23012025_22_56_49_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cbb25f6c65839881ecaf78183cb22822.jpg","text":"TemporaryFile(/tmp/multipartBody6436870621144448170asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669452359,"filename":"image_23012025_22_56_42_6196.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330882028","file1":"1330882025","file0":"1330882023","file4":"1330882036","file5":"1330882041","file3":"1330882030"},"map_files_photo_id_array":[{"photo_id":"1330882041","filename":"file5"},{"photo_id":"1330882028","filename":"file2"},{"photo_id":"1330882036","filename":"file4"},{"photo_id":"1330882025","filename":"file1"},{"photo_id":"1330882023","filename":"file0"},{"photo_id":"1330882030","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330882036":["hashtag1","hashtag2"]},{"1330882030":["hashtag1","hashtag2"]},{"1330882041":["hashtag1","hashtag2"]},{"1330882023":["hashtag1","hashtag2"]},{"1330882025":["hashtag1","hashtag2"]},{"1330882028":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330882036, 1330882030, 1330882041, 1330882023, 1330882025, 1330882028)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.172656297683716 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:57:31.906594
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_55_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_49_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_36_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_30_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_25_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_55_6196.jpg', '/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_49_6196.jpg', '/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_42_6196.jpg', '/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_36_6197.jpg', '/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_30_5187.jpg', '/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_25_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_55_6196.jpg
/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_49_6196.jpg
/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_42_6196.jpg
/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_36_6197.jpg
/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_30_5187.jpg
/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_25_6196.jpg
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 22:59:03.842240
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_55_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_49_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_36_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_30_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_25_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_55_6196.jpg', '/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_49_6196.jpg', '/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_42_6196.jpg', '/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_36_6197.jpg', '/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_30_5187.jpg', '/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_25_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_55_6196.jpg
/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_49_6196.jpg
/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_42_6196.jpg
/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_36_6197.jpg
/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_30_5187.jpg
/home/nano/Desktop/images/23012025/22/57/image_23012025_22_57_25_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330882213","1330882210","1330882224","1330882206","1330882217","1330882202"],"photo_ids_order":["1330882202","1330882206","1330882210","1330882213","1330882217","1330882224"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/493556ee48b02317cb1e3f9936b7b426.jpg","text":"TemporaryFile(/tmp/multipartBody2134567307640821013asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669604602,"filename":"image_23012025_22_57_36_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fdc2219264d1e93181f0235f31a2e83d.jpg","text":"TemporaryFile(/tmp/multipartBody513145591172785105asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669604602,"filename":"image_23012025_22_57_42_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9bb9e3ea208a063c720765745ea09281.jpg","text":"TemporaryFile(/tmp/multipartBody4044134982342291210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669604602,"filename":"image_23012025_22_57_25_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/04757be4a530eb25ab82041af7cfb276.jpg","text":"TemporaryFile(/tmp/multipartBody8082019583584128155asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669604602,"filename":"image_23012025_22_57_49_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6d192bc7e9171287ce6d6decddef565f.jpg","text":"TemporaryFile(/tmp/multipartBody6959605173497869016asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669604602,"filename":"image_23012025_22_57_30_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fefc6d958723f98ba6495304604a563a.jpg","text":"TemporaryFile(/tmp/multipartBody3474610162366130063asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669604602,"filename":"image_23012025_22_57_55_6196.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330882210","file1":"1330882206","file0":"1330882202","file4":"1330882217","file5":"1330882224","file3":"1330882213"},"map_files_photo_id_array":[{"photo_id":"1330882224","filename":"file5"},{"photo_id":"1330882210","filename":"file2"},{"photo_id":"1330882217","filename":"file4"},{"photo_id":"1330882206","filename":"file1"},{"photo_id":"1330882202","filename":"file0"},{"photo_id":"1330882213","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330882213":["hashtag1","hashtag2"]},{"1330882210":["hashtag1","hashtag2"]},{"1330882224":["hashtag1","hashtag2"]},{"1330882206":["hashtag1","hashtag2"]},{"1330882217":["hashtag1","hashtag2"]},{"1330882202":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330882213, 1330882210, 1330882224, 1330882206, 1330882217, 1330882202)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.56280493736267 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:00:02.420713
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/22/59/image_23012025_22_59_55_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/59/image_23012025_22_59_48_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/22/59/image_23012025_22_59_42_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/22/59/image_23012025_22_59_36_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/22/59/image_23012025_22_59_31_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/22/59/image_23012025_22_59_25_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/22/59/image_23012025_22_59_55_6196.jpg', '/home/nano/Desktop/images/23012025/22/59/image_23012025_22_59_48_6196.jpg', '/home/nano/Desktop/images/23012025/22/59/image_23012025_22_59_42_6199.jpg', '/home/nano/Desktop/images/23012025/22/59/image_23012025_22_59_36_5186.jpg', '/home/nano/Desktop/images/23012025/22/59/image_23012025_22_59_31_6195.jpg', '/home/nano/Desktop/images/23012025/22/59/image_23012025_22_59_25_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/22/59/image_23012025_22_59_55_6196.jpg
/home/nano/Desktop/images/23012025/22/59/image_23012025_22_59_48_6196.jpg
/home/nano/Desktop/images/23012025/22/59/image_23012025_22_59_42_6199.jpg
/home/nano/Desktop/images/23012025/22/59/image_23012025_22_59_36_5186.jpg
/home/nano/Desktop/images/23012025/22/59/image_23012025_22_59_31_6195.jpg
/home/nano/Desktop/images/23012025/22/59/image_23012025_22_59_25_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330882252","1330882242","1330882245","1330882248","1330882259","1330882256"],"photo_ids_order":["1330882242","1330882245","1330882248","1330882252","1330882256","1330882259"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/791faaf5d7c6222b95035df37c1b6fa1.jpg","text":"TemporaryFile(/tmp/multipartBody5652561684087701785asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669663201,"filename":"image_23012025_22_59_36_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9542250983a8d5b49f71e77b1a4e6822.jpg","text":"TemporaryFile(/tmp/multipartBody5646667947455836074asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669663201,"filename":"image_23012025_22_59_55_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/35c5cf1148ac2a3ea139343b6e0fad6e.jpg","text":"TemporaryFile(/tmp/multipartBody3290831183721528359asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669663201,"filename":"image_23012025_22_59_48_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ab7110f5aa0119566d72657cd44170f8.jpg","text":"TemporaryFile(/tmp/multipartBody9078748123817931673asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669663201,"filename":"image_23012025_22_59_42_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/82cf7396ee40b1e433fd3ed6e1b45ecd.jpg","text":"TemporaryFile(/tmp/multipartBody1114644574486854123asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669663201,"filename":"image_23012025_22_59_25_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b74118e07e3e5c66ed7249f8d50670c4.jpg","text":"TemporaryFile(/tmp/multipartBody2728809129860295682asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669663201,"filename":"image_23012025_22_59_31_6195.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330882248","file1":"1330882245","file0":"1330882242","file4":"1330882256","file5":"1330882259","file3":"1330882252"},"map_files_photo_id_array":[{"photo_id":"1330882259","filename":"file5"},{"photo_id":"1330882248","filename":"file2"},{"photo_id":"1330882256","filename":"file4"},{"photo_id":"1330882245","filename":"file1"},{"photo_id":"1330882242","filename":"file0"},{"photo_id":"1330882252","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330882252":["hashtag1","hashtag2"]},{"1330882242":["hashtag1","hashtag2"]},{"1330882245":["hashtag1","hashtag2"]},{"1330882248":["hashtag1","hashtag2"]},{"1330882259":["hashtag1","hashtag2"]},{"1330882256":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330882252, 1330882242, 1330882245, 1330882248, 1330882259, 1330882256)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.346434354782104 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:01:02.643350
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/00/image_23012025_23_00_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/23/00/image_23012025_23_00_48_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/23/00/image_23012025_23_00_42_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/00/image_23012025_23_00_36_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/23/00/image_23012025_23_00_31_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/23/00/image_23012025_23_00_25_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/00/image_23012025_23_00_55_6188.jpg', '/home/nano/Desktop/images/23012025/23/00/image_23012025_23_00_48_6188.jpg', '/home/nano/Desktop/images/23012025/23/00/image_23012025_23_00_42_6187.jpg', '/home/nano/Desktop/images/23012025/23/00/image_23012025_23_00_36_5178.jpg', '/home/nano/Desktop/images/23012025/23/00/image_23012025_23_00_31_6186.jpg', '/home/nano/Desktop/images/23012025/23/00/image_23012025_23_00_25_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/00/image_23012025_23_00_55_6188.jpg
/home/nano/Desktop/images/23012025/23/00/image_23012025_23_00_48_6188.jpg
/home/nano/Desktop/images/23012025/23/00/image_23012025_23_00_42_6187.jpg
/home/nano/Desktop/images/23012025/23/00/image_23012025_23_00_36_5178.jpg
/home/nano/Desktop/images/23012025/23/00/image_23012025_23_00_31_6186.jpg
/home/nano/Desktop/images/23012025/23/00/image_23012025_23_00_25_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330882297","1330882284","1330882295","1330882322","1330882316","1330882288"],"photo_ids_order":["1330882284","1330882288","1330882295","1330882297","1330882316","1330882322"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8951a7d3d797a929ea0ea386bb5bdedd.jpg","text":"TemporaryFile(/tmp/multipartBody6461882882745192532asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669723017,"filename":"image_23012025_23_00_36_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7f5ecc3f5c5092c57789a7758fbc1016.jpg","text":"TemporaryFile(/tmp/multipartBody6452912794177604832asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669723017,"filename":"image_23012025_23_00_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d4161d5ce5ea592fcd3c40f6cd9ce3cd.jpg","text":"TemporaryFile(/tmp/multipartBody7600696617893907315asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669723017,"filename":"image_23012025_23_00_42_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7fb013b29d72de6181aa072ed83aac21.jpg","text":"TemporaryFile(/tmp/multipartBody5775564967560304080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669723017,"filename":"image_23012025_23_00_25_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/05a1b874704fcc88466b2e3a03ae0478.jpg","text":"TemporaryFile(/tmp/multipartBody8886919128978571678asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669723017,"filename":"image_23012025_23_00_31_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f4e38fcdaa3eaa8294036082f0192d0b.jpg","text":"TemporaryFile(/tmp/multipartBody883209010123551056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669723017,"filename":"image_23012025_23_00_48_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330882295","file1":"1330882288","file0":"1330882284","file4":"1330882316","file5":"1330882322","file3":"1330882297"},"map_files_photo_id_array":[{"photo_id":"1330882322","filename":"file5"},{"photo_id":"1330882295","filename":"file2"},{"photo_id":"1330882316","filename":"file4"},{"photo_id":"1330882288","filename":"file1"},{"photo_id":"1330882284","filename":"file0"},{"photo_id":"1330882297","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330882297":["hashtag1","hashtag2"]},{"1330882284":["hashtag1","hashtag2"]},{"1330882295":["hashtag1","hashtag2"]},{"1330882322":["hashtag1","hashtag2"]},{"1330882316":["hashtag1","hashtag2"]},{"1330882288":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330882297, 1330882284, 1330882295, 1330882322, 1330882316, 1330882288)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.89919996261597 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:02:02.642140
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/01/image_23012025_23_01_55_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/01/image_23012025_23_01_48_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/01/image_23012025_23_01_42_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/23/01/image_23012025_23_01_36_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/23/01/image_23012025_23_01_31_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/01/image_23012025_23_01_25_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/01/image_23012025_23_01_55_6187.jpg', '/home/nano/Desktop/images/23012025/23/01/image_23012025_23_01_48_6187.jpg', '/home/nano/Desktop/images/23012025/23/01/image_23012025_23_01_42_6186.jpg', '/home/nano/Desktop/images/23012025/23/01/image_23012025_23_01_36_5177.jpg', '/home/nano/Desktop/images/23012025/23/01/image_23012025_23_01_31_6187.jpg', '/home/nano/Desktop/images/23012025/23/01/image_23012025_23_01_25_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/01/image_23012025_23_01_55_6187.jpg
/home/nano/Desktop/images/23012025/23/01/image_23012025_23_01_48_6187.jpg
/home/nano/Desktop/images/23012025/23/01/image_23012025_23_01_42_6186.jpg
/home/nano/Desktop/images/23012025/23/01/image_23012025_23_01_36_5177.jpg
/home/nano/Desktop/images/23012025/23/01/image_23012025_23_01_31_6187.jpg
/home/nano/Desktop/images/23012025/23/01/image_23012025_23_01_25_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330882396","1330882414","1330882389","1330882391","1330882427","1330882421"],"photo_ids_order":["1330882389","1330882391","1330882396","1330882414","1330882421","1330882427"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c7346eb24af5ff63a227f501cc280cda.jpg","text":"TemporaryFile(/tmp/multipartBody5091804798984888001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669783102,"filename":"image_23012025_23_01_42_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e33858c099e39b4a5fa1e77589daae64.jpg","text":"TemporaryFile(/tmp/multipartBody6656432156085687863asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669783102,"filename":"image_23012025_23_01_36_5177.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/226ba182a5d5f05508fb7c1f806d7d83.jpg","text":"TemporaryFile(/tmp/multipartBody2872508659851379267asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669783102,"filename":"image_23012025_23_01_55_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3556b67bc107ae1953d0d621414a2b77.jpg","text":"TemporaryFile(/tmp/multipartBody2286583281370799845asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669783102,"filename":"image_23012025_23_01_48_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8ffe8c02b43bbe1b65e2f41a5c73cc9b.jpg","text":"TemporaryFile(/tmp/multipartBody9116894378378370531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669783102,"filename":"image_23012025_23_01_25_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9328023b0cb021456a0c130bd3487b5b.jpg","text":"TemporaryFile(/tmp/multipartBody5576993768254950903asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669783102,"filename":"image_23012025_23_01_31_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330882396","file1":"1330882391","file0":"1330882389","file4":"1330882421","file5":"1330882427","file3":"1330882414"},"map_files_photo_id_array":[{"photo_id":"1330882427","filename":"file5"},{"photo_id":"1330882396","filename":"file2"},{"photo_id":"1330882421","filename":"file4"},{"photo_id":"1330882391","filename":"file1"},{"photo_id":"1330882389","filename":"file0"},{"photo_id":"1330882414","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330882396":["hashtag1","hashtag2"]},{"1330882414":["hashtag1","hashtag2"]},{"1330882389":["hashtag1","hashtag2"]},{"1330882391":["hashtag1","hashtag2"]},{"1330882427":["hashtag1","hashtag2"]},{"1330882421":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330882396, 1330882414, 1330882389, 1330882391, 1330882427, 1330882421)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.684823751449585 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:03:03.030797
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/03/image_23012025_23_04_00_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/23/02/image_23012025_23_02_55_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/23/02/image_23012025_23_02_49_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/23/02/image_23012025_23_02_42_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/23/02/image_23012025_23_02_36_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/23/02/image_23012025_23_02_30_5180.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/03/image_23012025_23_04_00_5178.jpg', '/home/nano/Desktop/images/23012025/23/02/image_23012025_23_02_55_6193.jpg', '/home/nano/Desktop/images/23012025/23/02/image_23012025_23_02_49_6193.jpg', '/home/nano/Desktop/images/23012025/23/02/image_23012025_23_02_42_6192.jpg', '/home/nano/Desktop/images/23012025/23/02/image_23012025_23_02_36_6197.jpg', '/home/nano/Desktop/images/23012025/23/02/image_23012025_23_02_30_5180.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/03/image_23012025_23_04_00_5178.jpg
/home/nano/Desktop/images/23012025/23/02/image_23012025_23_02_55_6193.jpg
/home/nano/Desktop/images/23012025/23/02/image_23012025_23_02_49_6193.jpg
/home/nano/Desktop/images/23012025/23/02/image_23012025_23_02_42_6192.jpg
/home/nano/Desktop/images/23012025/23/02/image_23012025_23_02_36_6197.jpg
/home/nano/Desktop/images/23012025/23/02/image_23012025_23_02_30_5180.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330882503","1330882496","1330882500","1330882484","1330882457","1330882454"],"photo_ids_order":["1330882454","1330882457","1330882484","1330882496","1330882500","1330882503"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ed9f76a31aeb6749435879c993c8a7b2.jpg","text":"TemporaryFile(/tmp/multipartBody3149292341019851847asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669843501,"filename":"image_23012025_23_02_30_5180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9a9c67f61c17f8fe2e82cb64590a93b8.jpg","text":"TemporaryFile(/tmp/multipartBody3465321177338427609asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669843501,"filename":"image_23012025_23_02_42_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/611ef5325e8977c52dd2f9144f90f378.jpg","text":"TemporaryFile(/tmp/multipartBody4398517249381999472asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669843501,"filename":"image_23012025_23_02_36_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3e52e02904ec9543a292f957c8ef1711.jpg","text":"TemporaryFile(/tmp/multipartBody6181524890181652231asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669843501,"filename":"image_23012025_23_02_49_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/92e57fc27bb6af5ed65271f1c60489ee.jpg","text":"TemporaryFile(/tmp/multipartBody1382749675900551471asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669843501,"filename":"image_23012025_23_02_55_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e66999e140fd171b96149d03aa561591.jpg","text":"TemporaryFile(/tmp/multipartBody3473238761469644727asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669843501,"filename":"image_23012025_23_04_00_5178.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330882484","file1":"1330882457","file0":"1330882454","file4":"1330882500","file5":"1330882503","file3":"1330882496"},"map_files_photo_id_array":[{"photo_id":"1330882503","filename":"file5"},{"photo_id":"1330882484","filename":"file2"},{"photo_id":"1330882500","filename":"file4"},{"photo_id":"1330882457","filename":"file1"},{"photo_id":"1330882454","filename":"file0"},{"photo_id":"1330882496","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330882503":["hashtag1","hashtag2"]},{"1330882496":["hashtag1","hashtag2"]},{"1330882500":["hashtag1","hashtag2"]},{"1330882484":["hashtag1","hashtag2"]},{"1330882457":["hashtag1","hashtag2"]},{"1330882454":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330882503, 1330882496, 1330882500, 1330882484, 1330882457, 1330882454)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.079479932785034 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:04:03.077750
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/03/image_23012025_23_03_49_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/23/03/image_23012025_23_03_42_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/23/03/image_23012025_23_03_36_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/23/03/image_23012025_23_03_30_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/23/03/image_23012025_23_03_25_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/23/03/image_23012025_23_03_19_6204.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/03/image_23012025_23_03_49_6193.jpg', '/home/nano/Desktop/images/23012025/23/03/image_23012025_23_03_42_6195.jpg', '/home/nano/Desktop/images/23012025/23/03/image_23012025_23_03_36_6195.jpg', '/home/nano/Desktop/images/23012025/23/03/image_23012025_23_03_30_5179.jpg', '/home/nano/Desktop/images/23012025/23/03/image_23012025_23_03_25_6198.jpg', '/home/nano/Desktop/images/23012025/23/03/image_23012025_23_03_19_6204.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/03/image_23012025_23_03_49_6193.jpg
/home/nano/Desktop/images/23012025/23/03/image_23012025_23_03_42_6195.jpg
/home/nano/Desktop/images/23012025/23/03/image_23012025_23_03_36_6195.jpg
/home/nano/Desktop/images/23012025/23/03/image_23012025_23_03_30_5179.jpg
/home/nano/Desktop/images/23012025/23/03/image_23012025_23_03_25_6198.jpg
/home/nano/Desktop/images/23012025/23/03/image_23012025_23_03_19_6204.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330882584","1330882593","1330882595","1330882589","1330882597","1330882591"],"photo_ids_order":["1330882584","1330882589","1330882591","1330882593","1330882595","1330882597"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/41c90832e4c4197de2a171ef8e8ac1d7.jpg","text":"TemporaryFile(/tmp/multipartBody7998775485730538067asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669903895,"filename":"image_23012025_23_03_49_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/281da2e01c7223b7b8d95f6f27da3ac8.jpg","text":"TemporaryFile(/tmp/multipartBody6094050654830057443asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669903895,"filename":"image_23012025_23_03_30_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3f29ac5ce5be032c63c3a7c715d8c435.jpg","text":"TemporaryFile(/tmp/multipartBody1557015166200907033asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669903895,"filename":"image_23012025_23_03_25_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9d1241edc061d3585da8165f75a0e158.jpg","text":"TemporaryFile(/tmp/multipartBody534808305015511722asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669903895,"filename":"image_23012025_23_03_42_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6076c7df169ee678ad07d869d24110b0.jpg","text":"TemporaryFile(/tmp/multipartBody7396031294181948967asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669903895,"filename":"image_23012025_23_03_19_6204.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/311706c7dfa68efe07c558867780180e.jpg","text":"TemporaryFile(/tmp/multipartBody2013229793957261447asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669903895,"filename":"image_23012025_23_03_36_6195.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330882591","file1":"1330882589","file0":"1330882584","file4":"1330882595","file5":"1330882597","file3":"1330882593"},"map_files_photo_id_array":[{"photo_id":"1330882597","filename":"file5"},{"photo_id":"1330882591","filename":"file2"},{"photo_id":"1330882595","filename":"file4"},{"photo_id":"1330882589","filename":"file1"},{"photo_id":"1330882584","filename":"file0"},{"photo_id":"1330882593","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330882584":["hashtag1","hashtag2"]},{"1330882593":["hashtag1","hashtag2"]},{"1330882595":["hashtag1","hashtag2"]},{"1330882589":["hashtag1","hashtag2"]},{"1330882597":["hashtag1","hashtag2"]},{"1330882591":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330882584, 1330882593, 1330882595, 1330882589, 1330882597, 1330882591)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.75224041938782 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:05:03.134054
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/04/image_23012025_23_04_55_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/04/image_23012025_23_04_48_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/04/image_23012025_23_04_42_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/04/image_23012025_23_04_36_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/23/04/image_23012025_23_04_31_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/23/04/image_23012025_23_04_25_6186.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/04/image_23012025_23_04_55_6187.jpg', '/home/nano/Desktop/images/23012025/23/04/image_23012025_23_04_48_6187.jpg', '/home/nano/Desktop/images/23012025/23/04/image_23012025_23_04_42_6187.jpg', '/home/nano/Desktop/images/23012025/23/04/image_23012025_23_04_36_5178.jpg', '/home/nano/Desktop/images/23012025/23/04/image_23012025_23_04_31_6186.jpg', '/home/nano/Desktop/images/23012025/23/04/image_23012025_23_04_25_6186.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/04/image_23012025_23_04_55_6187.jpg
/home/nano/Desktop/images/23012025/23/04/image_23012025_23_04_48_6187.jpg
/home/nano/Desktop/images/23012025/23/04/image_23012025_23_04_42_6187.jpg
/home/nano/Desktop/images/23012025/23/04/image_23012025_23_04_36_5178.jpg
/home/nano/Desktop/images/23012025/23/04/image_23012025_23_04_31_6186.jpg
/home/nano/Desktop/images/23012025/23/04/image_23012025_23_04_25_6186.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330882720","1330882725","1330882629","1330882722","1330882718","1330882640"],"photo_ids_order":["1330882629","1330882640","1330882718","1330882720","1330882722","1330882725"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e0230bd6b71e0f448a40311f0ce8d060.jpg","text":"TemporaryFile(/tmp/multipartBody9092771692882611831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669963486,"filename":"image_23012025_23_04_36_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0aa5a6d48b61ff466ac1d1f9c8dd1483.jpg","text":"TemporaryFile(/tmp/multipartBody2570198140604817521asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669963486,"filename":"image_23012025_23_04_25_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f86908a8c5e174e598700bd8fc144ac8.jpg","text":"TemporaryFile(/tmp/multipartBody6963004719319625711asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669963486,"filename":"image_23012025_23_04_55_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3a6ff42c272f2effbf10f0ea61baf5b4.jpg","text":"TemporaryFile(/tmp/multipartBody8794928940320860363asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669963486,"filename":"image_23012025_23_04_31_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b2dcdbfd87894210733a0567515f98fd.jpg","text":"TemporaryFile(/tmp/multipartBody2609150979082444063asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669963486,"filename":"image_23012025_23_04_42_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5148373b76d201338041e59d80746100.jpg","text":"TemporaryFile(/tmp/multipartBody141362094219645393asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737669963486,"filename":"image_23012025_23_04_48_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330882718","file1":"1330882640","file0":"1330882629","file4":"1330882722","file5":"1330882725","file3":"1330882720"},"map_files_photo_id_array":[{"photo_id":"1330882725","filename":"file5"},{"photo_id":"1330882718","filename":"file2"},{"photo_id":"1330882722","filename":"file4"},{"photo_id":"1330882640","filename":"file1"},{"photo_id":"1330882629","filename":"file0"},{"photo_id":"1330882720","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330882720":["hashtag1","hashtag2"]},{"1330882725":["hashtag1","hashtag2"]},{"1330882629":["hashtag1","hashtag2"]},{"1330882722":["hashtag1","hashtag2"]},{"1330882718":["hashtag1","hashtag2"]},{"1330882640":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330882720, 1330882725, 1330882629, 1330882722, 1330882718, 1330882640)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.091341495513916 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:06:03.105899
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/05/image_23012025_23_05_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/23/05/image_23012025_23_05_48_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/23/05/image_23012025_23_05_42_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/05/image_23012025_23_05_36_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/23/05/image_23012025_23_05_31_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/23/05/image_23012025_23_05_25_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/05/image_23012025_23_05_55_6188.jpg', '/home/nano/Desktop/images/23012025/23/05/image_23012025_23_05_48_6190.jpg', '/home/nano/Desktop/images/23012025/23/05/image_23012025_23_05_42_6187.jpg', '/home/nano/Desktop/images/23012025/23/05/image_23012025_23_05_36_5179.jpg', '/home/nano/Desktop/images/23012025/23/05/image_23012025_23_05_31_6189.jpg', '/home/nano/Desktop/images/23012025/23/05/image_23012025_23_05_25_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/05/image_23012025_23_05_55_6188.jpg
/home/nano/Desktop/images/23012025/23/05/image_23012025_23_05_48_6190.jpg
/home/nano/Desktop/images/23012025/23/05/image_23012025_23_05_42_6187.jpg
/home/nano/Desktop/images/23012025/23/05/image_23012025_23_05_36_5179.jpg
/home/nano/Desktop/images/23012025/23/05/image_23012025_23_05_31_6189.jpg
/home/nano/Desktop/images/23012025/23/05/image_23012025_23_05_25_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330882765","1330882756","1330882744","1330882752","1330882749","1330882754"],"photo_ids_order":["1330882744","1330882749","1330882752","1330882754","1330882756","1330882765"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ca511df8160b3051ca694aa01da45589.jpg","text":"TemporaryFile(/tmp/multipartBody8782413540383059164asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670023556,"filename":"image_23012025_23_05_25_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/94c1529b60622b07546d10f5b36479b9.jpg","text":"TemporaryFile(/tmp/multipartBody1370851916667504911asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670023556,"filename":"image_23012025_23_05_31_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/55704c7ef1b9517e3f068584372d0657.jpg","text":"TemporaryFile(/tmp/multipartBody5168961355498539253asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670023556,"filename":"image_23012025_23_05_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a0c2cf71945a517a71e8a365fa97f302.jpg","text":"TemporaryFile(/tmp/multipartBody2233434321801784083asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670023556,"filename":"image_23012025_23_05_42_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9c7bef3045e3d6413a8c533f83503ff9.jpg","text":"TemporaryFile(/tmp/multipartBody1101385608564233250asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670023556,"filename":"image_23012025_23_05_48_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e98dc471edeb31a9e03cdd8a72b49367.jpg","text":"TemporaryFile(/tmp/multipartBody2799789415268638104asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670023556,"filename":"image_23012025_23_05_36_5179.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330882752","file1":"1330882749","file0":"1330882744","file4":"1330882756","file5":"1330882765","file3":"1330882754"},"map_files_photo_id_array":[{"photo_id":"1330882765","filename":"file5"},{"photo_id":"1330882752","filename":"file2"},{"photo_id":"1330882756","filename":"file4"},{"photo_id":"1330882749","filename":"file1"},{"photo_id":"1330882744","filename":"file0"},{"photo_id":"1330882754","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330882765":["hashtag1","hashtag2"]},{"1330882756":["hashtag1","hashtag2"]},{"1330882744":["hashtag1","hashtag2"]},{"1330882752":["hashtag1","hashtag2"]},{"1330882749":["hashtag1","hashtag2"]},{"1330882754":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330882765, 1330882756, 1330882744, 1330882752, 1330882749, 1330882754)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.25903105735779 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:07:03.308048
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/06/image_23012025_23_06_54_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/23/06/image_23012025_23_06_48_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/23/06/image_23012025_23_06_42_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/23/06/image_23012025_23_06_37_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/23/06/image_23012025_23_06_31_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/23/06/image_23012025_23_06_24_6204.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/06/image_23012025_23_06_54_6194.jpg', '/home/nano/Desktop/images/23012025/23/06/image_23012025_23_06_48_6198.jpg', '/home/nano/Desktop/images/23012025/23/06/image_23012025_23_06_42_5185.jpg', '/home/nano/Desktop/images/23012025/23/06/image_23012025_23_06_37_6195.jpg', '/home/nano/Desktop/images/23012025/23/06/image_23012025_23_06_31_6196.jpg', '/home/nano/Desktop/images/23012025/23/06/image_23012025_23_06_24_6204.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/06/image_23012025_23_06_54_6194.jpg
/home/nano/Desktop/images/23012025/23/06/image_23012025_23_06_48_6198.jpg
/home/nano/Desktop/images/23012025/23/06/image_23012025_23_06_42_5185.jpg
/home/nano/Desktop/images/23012025/23/06/image_23012025_23_06_37_6195.jpg
/home/nano/Desktop/images/23012025/23/06/image_23012025_23_06_31_6196.jpg
/home/nano/Desktop/images/23012025/23/06/image_23012025_23_06_24_6204.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330882974","1330882875","1330882803","1330882988","1330882952","1330882958"],"photo_ids_order":["1330882803","1330882875","1330882952","1330882958","1330882974","1330882988"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d4af1be63289267f51c0274d18df15c2.jpg","text":"TemporaryFile(/tmp/multipartBody8697508311029870769asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670083823,"filename":"image_23012025_23_06_31_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fbedb8dd14d994bbd79167bc942d3aa2.jpg","text":"TemporaryFile(/tmp/multipartBody4406563872611750379asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670083823,"filename":"image_23012025_23_06_48_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fcf4d2232c4d4ec51089394796ee3107.jpg","text":"TemporaryFile(/tmp/multipartBody5680076244506027038asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670083823,"filename":"image_23012025_23_06_54_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b6ad056e7e1c8c5d7ac689c5af093926.jpg","text":"TemporaryFile(/tmp/multipartBody4380272666239184170asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670083823,"filename":"image_23012025_23_06_24_6204.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7e7b520d948dc759c4db18471b4f74d9.jpg","text":"TemporaryFile(/tmp/multipartBody6633468495445731999asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670083823,"filename":"image_23012025_23_06_42_5185.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6dde447dd82f9ef19817247f5871cf9c.jpg","text":"TemporaryFile(/tmp/multipartBody5511045971006095330asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670083823,"filename":"image_23012025_23_06_37_6195.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330882952","file1":"1330882875","file0":"1330882803","file4":"1330882974","file5":"1330882988","file3":"1330882958"},"map_files_photo_id_array":[{"photo_id":"1330882988","filename":"file5"},{"photo_id":"1330882952","filename":"file2"},{"photo_id":"1330882974","filename":"file4"},{"photo_id":"1330882875","filename":"file1"},{"photo_id":"1330882803","filename":"file0"},{"photo_id":"1330882958","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330882974":["hashtag1","hashtag2"]},{"1330882875":["hashtag1","hashtag2"]},{"1330882803":["hashtag1","hashtag2"]},{"1330882988":["hashtag1","hashtag2"]},{"1330882952":["hashtag1","hashtag2"]},{"1330882958":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330882974, 1330882875, 1330882803, 1330882988, 1330882952, 1330882958)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.32545304298401 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:08:03.233348
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/07/image_23012025_23_07_54_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/23/07/image_23012025_23_07_48_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/23/07/image_23012025_23_07_42_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/07/image_23012025_23_07_37_6212.jpg', 2), ('/home/nano/Desktop/images/23012025/23/07/image_23012025_23_07_31_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/23/07/image_23012025_23_07_24_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/07/image_23012025_23_07_54_6195.jpg', '/home/nano/Desktop/images/23012025/23/07/image_23012025_23_07_48_6195.jpg', '/home/nano/Desktop/images/23012025/23/07/image_23012025_23_07_42_5187.jpg', '/home/nano/Desktop/images/23012025/23/07/image_23012025_23_07_37_6212.jpg', '/home/nano/Desktop/images/23012025/23/07/image_23012025_23_07_31_6195.jpg', '/home/nano/Desktop/images/23012025/23/07/image_23012025_23_07_24_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/07/image_23012025_23_07_54_6195.jpg
/home/nano/Desktop/images/23012025/23/07/image_23012025_23_07_48_6195.jpg
/home/nano/Desktop/images/23012025/23/07/image_23012025_23_07_42_5187.jpg
/home/nano/Desktop/images/23012025/23/07/image_23012025_23_07_37_6212.jpg
/home/nano/Desktop/images/23012025/23/07/image_23012025_23_07_31_6195.jpg
/home/nano/Desktop/images/23012025/23/07/image_23012025_23_07_24_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330883011","1330883865","1330883324","1330883854","1330883578","1330883050"],"photo_ids_order":["1330883011","1330883050","1330883324","1330883578","1330883854","1330883865"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1dfdc7fe10ad75c6e3524302487aa212.jpg","text":"TemporaryFile(/tmp/multipartBody4536126937622523031asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670143745,"filename":"image_23012025_23_07_54_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a223f564daa13351b2d3105729f9be85.jpg","text":"TemporaryFile(/tmp/multipartBody5204485272423583517asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670143745,"filename":"image_23012025_23_07_24_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/18eb909d598276dea569de4a940ca295.jpg","text":"TemporaryFile(/tmp/multipartBody4976814299170682172asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670143745,"filename":"image_23012025_23_07_42_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/52e9ed26475d181f2848f2872d657c63.jpg","text":"TemporaryFile(/tmp/multipartBody692523566549117410asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670143745,"filename":"image_23012025_23_07_31_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6960bd92ca9e6eebcc01c21d4f65f462.jpg","text":"TemporaryFile(/tmp/multipartBody6640126536601736530asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670143745,"filename":"image_23012025_23_07_37_6212.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/52ce0845b8c3838df89da642a292dc62.jpg","text":"TemporaryFile(/tmp/multipartBody1951231885348597684asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670143745,"filename":"image_23012025_23_07_48_6195.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330883324","file1":"1330883050","file0":"1330883011","file4":"1330883854","file5":"1330883865","file3":"1330883578"},"map_files_photo_id_array":[{"photo_id":"1330883865","filename":"file5"},{"photo_id":"1330883324","filename":"file2"},{"photo_id":"1330883854","filename":"file4"},{"photo_id":"1330883050","filename":"file1"},{"photo_id":"1330883011","filename":"file0"},{"photo_id":"1330883578","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330883011":["hashtag1","hashtag2"]},{"1330883865":["hashtag1","hashtag2"]},{"1330883324":["hashtag1","hashtag2"]},{"1330883854":["hashtag1","hashtag2"]},{"1330883578":["hashtag1","hashtag2"]},{"1330883050":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330883011, 1330883865, 1330883324, 1330883854, 1330883578, 1330883050)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.37596845626831 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:09:03.018660
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/08/image_23012025_23_08_54_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/23/08/image_23012025_23_08_48_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/23/08/image_23012025_23_08_42_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/23/08/image_23012025_23_08_37_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/23/08/image_23012025_23_08_31_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/23/08/image_23012025_23_08_24_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/08/image_23012025_23_08_54_6195.jpg', '/home/nano/Desktop/images/23012025/23/08/image_23012025_23_08_48_6198.jpg', '/home/nano/Desktop/images/23012025/23/08/image_23012025_23_08_42_5186.jpg', '/home/nano/Desktop/images/23012025/23/08/image_23012025_23_08_37_6196.jpg', '/home/nano/Desktop/images/23012025/23/08/image_23012025_23_08_31_6195.jpg', '/home/nano/Desktop/images/23012025/23/08/image_23012025_23_08_24_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/08/image_23012025_23_08_54_6195.jpg
/home/nano/Desktop/images/23012025/23/08/image_23012025_23_08_48_6198.jpg
/home/nano/Desktop/images/23012025/23/08/image_23012025_23_08_42_5186.jpg
/home/nano/Desktop/images/23012025/23/08/image_23012025_23_08_37_6196.jpg
/home/nano/Desktop/images/23012025/23/08/image_23012025_23_08_31_6195.jpg
/home/nano/Desktop/images/23012025/23/08/image_23012025_23_08_24_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330883946","1330883928","1330883943","1330883969","1330883933","1330883924"],"photo_ids_order":["1330883924","1330883928","1330883933","1330883943","1330883946","1330883969"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4664ec99971ab0f1584bcb108b7536ac.jpg","text":"TemporaryFile(/tmp/multipartBody5080423013761389427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670203659,"filename":"image_23012025_23_08_31_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/84389bc53bd0a98b17d77deb191c7639.jpg","text":"TemporaryFile(/tmp/multipartBody3545585943360658310asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670203659,"filename":"image_23012025_23_08_48_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/42f7c06d13b6ec51219123eb7075d187.jpg","text":"TemporaryFile(/tmp/multipartBody822345870779260472asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670203659,"filename":"image_23012025_23_08_37_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/23baf035b75c7f30187f76d75bacce18.jpg","text":"TemporaryFile(/tmp/multipartBody4811504328593018964asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670203659,"filename":"image_23012025_23_08_24_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0882a1bf4c2525d560f3b1ed6440c397.jpg","text":"TemporaryFile(/tmp/multipartBody1498998250254389128asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670203659,"filename":"image_23012025_23_08_42_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5ac066b38c318e9cc1de000f9915767d.jpg","text":"TemporaryFile(/tmp/multipartBody1147606624401053891asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670203659,"filename":"image_23012025_23_08_54_6195.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330883933","file1":"1330883928","file0":"1330883924","file4":"1330883946","file5":"1330883969","file3":"1330883943"},"map_files_photo_id_array":[{"photo_id":"1330883969","filename":"file5"},{"photo_id":"1330883933","filename":"file2"},{"photo_id":"1330883946","filename":"file4"},{"photo_id":"1330883928","filename":"file1"},{"photo_id":"1330883924","filename":"file0"},{"photo_id":"1330883943","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330883946":["hashtag1","hashtag2"]},{"1330883928":["hashtag1","hashtag2"]},{"1330883943":["hashtag1","hashtag2"]},{"1330883969":["hashtag1","hashtag2"]},{"1330883933":["hashtag1","hashtag2"]},{"1330883924":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330883946, 1330883928, 1330883943, 1330883969, 1330883933, 1330883924)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.949509620666504 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:10:02.398338
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/09/image_23012025_23_09_54_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/23/09/image_23012025_23_09_48_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/23/09/image_23012025_23_09_42_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/23/09/image_23012025_23_09_37_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/23/09/image_23012025_23_09_31_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/09/image_23012025_23_09_24_6186.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/09/image_23012025_23_09_54_6193.jpg', '/home/nano/Desktop/images/23012025/23/09/image_23012025_23_09_48_6188.jpg', '/home/nano/Desktop/images/23012025/23/09/image_23012025_23_09_42_5178.jpg', '/home/nano/Desktop/images/23012025/23/09/image_23012025_23_09_37_6186.jpg', '/home/nano/Desktop/images/23012025/23/09/image_23012025_23_09_31_6187.jpg', '/home/nano/Desktop/images/23012025/23/09/image_23012025_23_09_24_6186.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/09/image_23012025_23_09_54_6193.jpg
/home/nano/Desktop/images/23012025/23/09/image_23012025_23_09_48_6188.jpg
/home/nano/Desktop/images/23012025/23/09/image_23012025_23_09_42_5178.jpg
/home/nano/Desktop/images/23012025/23/09/image_23012025_23_09_37_6186.jpg
/home/nano/Desktop/images/23012025/23/09/image_23012025_23_09_31_6187.jpg
/home/nano/Desktop/images/23012025/23/09/image_23012025_23_09_24_6186.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330884369","1330883982","1330884303","1330883987","1330884358","1330884130"],"photo_ids_order":["1330883982","1330883987","1330884130","1330884303","1330884358","1330884369"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9bfa5b9572b8b8609f0a67ee92074489.jpg","text":"TemporaryFile(/tmp/multipartBody2415882269489130716asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670262831,"filename":"image_23012025_23_09_24_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b8a35fdee271448c237b514dc5e2955b.jpg","text":"TemporaryFile(/tmp/multipartBody3311423981104588485asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670262831,"filename":"image_23012025_23_09_54_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6c51e8a05bba3160210a19e88538e77a.jpg","text":"TemporaryFile(/tmp/multipartBody473641637293256125asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670262831,"filename":"image_23012025_23_09_37_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9b613717356198409507e1fda2d6ada2.jpg","text":"TemporaryFile(/tmp/multipartBody1400645545020313139asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670262831,"filename":"image_23012025_23_09_48_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fab56a982265bd63c084b9fc35ad6d4a.jpg","text":"TemporaryFile(/tmp/multipartBody1936451914095409620asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670262831,"filename":"image_23012025_23_09_31_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e4514288122ceb9169a6c4221bcde8fc.jpg","text":"TemporaryFile(/tmp/multipartBody3447308777744924981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670262831,"filename":"image_23012025_23_09_42_5178.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330884130","file1":"1330883987","file0":"1330883982","file4":"1330884358","file5":"1330884369","file3":"1330884303"},"map_files_photo_id_array":[{"photo_id":"1330884369","filename":"file5"},{"photo_id":"1330884130","filename":"file2"},{"photo_id":"1330884358","filename":"file4"},{"photo_id":"1330883987","filename":"file1"},{"photo_id":"1330883982","filename":"file0"},{"photo_id":"1330884303","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330884369":["hashtag1","hashtag2"]},{"1330883982":["hashtag1","hashtag2"]},{"1330884303":["hashtag1","hashtag2"]},{"1330883987":["hashtag1","hashtag2"]},{"1330884358":["hashtag1","hashtag2"]},{"1330884130":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330884369, 1330883982, 1330884303, 1330883987, 1330884358, 1330884130)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.238810300827026 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:11:02.770760
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/10/image_23012025_23_10_54_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/23/10/image_23012025_23_10_48_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/23/10/image_23012025_23_10_43_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/23/10/image_23012025_23_10_37_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/23/10/image_23012025_23_10_30_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/10/image_23012025_23_10_24_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/10/image_23012025_23_10_54_6192.jpg', '/home/nano/Desktop/images/23012025/23/10/image_23012025_23_10_48_5178.jpg', '/home/nano/Desktop/images/23012025/23/10/image_23012025_23_10_43_6188.jpg', '/home/nano/Desktop/images/23012025/23/10/image_23012025_23_10_37_6188.jpg', '/home/nano/Desktop/images/23012025/23/10/image_23012025_23_10_30_6187.jpg', '/home/nano/Desktop/images/23012025/23/10/image_23012025_23_10_24_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/10/image_23012025_23_10_54_6192.jpg
/home/nano/Desktop/images/23012025/23/10/image_23012025_23_10_48_5178.jpg
/home/nano/Desktop/images/23012025/23/10/image_23012025_23_10_43_6188.jpg
/home/nano/Desktop/images/23012025/23/10/image_23012025_23_10_37_6188.jpg
/home/nano/Desktop/images/23012025/23/10/image_23012025_23_10_30_6187.jpg
/home/nano/Desktop/images/23012025/23/10/image_23012025_23_10_24_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330884564","1330884624","1330884627","1330884626","1330884608","1330884628"],"photo_ids_order":["1330884564","1330884608","1330884624","1330884626","1330884627","1330884628"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cfe21dcc40447899117c4b5b8c4ca1cb.jpg","text":"TemporaryFile(/tmp/multipartBody3196243013570619799asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670323184,"filename":"image_23012025_23_10_54_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/eaef6ce659386acb201a1fe177657cb9.jpg","text":"TemporaryFile(/tmp/multipartBody345781353009281481asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670323184,"filename":"image_23012025_23_10_43_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/029a45cf895ab3a7071bb0af01554c55.jpg","text":"TemporaryFile(/tmp/multipartBody4355760231982930377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670323184,"filename":"image_23012025_23_10_30_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/37e66e95f6acb99a48259738be0002d0.jpg","text":"TemporaryFile(/tmp/multipartBody5661003348140628981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670323184,"filename":"image_23012025_23_10_37_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/51e4b4183548725bdd3404b41889b6d5.jpg","text":"TemporaryFile(/tmp/multipartBody2774736506730923132asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670323184,"filename":"image_23012025_23_10_48_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5c799e06bc44e57ae092df6256cf0f79.jpg","text":"TemporaryFile(/tmp/multipartBody8413602062456358095asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670323184,"filename":"image_23012025_23_10_24_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330884624","file1":"1330884608","file0":"1330884564","file4":"1330884627","file5":"1330884628","file3":"1330884626"},"map_files_photo_id_array":[{"photo_id":"1330884628","filename":"file5"},{"photo_id":"1330884624","filename":"file2"},{"photo_id":"1330884627","filename":"file4"},{"photo_id":"1330884608","filename":"file1"},{"photo_id":"1330884564","filename":"file0"},{"photo_id":"1330884626","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330884564":["hashtag1","hashtag2"]},{"1330884624":["hashtag1","hashtag2"]},{"1330884627":["hashtag1","hashtag2"]},{"1330884626":["hashtag1","hashtag2"]},{"1330884608":["hashtag1","hashtag2"]},{"1330884628":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330884564, 1330884624, 1330884627, 1330884626, 1330884608, 1330884628)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.95361351966858 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:12:02.838351
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/11/image_23012025_23_11_54_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/23/11/image_23012025_23_11_48_5189.jpg', 2), ('/home/nano/Desktop/images/23012025/23/11/image_23012025_23_11_43_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/23/11/image_23012025_23_11_36_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/23/11/image_23012025_23_11_30_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/23/11/image_23012025_23_11_24_6190.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/11/image_23012025_23_11_54_6194.jpg', '/home/nano/Desktop/images/23012025/23/11/image_23012025_23_11_48_5189.jpg', '/home/nano/Desktop/images/23012025/23/11/image_23012025_23_11_43_6202.jpg', '/home/nano/Desktop/images/23012025/23/11/image_23012025_23_11_36_6189.jpg', '/home/nano/Desktop/images/23012025/23/11/image_23012025_23_11_30_6190.jpg', '/home/nano/Desktop/images/23012025/23/11/image_23012025_23_11_24_6190.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/11/image_23012025_23_11_54_6194.jpg
/home/nano/Desktop/images/23012025/23/11/image_23012025_23_11_48_5189.jpg
/home/nano/Desktop/images/23012025/23/11/image_23012025_23_11_43_6202.jpg
/home/nano/Desktop/images/23012025/23/11/image_23012025_23_11_36_6189.jpg
/home/nano/Desktop/images/23012025/23/11/image_23012025_23_11_30_6190.jpg
/home/nano/Desktop/images/23012025/23/11/image_23012025_23_11_24_6190.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330884717","1330884711","1330884713","1330884707","1330884682","1330884715"],"photo_ids_order":["1330884682","1330884707","1330884711","1330884713","1330884715","1330884717"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a8ce45810210cb2468c45bad46ec7fcb.jpg","text":"TemporaryFile(/tmp/multipartBody6576918210300396066asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670383323,"filename":"image_23012025_23_11_24_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/67d2aec5e1a12c0d383cc25c40fb13ca.jpg","text":"TemporaryFile(/tmp/multipartBody7739637277428011227asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670383323,"filename":"image_23012025_23_11_43_6202.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/816c7287ddf4ed5148205344d2253b63.jpg","text":"TemporaryFile(/tmp/multipartBody3161036964665808825asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670383323,"filename":"image_23012025_23_11_36_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/964e90c4645e4f45b2bb99dfbbb4e518.jpg","text":"TemporaryFile(/tmp/multipartBody188654064504442922asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670383323,"filename":"image_23012025_23_11_48_5189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/17251c21b4e4ac9fde41f4abd7a60a54.jpg","text":"TemporaryFile(/tmp/multipartBody1480848314273988971asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670383323,"filename":"image_23012025_23_11_54_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7ac7cf425548c77fc4a34a0de8dee0f5.jpg","text":"TemporaryFile(/tmp/multipartBody3283581627094397736asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670383323,"filename":"image_23012025_23_11_30_6190.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330884711","file1":"1330884707","file0":"1330884682","file4":"1330884715","file5":"1330884717","file3":"1330884713"},"map_files_photo_id_array":[{"photo_id":"1330884717","filename":"file5"},{"photo_id":"1330884711","filename":"file2"},{"photo_id":"1330884715","filename":"file4"},{"photo_id":"1330884707","filename":"file1"},{"photo_id":"1330884682","filename":"file0"},{"photo_id":"1330884713","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330884717":["hashtag1","hashtag2"]},{"1330884711":["hashtag1","hashtag2"]},{"1330884713":["hashtag1","hashtag2"]},{"1330884707":["hashtag1","hashtag2"]},{"1330884682":["hashtag1","hashtag2"]},{"1330884715":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330884717, 1330884711, 1330884713, 1330884707, 1330884682, 1330884715)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.788499116897583 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:13:03.038780
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/13/image_23012025_23_14_00_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/23/12/image_23012025_23_12_54_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/23/12/image_23012025_23_12_49_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/23/12/image_23012025_23_12_43_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/23/12/image_23012025_23_12_36_6230.jpg', 2), ('/home/nano/Desktop/images/23012025/23/12/image_23012025_23_12_30_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/13/image_23012025_23_14_00_6195.jpg', '/home/nano/Desktop/images/23012025/23/12/image_23012025_23_12_54_5179.jpg', '/home/nano/Desktop/images/23012025/23/12/image_23012025_23_12_49_6189.jpg', '/home/nano/Desktop/images/23012025/23/12/image_23012025_23_12_43_6194.jpg', '/home/nano/Desktop/images/23012025/23/12/image_23012025_23_12_36_6230.jpg', '/home/nano/Desktop/images/23012025/23/12/image_23012025_23_12_30_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/13/image_23012025_23_14_00_6195.jpg
/home/nano/Desktop/images/23012025/23/12/image_23012025_23_12_54_5179.jpg
/home/nano/Desktop/images/23012025/23/12/image_23012025_23_12_49_6189.jpg
/home/nano/Desktop/images/23012025/23/12/image_23012025_23_12_43_6194.jpg
/home/nano/Desktop/images/23012025/23/12/image_23012025_23_12_36_6230.jpg
/home/nano/Desktop/images/23012025/23/12/image_23012025_23_12_30_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330884750","1330884755","1330884749","1330884740","1330884745","1330884739"],"photo_ids_order":["1330884739","1330884740","1330884745","1330884749","1330884750","1330884755"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4f2ecf69168fd40fd0c6a5afceb11772.jpg","text":"TemporaryFile(/tmp/multipartBody7852098690974714221asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670443512,"filename":"image_23012025_23_12_36_6230.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6c8761dcf87859ce34b36ccdde06e466.jpg","text":"TemporaryFile(/tmp/multipartBody8548364633779617353asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670443512,"filename":"image_23012025_23_12_30_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/95476e6dfcef92109283648b6a319438.jpg","text":"TemporaryFile(/tmp/multipartBody6176908013243295724asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670443512,"filename":"image_23012025_23_12_43_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/838fb3df7c36ba6561cf8b7e7c1ebe07.jpg","text":"TemporaryFile(/tmp/multipartBody4714898275450423344asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670443512,"filename":"image_23012025_23_12_54_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3c142ee19ca3d0f86f729ecb371215ca.jpg","text":"TemporaryFile(/tmp/multipartBody3704764035962765851asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670443512,"filename":"image_23012025_23_12_49_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/354d97d8ed286047e64813313bba640f.jpg","text":"TemporaryFile(/tmp/multipartBody3447044583869984293asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670443512,"filename":"image_23012025_23_14_00_6195.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330884745","file1":"1330884740","file0":"1330884739","file4":"1330884750","file5":"1330884755","file3":"1330884749"},"map_files_photo_id_array":[{"photo_id":"1330884755","filename":"file5"},{"photo_id":"1330884745","filename":"file2"},{"photo_id":"1330884750","filename":"file4"},{"photo_id":"1330884740","filename":"file1"},{"photo_id":"1330884739","filename":"file0"},{"photo_id":"1330884749","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330884750":["hashtag1","hashtag2"]},{"1330884755":["hashtag1","hashtag2"]},{"1330884749":["hashtag1","hashtag2"]},{"1330884740":["hashtag1","hashtag2"]},{"1330884745":["hashtag1","hashtag2"]},{"1330884739":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330884750, 1330884755, 1330884749, 1330884740, 1330884745, 1330884739)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.57578897476196 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:14:03.250080
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/13/image_23012025_23_13_49_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/23/13/image_23012025_23_13_43_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/23/13/image_23012025_23_13_36_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/23/13/image_23012025_23_13_30_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/23/13/image_23012025_23_13_24_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/23/13/image_23012025_23_13_19_6189.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/13/image_23012025_23_13_49_6192.jpg', '/home/nano/Desktop/images/23012025/23/13/image_23012025_23_13_43_6188.jpg', '/home/nano/Desktop/images/23012025/23/13/image_23012025_23_13_36_6191.jpg', '/home/nano/Desktop/images/23012025/23/13/image_23012025_23_13_30_6193.jpg', '/home/nano/Desktop/images/23012025/23/13/image_23012025_23_13_24_5177.jpg', '/home/nano/Desktop/images/23012025/23/13/image_23012025_23_13_19_6189.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/13/image_23012025_23_13_49_6192.jpg
/home/nano/Desktop/images/23012025/23/13/image_23012025_23_13_43_6188.jpg
/home/nano/Desktop/images/23012025/23/13/image_23012025_23_13_36_6191.jpg
/home/nano/Desktop/images/23012025/23/13/image_23012025_23_13_30_6193.jpg
/home/nano/Desktop/images/23012025/23/13/image_23012025_23_13_24_5177.jpg
/home/nano/Desktop/images/23012025/23/13/image_23012025_23_13_19_6189.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330884831","1330884828","1330884813","1330884816","1330884818","1330884832"],"photo_ids_order":["1330884813","1330884816","1330884818","1330884828","1330884831","1330884832"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bd1bd9b4d6dbbdde49d8db1af3d965b6.jpg","text":"TemporaryFile(/tmp/multipartBody1804765381008144354asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670503702,"filename":"image_23012025_23_13_24_5177.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/238bf099709a13d95d14466eb20f3eab.jpg","text":"TemporaryFile(/tmp/multipartBody1120910021530755020asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670503702,"filename":"image_23012025_23_13_30_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4d306dc15bdfa1bf16f9edd72e807683.jpg","text":"TemporaryFile(/tmp/multipartBody6874776437262353451asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670503702,"filename":"image_23012025_23_13_49_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/99a8d38fba89f44761cc71a3b29717d3.jpg","text":"TemporaryFile(/tmp/multipartBody6870958372054811986asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670503702,"filename":"image_23012025_23_13_43_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bc739a68287b695dcc15dcbd9331b623.jpg","text":"TemporaryFile(/tmp/multipartBody77249688718440115asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670503702,"filename":"image_23012025_23_13_36_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d35def1d0b01ad782a216b3d36c6bf85.jpg","text":"TemporaryFile(/tmp/multipartBody2056710272189341972asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670503702,"filename":"image_23012025_23_13_19_6189.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330884818","file1":"1330884816","file0":"1330884813","file4":"1330884831","file5":"1330884832","file3":"1330884828"},"map_files_photo_id_array":[{"photo_id":"1330884832","filename":"file5"},{"photo_id":"1330884818","filename":"file2"},{"photo_id":"1330884831","filename":"file4"},{"photo_id":"1330884816","filename":"file1"},{"photo_id":"1330884813","filename":"file0"},{"photo_id":"1330884828","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330884831":["hashtag1","hashtag2"]},{"1330884828":["hashtag1","hashtag2"]},{"1330884813":["hashtag1","hashtag2"]},{"1330884816":["hashtag1","hashtag2"]},{"1330884818":["hashtag1","hashtag2"]},{"1330884832":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330884831, 1330884828, 1330884813, 1330884816, 1330884818, 1330884832)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.459321975708008 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:15:03.291660
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/14/image_23012025_23_14_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/23/14/image_23012025_23_14_49_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/14/image_23012025_23_14_43_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/23/14/image_23012025_23_14_36_6185.jpg', 2), ('/home/nano/Desktop/images/23012025/23/14/image_23012025_23_14_30_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/23/14/image_23012025_23_14_24_5179.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/14/image_23012025_23_14_55_6188.jpg', '/home/nano/Desktop/images/23012025/23/14/image_23012025_23_14_49_6187.jpg', '/home/nano/Desktop/images/23012025/23/14/image_23012025_23_14_43_6188.jpg', '/home/nano/Desktop/images/23012025/23/14/image_23012025_23_14_36_6185.jpg', '/home/nano/Desktop/images/23012025/23/14/image_23012025_23_14_30_6196.jpg', '/home/nano/Desktop/images/23012025/23/14/image_23012025_23_14_24_5179.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/14/image_23012025_23_14_55_6188.jpg
/home/nano/Desktop/images/23012025/23/14/image_23012025_23_14_49_6187.jpg
/home/nano/Desktop/images/23012025/23/14/image_23012025_23_14_43_6188.jpg
/home/nano/Desktop/images/23012025/23/14/image_23012025_23_14_36_6185.jpg
/home/nano/Desktop/images/23012025/23/14/image_23012025_23_14_30_6196.jpg
/home/nano/Desktop/images/23012025/23/14/image_23012025_23_14_24_5179.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330884885","1330884896","1330885025","1330885019","1330885028","1330884917"],"photo_ids_order":["1330884885","1330884896","1330884917","1330885019","1330885025","1330885028"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e84732dff5740d5e184d329486f4f9ba.jpg","text":"TemporaryFile(/tmp/multipartBody1748791917200330174asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670563705,"filename":"image_23012025_23_14_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/dc30be16291b373505df7eeef312824a.jpg","text":"TemporaryFile(/tmp/multipartBody5668868737953063498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670563705,"filename":"image_23012025_23_14_49_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9fa6230d4e3377946f01e0ca2ca997bf.jpg","text":"TemporaryFile(/tmp/multipartBody1751535803200997964asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670563705,"filename":"image_23012025_23_14_30_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b6b84e4bcea7f3b9dd47d16148aa81f1.jpg","text":"TemporaryFile(/tmp/multipartBody5750155756720069840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670563705,"filename":"image_23012025_23_14_36_6185.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/05e3b9fac185027e9cb584ba49294618.jpg","text":"TemporaryFile(/tmp/multipartBody1375795873718114963asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670563705,"filename":"image_23012025_23_14_24_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bab288b89872c3583ec6e24e8cbe4d9b.jpg","text":"TemporaryFile(/tmp/multipartBody5507313062005664918asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670563705,"filename":"image_23012025_23_14_43_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330884917","file1":"1330884896","file0":"1330884885","file4":"1330885025","file5":"1330885028","file3":"1330885019"},"map_files_photo_id_array":[{"photo_id":"1330885028","filename":"file5"},{"photo_id":"1330884917","filename":"file2"},{"photo_id":"1330885025","filename":"file4"},{"photo_id":"1330884896","filename":"file1"},{"photo_id":"1330884885","filename":"file0"},{"photo_id":"1330885019","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330884885":["hashtag1","hashtag2"]},{"1330884896":["hashtag1","hashtag2"]},{"1330885025":["hashtag1","hashtag2"]},{"1330885019":["hashtag1","hashtag2"]},{"1330885028":["hashtag1","hashtag2"]},{"1330884917":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330884885, 1330884896, 1330885025, 1330885019, 1330885028, 1330884917)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.301161766052246 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:16:03.215835
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/15/image_23012025_23_15_55_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/23/15/image_23012025_23_15_49_6186.jpg', 2), ('/home/nano/Desktop/images/23012025/23/15/image_23012025_23_15_42_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/23/15/image_23012025_23_15_36_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/15/image_23012025_23_15_30_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/23/15/image_23012025_23_15_25_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/15/image_23012025_23_15_55_6186.jpg', '/home/nano/Desktop/images/23012025/23/15/image_23012025_23_15_49_6186.jpg', '/home/nano/Desktop/images/23012025/23/15/image_23012025_23_15_42_6188.jpg', '/home/nano/Desktop/images/23012025/23/15/image_23012025_23_15_36_6187.jpg', '/home/nano/Desktop/images/23012025/23/15/image_23012025_23_15_30_5177.jpg', '/home/nano/Desktop/images/23012025/23/15/image_23012025_23_15_25_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/15/image_23012025_23_15_55_6186.jpg
/home/nano/Desktop/images/23012025/23/15/image_23012025_23_15_49_6186.jpg
/home/nano/Desktop/images/23012025/23/15/image_23012025_23_15_42_6188.jpg
/home/nano/Desktop/images/23012025/23/15/image_23012025_23_15_36_6187.jpg
/home/nano/Desktop/images/23012025/23/15/image_23012025_23_15_30_5177.jpg
/home/nano/Desktop/images/23012025/23/15/image_23012025_23_15_25_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330885110","1330885160","1330885124","1330885174","1330885112","1330885143"],"photo_ids_order":["1330885110","1330885112","1330885124","1330885143","1330885160","1330885174"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a88b71618cadb02fc11b32da2809485a.jpg","text":"TemporaryFile(/tmp/multipartBody144778056673263982asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670623618,"filename":"image_23012025_23_15_55_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6f96c1d8d2c84436b46628d0f962b29a.jpg","text":"TemporaryFile(/tmp/multipartBody846294563851423618asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670623618,"filename":"image_23012025_23_15_30_5177.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a783df3edbd18e8f7dd54d3eaaf49a85.jpg","text":"TemporaryFile(/tmp/multipartBody7763206832607923411asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670623618,"filename":"image_23012025_23_15_42_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/75bd77004bcbb1cb5b937f1b6b8c70ea.jpg","text":"TemporaryFile(/tmp/multipartBody2457602152647218331asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670623618,"filename":"image_23012025_23_15_25_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d6835692d93dfcc9fdbd8c137cf8c1fe.jpg","text":"TemporaryFile(/tmp/multipartBody1926681701194123045asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670623618,"filename":"image_23012025_23_15_49_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4800abbb9ec50b4f69835120272c19aa.jpg","text":"TemporaryFile(/tmp/multipartBody1738883414055972671asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670623618,"filename":"image_23012025_23_15_36_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330885124","file1":"1330885112","file0":"1330885110","file4":"1330885160","file5":"1330885174","file3":"1330885143"},"map_files_photo_id_array":[{"photo_id":"1330885174","filename":"file5"},{"photo_id":"1330885124","filename":"file2"},{"photo_id":"1330885160","filename":"file4"},{"photo_id":"1330885112","filename":"file1"},{"photo_id":"1330885110","filename":"file0"},{"photo_id":"1330885143","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330885110":["hashtag1","hashtag2"]},{"1330885160":["hashtag1","hashtag2"]},{"1330885124":["hashtag1","hashtag2"]},{"1330885174":["hashtag1","hashtag2"]},{"1330885112":["hashtag1","hashtag2"]},{"1330885143":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330885110, 1330885160, 1330885124, 1330885174, 1330885112, 1330885143)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.111053466796875 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:17:02.413467
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/16/image_23012025_23_16_55_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/23/16/image_23012025_23_16_48_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/23/16/image_23012025_23_16_42_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/16/image_23012025_23_16_36_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/23/16/image_23012025_23_16_30_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/23/16/image_23012025_23_16_25_6193.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/16/image_23012025_23_16_55_6190.jpg', '/home/nano/Desktop/images/23012025/23/16/image_23012025_23_16_48_6191.jpg', '/home/nano/Desktop/images/23012025/23/16/image_23012025_23_16_42_6187.jpg', '/home/nano/Desktop/images/23012025/23/16/image_23012025_23_16_36_6191.jpg', '/home/nano/Desktop/images/23012025/23/16/image_23012025_23_16_30_5181.jpg', '/home/nano/Desktop/images/23012025/23/16/image_23012025_23_16_25_6193.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/16/image_23012025_23_16_55_6190.jpg
/home/nano/Desktop/images/23012025/23/16/image_23012025_23_16_48_6191.jpg
/home/nano/Desktop/images/23012025/23/16/image_23012025_23_16_42_6187.jpg
/home/nano/Desktop/images/23012025/23/16/image_23012025_23_16_36_6191.jpg
/home/nano/Desktop/images/23012025/23/16/image_23012025_23_16_30_5181.jpg
/home/nano/Desktop/images/23012025/23/16/image_23012025_23_16_25_6193.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330885212","1330885215","1330885217","1330885208","1330885204","1330885221"],"photo_ids_order":["1330885204","1330885208","1330885212","1330885215","1330885217","1330885221"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cf7d58ea6334eac7d0c6fa3dd822ac2f.jpg","text":"TemporaryFile(/tmp/multipartBody4414639864919620036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670682934,"filename":"image_23012025_23_16_42_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a51188e185ee0c054a261c01e8af23cf.jpg","text":"TemporaryFile(/tmp/multipartBody7831357732425906918asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670682934,"filename":"image_23012025_23_16_36_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6f244f405808ebefb575654aa0dc8b89.jpg","text":"TemporaryFile(/tmp/multipartBody5298244645833882351asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670682934,"filename":"image_23012025_23_16_30_5181.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/600acef0717192bbf0c390e81b10d07d.jpg","text":"TemporaryFile(/tmp/multipartBody3325053999250125662asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670682934,"filename":"image_23012025_23_16_48_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4dab82e1fb0308e610c5b34541e330d5.jpg","text":"TemporaryFile(/tmp/multipartBody6826203884954080176asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670682934,"filename":"image_23012025_23_16_55_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/810c5d3f3f8a4cc0003d9cd0637c3ac7.jpg","text":"TemporaryFile(/tmp/multipartBody6010209499277065826asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670682934,"filename":"image_23012025_23_16_25_6193.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330885212","file1":"1330885208","file0":"1330885204","file4":"1330885217","file5":"1330885221","file3":"1330885215"},"map_files_photo_id_array":[{"photo_id":"1330885221","filename":"file5"},{"photo_id":"1330885212","filename":"file2"},{"photo_id":"1330885217","filename":"file4"},{"photo_id":"1330885208","filename":"file1"},{"photo_id":"1330885204","filename":"file0"},{"photo_id":"1330885215","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330885212":["hashtag1","hashtag2"]},{"1330885215":["hashtag1","hashtag2"]},{"1330885217":["hashtag1","hashtag2"]},{"1330885208":["hashtag1","hashtag2"]},{"1330885204":["hashtag1","hashtag2"]},{"1330885221":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330885212, 1330885215, 1330885217, 1330885208, 1330885204, 1330885221)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.982200145721436 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:18:02.448097
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/17/image_23012025_23_17_55_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/23/17/image_23012025_23_17_48_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/17/image_23012025_23_17_42_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/23/17/image_23012025_23_17_36_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/23/17/image_23012025_23_17_31_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/23/17/image_23012025_23_17_25_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/17/image_23012025_23_17_55_6189.jpg', '/home/nano/Desktop/images/23012025/23/17/image_23012025_23_17_48_6187.jpg', '/home/nano/Desktop/images/23012025/23/17/image_23012025_23_17_42_6193.jpg', '/home/nano/Desktop/images/23012025/23/17/image_23012025_23_17_36_5183.jpg', '/home/nano/Desktop/images/23012025/23/17/image_23012025_23_17_31_6191.jpg', '/home/nano/Desktop/images/23012025/23/17/image_23012025_23_17_25_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/17/image_23012025_23_17_55_6189.jpg
/home/nano/Desktop/images/23012025/23/17/image_23012025_23_17_48_6187.jpg
/home/nano/Desktop/images/23012025/23/17/image_23012025_23_17_42_6193.jpg
/home/nano/Desktop/images/23012025/23/17/image_23012025_23_17_36_5183.jpg
/home/nano/Desktop/images/23012025/23/17/image_23012025_23_17_31_6191.jpg
/home/nano/Desktop/images/23012025/23/17/image_23012025_23_17_25_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330885253","1330885244","1330885252","1330885246","1330885249","1330885254"],"photo_ids_order":["1330885244","1330885246","1330885249","1330885252","1330885253","1330885254"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/319ac7bbfec4d9f6538c6158641e5cbb.jpg","text":"TemporaryFile(/tmp/multipartBody3512639029573139285asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670742904,"filename":"image_23012025_23_17_31_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b8a3cbafbc1485e5fa338716c99ee735.jpg","text":"TemporaryFile(/tmp/multipartBody3962425628934276583asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670742904,"filename":"image_23012025_23_17_55_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a9c1a6b6d51b7c6aad89f5de7b44771f.jpg","text":"TemporaryFile(/tmp/multipartBody6731960414301789096asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670742904,"filename":"image_23012025_23_17_36_5183.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b37dffd4269e2d41180568a18bf6fc82.jpg","text":"TemporaryFile(/tmp/multipartBody9092539204346852546asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670742904,"filename":"image_23012025_23_17_48_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9864011c3398505b24ae78ff3526d646.jpg","text":"TemporaryFile(/tmp/multipartBody4717788364140610766asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670742904,"filename":"image_23012025_23_17_42_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ee047e01c318b9afa5b97668df26ea76.jpg","text":"TemporaryFile(/tmp/multipartBody5189888405813973392asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670742904,"filename":"image_23012025_23_17_25_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330885249","file1":"1330885246","file0":"1330885244","file4":"1330885253","file5":"1330885254","file3":"1330885252"},"map_files_photo_id_array":[{"photo_id":"1330885254","filename":"file5"},{"photo_id":"1330885249","filename":"file2"},{"photo_id":"1330885253","filename":"file4"},{"photo_id":"1330885246","filename":"file1"},{"photo_id":"1330885244","filename":"file0"},{"photo_id":"1330885252","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330885253":["hashtag1","hashtag2"]},{"1330885244":["hashtag1","hashtag2"]},{"1330885252":["hashtag1","hashtag2"]},{"1330885246":["hashtag1","hashtag2"]},{"1330885249":["hashtag1","hashtag2"]},{"1330885254":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330885253, 1330885244, 1330885252, 1330885246, 1330885249, 1330885254)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.975807189941406 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:19:02.951260
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/18/image_23012025_23_18_55_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/23/18/image_23012025_23_18_48_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/23/18/image_23012025_23_18_42_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/23/18/image_23012025_23_18_36_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/23/18/image_23012025_23_18_30_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/23/18/image_23012025_23_18_25_6191.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/18/image_23012025_23_18_55_6199.jpg', '/home/nano/Desktop/images/23012025/23/18/image_23012025_23_18_48_6190.jpg', '/home/nano/Desktop/images/23012025/23/18/image_23012025_23_18_42_6194.jpg', '/home/nano/Desktop/images/23012025/23/18/image_23012025_23_18_36_6194.jpg', '/home/nano/Desktop/images/23012025/23/18/image_23012025_23_18_30_5186.jpg', '/home/nano/Desktop/images/23012025/23/18/image_23012025_23_18_25_6191.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/18/image_23012025_23_18_55_6199.jpg
/home/nano/Desktop/images/23012025/23/18/image_23012025_23_18_48_6190.jpg
/home/nano/Desktop/images/23012025/23/18/image_23012025_23_18_42_6194.jpg
/home/nano/Desktop/images/23012025/23/18/image_23012025_23_18_36_6194.jpg
/home/nano/Desktop/images/23012025/23/18/image_23012025_23_18_30_5186.jpg
/home/nano/Desktop/images/23012025/23/18/image_23012025_23_18_25_6191.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330885286","1330885328","1330885307","1330885297","1330885315","1330885293"],"photo_ids_order":["1330885286","1330885293","1330885297","1330885307","1330885315","1330885328"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/868403f1f8de66cff336509ce582bb54.jpg","text":"TemporaryFile(/tmp/multipartBody6860228729544397630asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670803626,"filename":"image_23012025_23_18_55_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2db73bd2406a3f7aa801caa005b04f78.jpg","text":"TemporaryFile(/tmp/multipartBody3934253815082146331asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670803626,"filename":"image_23012025_23_18_25_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6421803b2029a272313741b764db2a90.jpg","text":"TemporaryFile(/tmp/multipartBody1488896087397462730asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670803626,"filename":"image_23012025_23_18_36_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0ec7696893316a4b7dcb96ae0c1cd61e.jpg","text":"TemporaryFile(/tmp/multipartBody6861311825449699191asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670803626,"filename":"image_23012025_23_18_42_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0a282826aa52d162ac431a660c799116.jpg","text":"TemporaryFile(/tmp/multipartBody4126537159758615885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670803626,"filename":"image_23012025_23_18_30_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/214fa920c312e65e5b82c8d470f9c8c3.jpg","text":"TemporaryFile(/tmp/multipartBody3292952967975731782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670803626,"filename":"image_23012025_23_18_48_6190.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330885297","file1":"1330885293","file0":"1330885286","file4":"1330885315","file5":"1330885328","file3":"1330885307"},"map_files_photo_id_array":[{"photo_id":"1330885328","filename":"file5"},{"photo_id":"1330885297","filename":"file2"},{"photo_id":"1330885315","filename":"file4"},{"photo_id":"1330885293","filename":"file1"},{"photo_id":"1330885286","filename":"file0"},{"photo_id":"1330885307","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330885286":["hashtag1","hashtag2"]},{"1330885328":["hashtag1","hashtag2"]},{"1330885307":["hashtag1","hashtag2"]},{"1330885297":["hashtag1","hashtag2"]},{"1330885315":["hashtag1","hashtag2"]},{"1330885293":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330885286, 1330885328, 1330885307, 1330885297, 1330885315, 1330885293)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.951844692230225 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:20:02.661704
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/19/image_23012025_23_19_55_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/23/19/image_23012025_23_19_49_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/23/19/image_23012025_23_19_42_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/23/19/image_23012025_23_19_36_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/23/19/image_23012025_23_19_30_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/23/19/image_23012025_23_19_25_6194.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/19/image_23012025_23_19_55_6197.jpg', '/home/nano/Desktop/images/23012025/23/19/image_23012025_23_19_49_6192.jpg', '/home/nano/Desktop/images/23012025/23/19/image_23012025_23_19_42_6192.jpg', '/home/nano/Desktop/images/23012025/23/19/image_23012025_23_19_36_6197.jpg', '/home/nano/Desktop/images/23012025/23/19/image_23012025_23_19_30_5182.jpg', '/home/nano/Desktop/images/23012025/23/19/image_23012025_23_19_25_6194.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/19/image_23012025_23_19_55_6197.jpg
/home/nano/Desktop/images/23012025/23/19/image_23012025_23_19_49_6192.jpg
/home/nano/Desktop/images/23012025/23/19/image_23012025_23_19_42_6192.jpg
/home/nano/Desktop/images/23012025/23/19/image_23012025_23_19_36_6197.jpg
/home/nano/Desktop/images/23012025/23/19/image_23012025_23_19_30_5182.jpg
/home/nano/Desktop/images/23012025/23/19/image_23012025_23_19_25_6194.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330885382","1330885385","1330885373","1330885390","1330885387","1330885378"],"photo_ids_order":["1330885373","1330885378","1330885382","1330885385","1330885387","1330885390"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6d52df58aa00c1cc03a6af01b029dfd6.jpg","text":"TemporaryFile(/tmp/multipartBody4657503998316308450asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670863383,"filename":"image_23012025_23_19_42_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5d3cbd5d89ecaa71905b5e66daea5792.jpg","text":"TemporaryFile(/tmp/multipartBody4679810739284615288asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670863383,"filename":"image_23012025_23_19_36_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/da62457f60357bd974a005861ba7fe35.jpg","text":"TemporaryFile(/tmp/multipartBody7998974646404824661asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670863383,"filename":"image_23012025_23_19_55_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/15af2230854bcdcddc7879da5ccdbfa0.jpg","text":"TemporaryFile(/tmp/multipartBody1531951183545598153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670863383,"filename":"image_23012025_23_19_25_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1684bd367cb1b93dc2522fa6eb70f6ef.jpg","text":"TemporaryFile(/tmp/multipartBody4735336449409175030asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670863383,"filename":"image_23012025_23_19_30_5182.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e71757d6d921818a808092c071e31c78.jpg","text":"TemporaryFile(/tmp/multipartBody7663452921693509016asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670863383,"filename":"image_23012025_23_19_49_6192.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330885382","file1":"1330885378","file0":"1330885373","file4":"1330885387","file5":"1330885390","file3":"1330885385"},"map_files_photo_id_array":[{"photo_id":"1330885390","filename":"file5"},{"photo_id":"1330885382","filename":"file2"},{"photo_id":"1330885387","filename":"file4"},{"photo_id":"1330885378","filename":"file1"},{"photo_id":"1330885373","filename":"file0"},{"photo_id":"1330885385","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330885382":["hashtag1","hashtag2"]},{"1330885385":["hashtag1","hashtag2"]},{"1330885373":["hashtag1","hashtag2"]},{"1330885390":["hashtag1","hashtag2"]},{"1330885387":["hashtag1","hashtag2"]},{"1330885378":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330885382, 1330885385, 1330885373, 1330885390, 1330885387, 1330885378)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.47536277770996 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:21:02.902951
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/20/image_23012025_23_20_49_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/23/20/image_23012025_23_20_42_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/23/20/image_23012025_23_20_36_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/23/20/image_23012025_23_20_30_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/23/20/image_23012025_23_20_25_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/23/20/image_23012025_23_20_19_6189.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/20/image_23012025_23_20_49_6192.jpg', '/home/nano/Desktop/images/23012025/23/20/image_23012025_23_20_42_6189.jpg', '/home/nano/Desktop/images/23012025/23/20/image_23012025_23_20_36_6191.jpg', '/home/nano/Desktop/images/23012025/23/20/image_23012025_23_20_30_5178.jpg', '/home/nano/Desktop/images/23012025/23/20/image_23012025_23_20_25_6206.jpg', '/home/nano/Desktop/images/23012025/23/20/image_23012025_23_20_19_6189.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/20/image_23012025_23_20_49_6192.jpg
/home/nano/Desktop/images/23012025/23/20/image_23012025_23_20_42_6189.jpg
/home/nano/Desktop/images/23012025/23/20/image_23012025_23_20_36_6191.jpg
/home/nano/Desktop/images/23012025/23/20/image_23012025_23_20_30_5178.jpg
/home/nano/Desktop/images/23012025/23/20/image_23012025_23_20_25_6206.jpg
/home/nano/Desktop/images/23012025/23/20/image_23012025_23_20_19_6189.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330885430","1330885424","1330885433","1330885421","1330885418","1330885428"],"photo_ids_order":["1330885418","1330885421","1330885424","1330885428","1330885430","1330885433"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a191153e4e775d76c24316252cc24cec.jpg","text":"TemporaryFile(/tmp/multipartBody5272363643220967660asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670923385,"filename":"image_23012025_23_20_25_6206.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8a189f6a0406a6f5c6fe7681951ade1f.jpg","text":"TemporaryFile(/tmp/multipartBody3907927617761274736asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670923385,"filename":"image_23012025_23_20_36_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9e7ccb73c71b73fa47a072c4bb9eaf07.jpg","text":"TemporaryFile(/tmp/multipartBody1489705210246936864asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670923385,"filename":"image_23012025_23_20_19_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/918d1552b9dad8b7918d0f2e6d55af26.jpg","text":"TemporaryFile(/tmp/multipartBody2843652376041353926asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670923385,"filename":"image_23012025_23_20_42_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/38a47998d1ac0fa50730cd41add7e74b.jpg","text":"TemporaryFile(/tmp/multipartBody898159379143240058asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670923385,"filename":"image_23012025_23_20_49_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5fb2f8d64aeaae06aeab00214e142f8f.jpg","text":"TemporaryFile(/tmp/multipartBody7155065707080393063asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670923385,"filename":"image_23012025_23_20_30_5178.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330885424","file1":"1330885421","file0":"1330885418","file4":"1330885430","file5":"1330885433","file3":"1330885428"},"map_files_photo_id_array":[{"photo_id":"1330885433","filename":"file5"},{"photo_id":"1330885424","filename":"file2"},{"photo_id":"1330885430","filename":"file4"},{"photo_id":"1330885421","filename":"file1"},{"photo_id":"1330885418","filename":"file0"},{"photo_id":"1330885428","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330885430":["hashtag1","hashtag2"]},{"1330885424":["hashtag1","hashtag2"]},{"1330885433":["hashtag1","hashtag2"]},{"1330885421":["hashtag1","hashtag2"]},{"1330885418":["hashtag1","hashtag2"]},{"1330885428":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330885430, 1330885424, 1330885433, 1330885421, 1330885418, 1330885428)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.448177337646484 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:22:02.790305
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/21/image_23012025_23_21_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/23/21/image_23012025_23_21_49_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/23/21/image_23012025_23_21_42_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/23/21/image_23012025_23_21_36_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/23/21/image_23012025_23_21_30_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/23/21/image_23012025_23_21_25_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/21/image_23012025_23_21_55_6188.jpg', '/home/nano/Desktop/images/23012025/23/21/image_23012025_23_21_49_6188.jpg', '/home/nano/Desktop/images/23012025/23/21/image_23012025_23_21_42_6190.jpg', '/home/nano/Desktop/images/23012025/23/21/image_23012025_23_21_36_6201.jpg', '/home/nano/Desktop/images/23012025/23/21/image_23012025_23_21_30_5186.jpg', '/home/nano/Desktop/images/23012025/23/21/image_23012025_23_21_25_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/21/image_23012025_23_21_55_6188.jpg
/home/nano/Desktop/images/23012025/23/21/image_23012025_23_21_49_6188.jpg
/home/nano/Desktop/images/23012025/23/21/image_23012025_23_21_42_6190.jpg
/home/nano/Desktop/images/23012025/23/21/image_23012025_23_21_36_6201.jpg
/home/nano/Desktop/images/23012025/23/21/image_23012025_23_21_30_5186.jpg
/home/nano/Desktop/images/23012025/23/21/image_23012025_23_21_25_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330886651","1330885506","1330885775","1330886222","1330886470","1330886002"],"photo_ids_order":["1330885506","1330885775","1330886002","1330886222","1330886470","1330886651"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fa9a390c2f02969e57bfe5452d7f1f3c.jpg","text":"TemporaryFile(/tmp/multipartBody2429531789441765420asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670983283,"filename":"image_23012025_23_21_25_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/efd7d38fd2d874d6926166437ba0ef60.jpg","text":"TemporaryFile(/tmp/multipartBody9062021928183201417asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670983283,"filename":"image_23012025_23_21_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b2cf00ec6b535ce7f3876efcfd85aa8a.jpg","text":"TemporaryFile(/tmp/multipartBody7244345941423770482asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670983283,"filename":"image_23012025_23_21_49_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0e2e498fe2714782a9e4db1f01398ed9.jpg","text":"TemporaryFile(/tmp/multipartBody1570816139608113233asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670983283,"filename":"image_23012025_23_21_36_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/08f829e66462f83999aa452199811e7f.jpg","text":"TemporaryFile(/tmp/multipartBody3359989854910032496asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670983283,"filename":"image_23012025_23_21_30_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d6972457998dfba3ce35410e27bc38b7.jpg","text":"TemporaryFile(/tmp/multipartBody5673663948740846857asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737670983283,"filename":"image_23012025_23_21_42_6190.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330886002","file1":"1330885775","file0":"1330885506","file4":"1330886470","file5":"1330886651","file3":"1330886222"},"map_files_photo_id_array":[{"photo_id":"1330886651","filename":"file5"},{"photo_id":"1330886002","filename":"file2"},{"photo_id":"1330886470","filename":"file4"},{"photo_id":"1330885775","filename":"file1"},{"photo_id":"1330885506","filename":"file0"},{"photo_id":"1330886222","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330886651":["hashtag1","hashtag2"]},{"1330885506":["hashtag1","hashtag2"]},{"1330885775":["hashtag1","hashtag2"]},{"1330886222":["hashtag1","hashtag2"]},{"1330886470":["hashtag1","hashtag2"]},{"1330886002":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330886651, 1330885506, 1330885775, 1330886222, 1330886470, 1330886002)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.154458045959473 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:23:03.120624
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/22/image_23012025_23_22_55_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/23/22/image_23012025_23_22_49_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/23/22/image_23012025_23_22_42_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/23/22/image_23012025_23_22_36_5226.jpg', 2), ('/home/nano/Desktop/images/23012025/23/22/image_23012025_23_22_31_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/23/22/image_23012025_23_22_25_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/22/image_23012025_23_22_55_6193.jpg', '/home/nano/Desktop/images/23012025/23/22/image_23012025_23_22_49_6198.jpg', '/home/nano/Desktop/images/23012025/23/22/image_23012025_23_22_42_6197.jpg', '/home/nano/Desktop/images/23012025/23/22/image_23012025_23_22_36_5226.jpg', '/home/nano/Desktop/images/23012025/23/22/image_23012025_23_22_31_6193.jpg', '/home/nano/Desktop/images/23012025/23/22/image_23012025_23_22_25_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/22/image_23012025_23_22_55_6193.jpg
/home/nano/Desktop/images/23012025/23/22/image_23012025_23_22_49_6198.jpg
/home/nano/Desktop/images/23012025/23/22/image_23012025_23_22_42_6197.jpg
/home/nano/Desktop/images/23012025/23/22/image_23012025_23_22_36_5226.jpg
/home/nano/Desktop/images/23012025/23/22/image_23012025_23_22_31_6193.jpg
/home/nano/Desktop/images/23012025/23/22/image_23012025_23_22_25_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330886687","1330886680","1330886683","1330886694","1330886700","1330886690"],"photo_ids_order":["1330886680","1330886683","1330886687","1330886690","1330886694","1330886700"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6514c24598e02d992c6aaa3da8534d23.jpg","text":"TemporaryFile(/tmp/multipartBody6375485268075063939asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671043782,"filename":"image_23012025_23_22_42_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/78299f953735465b02a21bbce794bf34.jpg","text":"TemporaryFile(/tmp/multipartBody6290959274012775239asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671043782,"filename":"image_23012025_23_22_55_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a28d00744ecf26b22bce9e85fdad013e.jpg","text":"TemporaryFile(/tmp/multipartBody7061994879533468236asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671043782,"filename":"image_23012025_23_22_49_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/13e39ccbd5966397f503e3a74dc40cf8.jpg","text":"TemporaryFile(/tmp/multipartBody29735220408408216asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671043782,"filename":"image_23012025_23_22_31_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4ac6d1105c40349b16c630f031556be8.jpg","text":"TemporaryFile(/tmp/multipartBody1282144020374940235asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671043782,"filename":"image_23012025_23_22_25_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/688b287fc16dbfa5b041640c77bf66ae.jpg","text":"TemporaryFile(/tmp/multipartBody6337820241348846848asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671043782,"filename":"image_23012025_23_22_36_5226.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330886687","file1":"1330886683","file0":"1330886680","file4":"1330886694","file5":"1330886700","file3":"1330886690"},"map_files_photo_id_array":[{"photo_id":"1330886700","filename":"file5"},{"photo_id":"1330886687","filename":"file2"},{"photo_id":"1330886694","filename":"file4"},{"photo_id":"1330886683","filename":"file1"},{"photo_id":"1330886680","filename":"file0"},{"photo_id":"1330886690","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330886687":["hashtag1","hashtag2"]},{"1330886680":["hashtag1","hashtag2"]},{"1330886683":["hashtag1","hashtag2"]},{"1330886694":["hashtag1","hashtag2"]},{"1330886700":["hashtag1","hashtag2"]},{"1330886690":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330886687, 1330886680, 1330886683, 1330886694, 1330886700, 1330886690)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.820216417312622 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:24:03.527145
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/23/image_23012025_23_24_01_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/23/23/image_23012025_23_23_48_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/23/23/image_23012025_23_23_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/23/23/image_23012025_23_23_36_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/23/23/image_23012025_23_23_31_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/23/23/image_23012025_23_23_25_6193.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/23/image_23012025_23_24_01_6189.jpg', '/home/nano/Desktop/images/23012025/23/23/image_23012025_23_23_48_6200.jpg', '/home/nano/Desktop/images/23012025/23/23/image_23012025_23_23_42_6196.jpg', '/home/nano/Desktop/images/23012025/23/23/image_23012025_23_23_36_5181.jpg', '/home/nano/Desktop/images/23012025/23/23/image_23012025_23_23_31_6192.jpg', '/home/nano/Desktop/images/23012025/23/23/image_23012025_23_23_25_6193.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/23/image_23012025_23_24_01_6189.jpg
/home/nano/Desktop/images/23012025/23/23/image_23012025_23_23_48_6200.jpg
/home/nano/Desktop/images/23012025/23/23/image_23012025_23_23_42_6196.jpg
/home/nano/Desktop/images/23012025/23/23/image_23012025_23_23_36_5181.jpg
/home/nano/Desktop/images/23012025/23/23/image_23012025_23_23_31_6192.jpg
/home/nano/Desktop/images/23012025/23/23/image_23012025_23_23_25_6193.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330887230","1330887134","1330887136","1330887153","1330887201","1330887242"],"photo_ids_order":["1330887134","1330887136","1330887153","1330887201","1330887230","1330887242"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8bd3f8b1ac292c189123c37edf15ef54.jpg","text":"TemporaryFile(/tmp/multipartBody7584656378469818553asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671104081,"filename":"image_23012025_23_23_31_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a784160d7fe0ddf5323e08758c14c377.jpg","text":"TemporaryFile(/tmp/multipartBody2404748148214491658asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671104081,"filename":"image_23012025_23_24_01_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e591fd43fc8919f28c32b1efe5953308.jpg","text":"TemporaryFile(/tmp/multipartBody5119760558595313474asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671104081,"filename":"image_23012025_23_23_48_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ab5cd5645f443508a9ccdb32560678ee.jpg","text":"TemporaryFile(/tmp/multipartBody1563123229978386280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671104081,"filename":"image_23012025_23_23_42_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/97c1796e1e6e3772ba820ea9bdf6a493.jpg","text":"TemporaryFile(/tmp/multipartBody6185870534335900620asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671104081,"filename":"image_23012025_23_23_36_5181.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/69938b8021b0630a1fa8fdb4ab6cd1d4.jpg","text":"TemporaryFile(/tmp/multipartBody6924492349784464022asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671104081,"filename":"image_23012025_23_23_25_6193.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330887153","file1":"1330887136","file0":"1330887134","file4":"1330887230","file5":"1330887242","file3":"1330887201"},"map_files_photo_id_array":[{"photo_id":"1330887242","filename":"file5"},{"photo_id":"1330887153","filename":"file2"},{"photo_id":"1330887230","filename":"file4"},{"photo_id":"1330887136","filename":"file1"},{"photo_id":"1330887134","filename":"file0"},{"photo_id":"1330887201","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330887230":["hashtag1","hashtag2"]},{"1330887134":["hashtag1","hashtag2"]},{"1330887136":["hashtag1","hashtag2"]},{"1330887153":["hashtag1","hashtag2"]},{"1330887201":["hashtag1","hashtag2"]},{"1330887242":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330887230, 1330887134, 1330887136, 1330887153, 1330887201, 1330887242)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.954026460647583 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:25:03.328564
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/24/image_23012025_23_24_55_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/23/24/image_23012025_23_24_48_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/23/24/image_23012025_23_24_42_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/23/24/image_23012025_23_24_36_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/24/image_23012025_23_24_31_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/23/24/image_23012025_23_24_25_6237.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/24/image_23012025_23_24_55_6198.jpg', '/home/nano/Desktop/images/23012025/23/24/image_23012025_23_24_48_6197.jpg', '/home/nano/Desktop/images/23012025/23/24/image_23012025_23_24_42_6197.jpg', '/home/nano/Desktop/images/23012025/23/24/image_23012025_23_24_36_5187.jpg', '/home/nano/Desktop/images/23012025/23/24/image_23012025_23_24_31_6197.jpg', '/home/nano/Desktop/images/23012025/23/24/image_23012025_23_24_25_6237.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/24/image_23012025_23_24_55_6198.jpg
/home/nano/Desktop/images/23012025/23/24/image_23012025_23_24_48_6197.jpg
/home/nano/Desktop/images/23012025/23/24/image_23012025_23_24_42_6197.jpg
/home/nano/Desktop/images/23012025/23/24/image_23012025_23_24_36_5187.jpg
/home/nano/Desktop/images/23012025/23/24/image_23012025_23_24_31_6197.jpg
/home/nano/Desktop/images/23012025/23/24/image_23012025_23_24_25_6237.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330887334","1330887337","1330887342","1330887351","1330887345","1330887348"],"photo_ids_order":["1330887334","1330887337","1330887342","1330887345","1330887348","1330887351"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5b80c59f32c08c51df888330ca77d25d.jpg","text":"TemporaryFile(/tmp/multipartBody2170762293765003574asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671163998,"filename":"image_23012025_23_24_55_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/824c1868c58c7b840558819fe61870f7.jpg","text":"TemporaryFile(/tmp/multipartBody6030289055779637008asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671163998,"filename":"image_23012025_23_24_48_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fabc4535af5eb718dde4c47fa072baca.jpg","text":"TemporaryFile(/tmp/multipartBody8239641121057559476asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671163998,"filename":"image_23012025_23_24_42_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5551836a28cd06839f84902bccacd5a4.jpg","text":"TemporaryFile(/tmp/multipartBody2309648915298748153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671163998,"filename":"image_23012025_23_24_25_6237.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/43ee54dd54da23b2bd3b032445f02ce5.jpg","text":"TemporaryFile(/tmp/multipartBody6933407693317651203asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671163998,"filename":"image_23012025_23_24_36_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4f5ac99bdbffd562a57a0436756ec6d9.jpg","text":"TemporaryFile(/tmp/multipartBody9204241164655425939asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671163998,"filename":"image_23012025_23_24_31_6197.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330887342","file1":"1330887337","file0":"1330887334","file4":"1330887348","file5":"1330887351","file3":"1330887345"},"map_files_photo_id_array":[{"photo_id":"1330887351","filename":"file5"},{"photo_id":"1330887342","filename":"file2"},{"photo_id":"1330887348","filename":"file4"},{"photo_id":"1330887337","filename":"file1"},{"photo_id":"1330887334","filename":"file0"},{"photo_id":"1330887345","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330887334":["hashtag1","hashtag2"]},{"1330887337":["hashtag1","hashtag2"]},{"1330887342":["hashtag1","hashtag2"]},{"1330887351":["hashtag1","hashtag2"]},{"1330887345":["hashtag1","hashtag2"]},{"1330887348":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330887334, 1330887337, 1330887342, 1330887351, 1330887345, 1330887348)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.93760633468628 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:26:03.379107
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/25/image_23012025_23_25_48_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/23/25/image_23012025_23_25_42_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/23/25/image_23012025_23_25_36_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/23/25/image_23012025_23_25_31_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/23/25/image_23012025_23_25_18_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/23/25/image_23012025_23_25_12_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/25/image_23012025_23_25_48_6198.jpg', '/home/nano/Desktop/images/23012025/23/25/image_23012025_23_25_42_6197.jpg', '/home/nano/Desktop/images/23012025/23/25/image_23012025_23_25_36_5186.jpg', '/home/nano/Desktop/images/23012025/23/25/image_23012025_23_25_31_6197.jpg', '/home/nano/Desktop/images/23012025/23/25/image_23012025_23_25_18_6197.jpg', '/home/nano/Desktop/images/23012025/23/25/image_23012025_23_25_12_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/25/image_23012025_23_25_48_6198.jpg
/home/nano/Desktop/images/23012025/23/25/image_23012025_23_25_42_6197.jpg
/home/nano/Desktop/images/23012025/23/25/image_23012025_23_25_36_5186.jpg
/home/nano/Desktop/images/23012025/23/25/image_23012025_23_25_31_6197.jpg
/home/nano/Desktop/images/23012025/23/25/image_23012025_23_25_18_6197.jpg
/home/nano/Desktop/images/23012025/23/25/image_23012025_23_25_12_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330887423","1330887417","1330887426","1330887420","1330887414","1330887434"],"photo_ids_order":["1330887414","1330887417","1330887420","1330887423","1330887426","1330887434"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d4058724654f194933b2b741ee839615.jpg","text":"TemporaryFile(/tmp/multipartBody4074513557603701481asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671224086,"filename":"image_23012025_23_25_31_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/84eed2dca08bc6ca032377e4102fc657.jpg","text":"TemporaryFile(/tmp/multipartBody3161753660387669967asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671224086,"filename":"image_23012025_23_25_42_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f9b5ecc050cf1c68710826881f99583f.jpg","text":"TemporaryFile(/tmp/multipartBody3339005345185192368asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671224086,"filename":"image_23012025_23_25_18_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cc560f5de058f7a3c5adab5d2df8fcc8.jpg","text":"TemporaryFile(/tmp/multipartBody7768976900145472984asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671224086,"filename":"image_23012025_23_25_36_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bd48a74a35552a2ffd93d9dc55595178.jpg","text":"TemporaryFile(/tmp/multipartBody5055714275404399587asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671224086,"filename":"image_23012025_23_25_48_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2983d913bec980128d8d896d9792e431.jpg","text":"TemporaryFile(/tmp/multipartBody3197404486695111158asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671224086,"filename":"image_23012025_23_25_12_6195.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330887420","file1":"1330887417","file0":"1330887414","file4":"1330887426","file5":"1330887434","file3":"1330887423"},"map_files_photo_id_array":[{"photo_id":"1330887434","filename":"file5"},{"photo_id":"1330887420","filename":"file2"},{"photo_id":"1330887426","filename":"file4"},{"photo_id":"1330887417","filename":"file1"},{"photo_id":"1330887414","filename":"file0"},{"photo_id":"1330887423","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330887423":["hashtag1","hashtag2"]},{"1330887417":["hashtag1","hashtag2"]},{"1330887426":["hashtag1","hashtag2"]},{"1330887420":["hashtag1","hashtag2"]},{"1330887414":["hashtag1","hashtag2"]},{"1330887434":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330887423, 1330887417, 1330887426, 1330887420, 1330887414, 1330887434)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.39839220046997 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:27:02.688775
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/26/image_23012025_23_26_55_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/23/26/image_23012025_23_26_48_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/23/26/image_23012025_23_26_42_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/23/26/image_23012025_23_26_36_5184.jpg', 2), ('/home/nano/Desktop/images/23012025/23/26/image_23012025_23_26_31_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/23/26/image_23012025_23_26_25_6208.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/26/image_23012025_23_26_55_6199.jpg', '/home/nano/Desktop/images/23012025/23/26/image_23012025_23_26_48_6197.jpg', '/home/nano/Desktop/images/23012025/23/26/image_23012025_23_26_42_6193.jpg', '/home/nano/Desktop/images/23012025/23/26/image_23012025_23_26_36_5184.jpg', '/home/nano/Desktop/images/23012025/23/26/image_23012025_23_26_31_6194.jpg', '/home/nano/Desktop/images/23012025/23/26/image_23012025_23_26_25_6208.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/26/image_23012025_23_26_55_6199.jpg
/home/nano/Desktop/images/23012025/23/26/image_23012025_23_26_48_6197.jpg
/home/nano/Desktop/images/23012025/23/26/image_23012025_23_26_42_6193.jpg
/home/nano/Desktop/images/23012025/23/26/image_23012025_23_26_36_5184.jpg
/home/nano/Desktop/images/23012025/23/26/image_23012025_23_26_31_6194.jpg
/home/nano/Desktop/images/23012025/23/26/image_23012025_23_26_25_6208.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330887536","1330887515","1330887487","1330887538","1330887531","1330887507"],"photo_ids_order":["1330887487","1330887507","1330887515","1330887531","1330887536","1330887538"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7ec6aefdf616cdfa9ad7326b2909ce14.jpg","text":"TemporaryFile(/tmp/multipartBody6599739705572475111asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671283515,"filename":"image_23012025_23_26_31_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4f0355ab8f25a869f4f33b2324858355.jpg","text":"TemporaryFile(/tmp/multipartBody8656339307788690549asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671283515,"filename":"image_23012025_23_26_42_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d0a3c5beb16d022a6178856790665bec.jpg","text":"TemporaryFile(/tmp/multipartBody9170693196829373656asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671283515,"filename":"image_23012025_23_26_55_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3f6ee72ecd0fe52eeff4ee51b42a6fa6.jpg","text":"TemporaryFile(/tmp/multipartBody6812607439047014025asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671283515,"filename":"image_23012025_23_26_25_6208.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3b5723a4d7814743acc773b14c24f0c1.jpg","text":"TemporaryFile(/tmp/multipartBody8774768059804663471asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671283515,"filename":"image_23012025_23_26_36_5184.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a40df7068cb7e2c75244ba9771c9f593.jpg","text":"TemporaryFile(/tmp/multipartBody6641911317683368603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671283515,"filename":"image_23012025_23_26_48_6197.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330887515","file1":"1330887507","file0":"1330887487","file4":"1330887536","file5":"1330887538","file3":"1330887531"},"map_files_photo_id_array":[{"photo_id":"1330887538","filename":"file5"},{"photo_id":"1330887515","filename":"file2"},{"photo_id":"1330887536","filename":"file4"},{"photo_id":"1330887507","filename":"file1"},{"photo_id":"1330887487","filename":"file0"},{"photo_id":"1330887531","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330887536":["hashtag1","hashtag2"]},{"1330887515":["hashtag1","hashtag2"]},{"1330887487":["hashtag1","hashtag2"]},{"1330887538":["hashtag1","hashtag2"]},{"1330887531":["hashtag1","hashtag2"]},{"1330887507":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330887536, 1330887515, 1330887487, 1330887538, 1330887531, 1330887507)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.353378772735596 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:28:02.444782
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/27/image_23012025_23_27_55_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/23/27/image_23012025_23_27_48_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/23/27/image_23012025_23_27_36_5180.jpg', 2), ('/home/nano/Desktop/images/23012025/23/27/image_23012025_23_27_31_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/23/27/image_23012025_23_27_25_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/23/27/image_23012025_23_27_18_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/27/image_23012025_23_27_55_6190.jpg', '/home/nano/Desktop/images/23012025/23/27/image_23012025_23_27_48_6195.jpg', '/home/nano/Desktop/images/23012025/23/27/image_23012025_23_27_36_5180.jpg', '/home/nano/Desktop/images/23012025/23/27/image_23012025_23_27_31_6193.jpg', '/home/nano/Desktop/images/23012025/23/27/image_23012025_23_27_25_6199.jpg', '/home/nano/Desktop/images/23012025/23/27/image_23012025_23_27_18_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/27/image_23012025_23_27_55_6190.jpg
/home/nano/Desktop/images/23012025/23/27/image_23012025_23_27_48_6195.jpg
/home/nano/Desktop/images/23012025/23/27/image_23012025_23_27_36_5180.jpg
/home/nano/Desktop/images/23012025/23/27/image_23012025_23_27_31_6193.jpg
/home/nano/Desktop/images/23012025/23/27/image_23012025_23_27_25_6199.jpg
/home/nano/Desktop/images/23012025/23/27/image_23012025_23_27_18_6197.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.8063440322875977 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:28:31.951754
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/28/image_23012025_23_28_55_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/23/28/image_23012025_23_28_48_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/23/28/image_23012025_23_28_42_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/23/28/image_23012025_23_28_36_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/23/28/image_23012025_23_28_30_5182.jpg', 2), ('/home/nano/Desktop/images/23012025/23/28/image_23012025_23_28_25_6199.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/28/image_23012025_23_28_55_6202.jpg', '/home/nano/Desktop/images/23012025/23/28/image_23012025_23_28_48_6199.jpg', '/home/nano/Desktop/images/23012025/23/28/image_23012025_23_28_42_6191.jpg', '/home/nano/Desktop/images/23012025/23/28/image_23012025_23_28_36_6196.jpg', '/home/nano/Desktop/images/23012025/23/28/image_23012025_23_28_30_5182.jpg', '/home/nano/Desktop/images/23012025/23/28/image_23012025_23_28_25_6199.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/28/image_23012025_23_28_55_6202.jpg
/home/nano/Desktop/images/23012025/23/28/image_23012025_23_28_48_6199.jpg
/home/nano/Desktop/images/23012025/23/28/image_23012025_23_28_42_6191.jpg
/home/nano/Desktop/images/23012025/23/28/image_23012025_23_28_36_6196.jpg
/home/nano/Desktop/images/23012025/23/28/image_23012025_23_28_30_5182.jpg
/home/nano/Desktop/images/23012025/23/28/image_23012025_23_28_25_6199.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330887614","1330887609","1330887600","1330887603","1330887606","1330887596"],"photo_ids_order":["1330887596","1330887600","1330887603","1330887606","1330887609","1330887614"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/99c7ec551f4627b12ead13f48ebd0118.jpg","text":"TemporaryFile(/tmp/multipartBody3613821721062210459asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671372873,"filename":"image_23012025_23_28_25_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4042d4dfe915c67352c24cc42ef8c6a1.jpg","text":"TemporaryFile(/tmp/multipartBody6700302340880101912asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671372873,"filename":"image_23012025_23_28_30_5182.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/05989f09302ac05e3251b567c42b1c4a.jpg","text":"TemporaryFile(/tmp/multipartBody3808916434439819993asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671372873,"filename":"image_23012025_23_28_48_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b0dcd0b55bf9b9193a9937882206b13f.jpg","text":"TemporaryFile(/tmp/multipartBody1678841240663302720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671372873,"filename":"image_23012025_23_28_42_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/76b1ca4b07f8366ab8e4e7c15ecee6ab.jpg","text":"TemporaryFile(/tmp/multipartBody5195305360160324340asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671372873,"filename":"image_23012025_23_28_36_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/343680331edc41ec2a414bb190686c96.jpg","text":"TemporaryFile(/tmp/multipartBody545142142135868809asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671372873,"filename":"image_23012025_23_28_55_6202.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330887603","file1":"1330887600","file0":"1330887596","file4":"1330887609","file5":"1330887614","file3":"1330887606"},"map_files_photo_id_array":[{"photo_id":"1330887614","filename":"file5"},{"photo_id":"1330887603","filename":"file2"},{"photo_id":"1330887609","filename":"file4"},{"photo_id":"1330887600","filename":"file1"},{"photo_id":"1330887596","filename":"file0"},{"photo_id":"1330887606","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330887614":["hashtag1","hashtag2"]},{"1330887609":["hashtag1","hashtag2"]},{"1330887600":["hashtag1","hashtag2"]},{"1330887603":["hashtag1","hashtag2"]},{"1330887606":["hashtag1","hashtag2"]},{"1330887596":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330887614, 1330887609, 1330887600, 1330887603, 1330887606, 1330887596)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.056249141693115 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:29:32.049816
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/29/image_23012025_23_29_54_5186.jpg', 2), ('/home/nano/Desktop/images/23012025/23/29/image_23012025_23_29_49_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/23/29/image_23012025_23_29_43_6207.jpg', 2), ('/home/nano/Desktop/images/23012025/23/29/image_23012025_23_29_36_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/23/29/image_23012025_23_29_30_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/23/29/image_23012025_23_29_24_5182.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/29/image_23012025_23_29_54_5186.jpg', '/home/nano/Desktop/images/23012025/23/29/image_23012025_23_29_49_6204.jpg', '/home/nano/Desktop/images/23012025/23/29/image_23012025_23_29_43_6207.jpg', '/home/nano/Desktop/images/23012025/23/29/image_23012025_23_29_36_6201.jpg', '/home/nano/Desktop/images/23012025/23/29/image_23012025_23_29_30_6199.jpg', '/home/nano/Desktop/images/23012025/23/29/image_23012025_23_29_24_5182.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/29/image_23012025_23_29_54_5186.jpg
/home/nano/Desktop/images/23012025/23/29/image_23012025_23_29_49_6204.jpg
/home/nano/Desktop/images/23012025/23/29/image_23012025_23_29_43_6207.jpg
/home/nano/Desktop/images/23012025/23/29/image_23012025_23_29_36_6201.jpg
/home/nano/Desktop/images/23012025/23/29/image_23012025_23_29_30_6199.jpg
/home/nano/Desktop/images/23012025/23/29/image_23012025_23_29_24_5182.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330887667","1330887663","1330887660","1330887648","1330887657","1330887653"],"photo_ids_order":["1330887648","1330887653","1330887657","1330887660","1330887663","1330887667"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5409144e5bceee442ecd0becf31ed4ed.jpg","text":"TemporaryFile(/tmp/multipartBody8033447711763253557asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671433016,"filename":"image_23012025_23_29_24_5182.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/350a08d434001069d1c098d887a78fcc.jpg","text":"TemporaryFile(/tmp/multipartBody4123862910559157264asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671433016,"filename":"image_23012025_23_29_30_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6d48f5b3b1e4f130e4e456e9d9fb3fc4.jpg","text":"TemporaryFile(/tmp/multipartBody5339473457620223368asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671433016,"filename":"image_23012025_23_29_36_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/70bfcdc34ab2aaf87aa029e7a728f02b.jpg","text":"TemporaryFile(/tmp/multipartBody9017885504761798769asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671433016,"filename":"image_23012025_23_29_54_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0d0e3cf0ba56be9c1d024534953b0355.jpg","text":"TemporaryFile(/tmp/multipartBody797911942111842511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671433016,"filename":"image_23012025_23_29_43_6207.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/25342f7e582987d009a22ec4f43390ed.jpg","text":"TemporaryFile(/tmp/multipartBody3435199487819141658asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671433016,"filename":"image_23012025_23_29_49_6204.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330887657","file1":"1330887653","file0":"1330887648","file4":"1330887663","file5":"1330887667","file3":"1330887660"},"map_files_photo_id_array":[{"photo_id":"1330887667","filename":"file5"},{"photo_id":"1330887657","filename":"file2"},{"photo_id":"1330887663","filename":"file4"},{"photo_id":"1330887653","filename":"file1"},{"photo_id":"1330887648","filename":"file0"},{"photo_id":"1330887660","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330887667":["hashtag1","hashtag2"]},{"1330887663":["hashtag1","hashtag2"]},{"1330887660":["hashtag1","hashtag2"]},{"1330887648":["hashtag1","hashtag2"]},{"1330887657":["hashtag1","hashtag2"]},{"1330887653":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330887667, 1330887663, 1330887660, 1330887648, 1330887657, 1330887653)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.16272330284119 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:30:32.160620
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/30/image_23012025_23_30_54_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/30/image_23012025_23_30_49_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/23/30/image_23012025_23_30_43_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/23/30/image_23012025_23_30_36_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/23/30/image_23012025_23_30_30_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/23/30/image_23012025_23_30_24_5194.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/30/image_23012025_23_30_54_5187.jpg', '/home/nano/Desktop/images/23012025/23/30/image_23012025_23_30_49_6197.jpg', '/home/nano/Desktop/images/23012025/23/30/image_23012025_23_30_43_6193.jpg', '/home/nano/Desktop/images/23012025/23/30/image_23012025_23_30_36_6194.jpg', '/home/nano/Desktop/images/23012025/23/30/image_23012025_23_30_30_6201.jpg', '/home/nano/Desktop/images/23012025/23/30/image_23012025_23_30_24_5194.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/30/image_23012025_23_30_54_5187.jpg
/home/nano/Desktop/images/23012025/23/30/image_23012025_23_30_49_6197.jpg
/home/nano/Desktop/images/23012025/23/30/image_23012025_23_30_43_6193.jpg
/home/nano/Desktop/images/23012025/23/30/image_23012025_23_30_36_6194.jpg
/home/nano/Desktop/images/23012025/23/30/image_23012025_23_30_30_6201.jpg
/home/nano/Desktop/images/23012025/23/30/image_23012025_23_30_24_5194.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330887707","1330887697","1330887693","1330887702","1330887689","1330887683"],"photo_ids_order":["1330887683","1330887689","1330887693","1330887697","1330887702","1330887707"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/23ee66baa90364a67b7476f26df7fd11.jpg","text":"TemporaryFile(/tmp/multipartBody2650441947742682158asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671492988,"filename":"image_23012025_23_30_24_5194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5a5de8a3389b9b13af7f0cb3be0df3bf.jpg","text":"TemporaryFile(/tmp/multipartBody4462891096975311416asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671492988,"filename":"image_23012025_23_30_36_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/46c862a097d3228a919f9418078102c3.jpg","text":"TemporaryFile(/tmp/multipartBody5731666381193942866asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671492988,"filename":"image_23012025_23_30_43_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8a68f7f5e09406ca3865d31fdb9e2448.jpg","text":"TemporaryFile(/tmp/multipartBody9048311536303051549asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671492988,"filename":"image_23012025_23_30_30_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/08ec4ffaef699f71d4185d83ca60f344.jpg","text":"TemporaryFile(/tmp/multipartBody449603427199752514asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671492988,"filename":"image_23012025_23_30_49_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/70fa035e2316b11176496ecfab5d4110.jpg","text":"TemporaryFile(/tmp/multipartBody3002922384571350647asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671492988,"filename":"image_23012025_23_30_54_5187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330887693","file1":"1330887689","file0":"1330887683","file4":"1330887702","file5":"1330887707","file3":"1330887697"},"map_files_photo_id_array":[{"photo_id":"1330887707","filename":"file5"},{"photo_id":"1330887693","filename":"file2"},{"photo_id":"1330887702","filename":"file4"},{"photo_id":"1330887689","filename":"file1"},{"photo_id":"1330887683","filename":"file0"},{"photo_id":"1330887697","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330887707":["hashtag1","hashtag2"]},{"1330887697":["hashtag1","hashtag2"]},{"1330887693":["hashtag1","hashtag2"]},{"1330887702":["hashtag1","hashtag2"]},{"1330887689":["hashtag1","hashtag2"]},{"1330887683":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330887707, 1330887697, 1330887693, 1330887702, 1330887689, 1330887683)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.535237312316895 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:31:32.248318
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/31/image_23012025_23_31_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/23/31/image_23012025_23_31_49_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/23/31/image_23012025_23_31_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/23/31/image_23012025_23_31_36_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/23/31/image_23012025_23_31_30_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/23/31/image_23012025_23_31_25_6194.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/31/image_23012025_23_31_55_6188.jpg', '/home/nano/Desktop/images/23012025/23/31/image_23012025_23_31_49_6189.jpg', '/home/nano/Desktop/images/23012025/23/31/image_23012025_23_31_42_6196.jpg', '/home/nano/Desktop/images/23012025/23/31/image_23012025_23_31_36_6199.jpg', '/home/nano/Desktop/images/23012025/23/31/image_23012025_23_31_30_5192.jpg', '/home/nano/Desktop/images/23012025/23/31/image_23012025_23_31_25_6194.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/31/image_23012025_23_31_55_6188.jpg
/home/nano/Desktop/images/23012025/23/31/image_23012025_23_31_49_6189.jpg
/home/nano/Desktop/images/23012025/23/31/image_23012025_23_31_42_6196.jpg
/home/nano/Desktop/images/23012025/23/31/image_23012025_23_31_36_6199.jpg
/home/nano/Desktop/images/23012025/23/31/image_23012025_23_31_30_5192.jpg
/home/nano/Desktop/images/23012025/23/31/image_23012025_23_31_25_6194.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330887766","1330887751","1330887760","1330887744","1330887753","1330887747"],"photo_ids_order":["1330887744","1330887747","1330887751","1330887753","1330887760","1330887766"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/dac614024dc552a20836ee41fe0f6f85.jpg","text":"TemporaryFile(/tmp/multipartBody6248148174773717820asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671553069,"filename":"image_23012025_23_31_25_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b9a459d030afa122d2a20d8852bcf1df.jpg","text":"TemporaryFile(/tmp/multipartBody2159213028984924364asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671553069,"filename":"image_23012025_23_31_42_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a40657f4b694724cb035af18f6e75f98.jpg","text":"TemporaryFile(/tmp/multipartBody5326396554730898584asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671553069,"filename":"image_23012025_23_31_30_5192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/40c1fb40a4d6e7c38c304320823e9bb9.jpg","text":"TemporaryFile(/tmp/multipartBody6217623047733772869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671553069,"filename":"image_23012025_23_31_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6b40b0674a0e64a4f50cfb452a2e3bd3.jpg","text":"TemporaryFile(/tmp/multipartBody7623383370432268961asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671553069,"filename":"image_23012025_23_31_36_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4e2ff337cbc1354008500323ba4a653d.jpg","text":"TemporaryFile(/tmp/multipartBody5404775597877197546asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671553069,"filename":"image_23012025_23_31_49_6189.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330887751","file1":"1330887747","file0":"1330887744","file4":"1330887760","file5":"1330887766","file3":"1330887753"},"map_files_photo_id_array":[{"photo_id":"1330887766","filename":"file5"},{"photo_id":"1330887751","filename":"file2"},{"photo_id":"1330887760","filename":"file4"},{"photo_id":"1330887747","filename":"file1"},{"photo_id":"1330887744","filename":"file0"},{"photo_id":"1330887753","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330887766":["hashtag1","hashtag2"]},{"1330887751":["hashtag1","hashtag2"]},{"1330887760":["hashtag1","hashtag2"]},{"1330887744":["hashtag1","hashtag2"]},{"1330887753":["hashtag1","hashtag2"]},{"1330887747":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330887766, 1330887751, 1330887760, 1330887744, 1330887753, 1330887747)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.78728747367859 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:32:32.353476
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/32/image_23012025_23_32_55_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/32/image_23012025_23_32_49_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/32/image_23012025_23_32_42_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/23/32/image_23012025_23_32_36_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/23/32/image_23012025_23_32_30_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/23/32/image_23012025_23_32_25_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/32/image_23012025_23_32_55_6187.jpg', '/home/nano/Desktop/images/23012025/23/32/image_23012025_23_32_49_6187.jpg', '/home/nano/Desktop/images/23012025/23/32/image_23012025_23_32_42_6188.jpg', '/home/nano/Desktop/images/23012025/23/32/image_23012025_23_32_36_6191.jpg', '/home/nano/Desktop/images/23012025/23/32/image_23012025_23_32_30_5179.jpg', '/home/nano/Desktop/images/23012025/23/32/image_23012025_23_32_25_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/32/image_23012025_23_32_55_6187.jpg
/home/nano/Desktop/images/23012025/23/32/image_23012025_23_32_49_6187.jpg
/home/nano/Desktop/images/23012025/23/32/image_23012025_23_32_42_6188.jpg
/home/nano/Desktop/images/23012025/23/32/image_23012025_23_32_36_6191.jpg
/home/nano/Desktop/images/23012025/23/32/image_23012025_23_32_30_5179.jpg
/home/nano/Desktop/images/23012025/23/32/image_23012025_23_32_25_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330887911","1330887908","1330887902","1330887904","1330887852","1330887915"],"photo_ids_order":["1330887852","1330887902","1330887904","1330887908","1330887911","1330887915"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7295030162fbb48b7fc39eaca47377d6.jpg","text":"TemporaryFile(/tmp/multipartBody4364047907724091908asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671613058,"filename":"image_23012025_23_32_30_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/30d7a418975cbbc6841b6a929c2a8666.jpg","text":"TemporaryFile(/tmp/multipartBody8216760400859449768asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671613058,"filename":"image_23012025_23_32_36_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5256d7e7db14254748ae348aab6b5e37.jpg","text":"TemporaryFile(/tmp/multipartBody1883396867074720306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671613058,"filename":"image_23012025_23_32_49_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c1e836e764ff426f9d97a481274e1453.jpg","text":"TemporaryFile(/tmp/multipartBody3148600926083724505asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671613058,"filename":"image_23012025_23_32_42_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ca6c330b84f917e67c83b82a7760bb1a.jpg","text":"TemporaryFile(/tmp/multipartBody7657646096647172990asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671613058,"filename":"image_23012025_23_32_55_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b22e722e97586770c46f0c63a8341b83.jpg","text":"TemporaryFile(/tmp/multipartBody1463302443322100919asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671613058,"filename":"image_23012025_23_32_25_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330887904","file1":"1330887902","file0":"1330887852","file4":"1330887911","file5":"1330887915","file3":"1330887908"},"map_files_photo_id_array":[{"photo_id":"1330887915","filename":"file5"},{"photo_id":"1330887904","filename":"file2"},{"photo_id":"1330887911","filename":"file4"},{"photo_id":"1330887902","filename":"file1"},{"photo_id":"1330887852","filename":"file0"},{"photo_id":"1330887908","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330887911":["hashtag1","hashtag2"]},{"1330887908":["hashtag1","hashtag2"]},{"1330887902":["hashtag1","hashtag2"]},{"1330887904":["hashtag1","hashtag2"]},{"1330887852":["hashtag1","hashtag2"]},{"1330887915":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330887911, 1330887908, 1330887902, 1330887904, 1330887852, 1330887915)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.769547939300537 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:33:32.415725
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/33/image_23012025_23_34_01_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/23/33/image_23012025_23_33_48_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/23/33/image_23012025_23_33_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/23/33/image_23012025_23_33_36_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/23/33/image_23012025_23_33_30_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/23/33/image_23012025_23_33_25_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/33/image_23012025_23_34_01_6188.jpg', '/home/nano/Desktop/images/23012025/23/33/image_23012025_23_33_48_6188.jpg', '/home/nano/Desktop/images/23012025/23/33/image_23012025_23_33_42_6196.jpg', '/home/nano/Desktop/images/23012025/23/33/image_23012025_23_33_36_6192.jpg', '/home/nano/Desktop/images/23012025/23/33/image_23012025_23_33_30_5177.jpg', '/home/nano/Desktop/images/23012025/23/33/image_23012025_23_33_25_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/33/image_23012025_23_34_01_6188.jpg
/home/nano/Desktop/images/23012025/23/33/image_23012025_23_33_48_6188.jpg
/home/nano/Desktop/images/23012025/23/33/image_23012025_23_33_42_6196.jpg
/home/nano/Desktop/images/23012025/23/33/image_23012025_23_33_36_6192.jpg
/home/nano/Desktop/images/23012025/23/33/image_23012025_23_33_30_5177.jpg
/home/nano/Desktop/images/23012025/23/33/image_23012025_23_33_25_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330887964","1330887945","1330887948","1330887971","1330887965","1330887968"],"photo_ids_order":["1330887945","1330887948","1330887964","1330887965","1330887968","1330887971"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a42392012871e6b6e7df559f29213b12.jpg","text":"TemporaryFile(/tmp/multipartBody5267390595397394388asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671673090,"filename":"image_23012025_23_33_42_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0090cbd20fbd8ebc77eeff24bbf1d53a.jpg","text":"TemporaryFile(/tmp/multipartBody3741120127450836082asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671673090,"filename":"image_23012025_23_34_01_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8653c420bda2f217100e22d87203e7ed.jpg","text":"TemporaryFile(/tmp/multipartBody5548009812401573311asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671673090,"filename":"image_23012025_23_33_48_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/922af537732deb449b0a8958d2a175f2.jpg","text":"TemporaryFile(/tmp/multipartBody4966776464391124315asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671673090,"filename":"image_23012025_23_33_25_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c229ba63b0fb7455baa72944f0db6cd8.jpg","text":"TemporaryFile(/tmp/multipartBody692600401546431494asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671673090,"filename":"image_23012025_23_33_36_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e3bbb917418769fdcede169041b01590.jpg","text":"TemporaryFile(/tmp/multipartBody1073653191449696881asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671673090,"filename":"image_23012025_23_33_30_5177.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330887964","file1":"1330887948","file0":"1330887945","file4":"1330887968","file5":"1330887971","file3":"1330887965"},"map_files_photo_id_array":[{"photo_id":"1330887971","filename":"file5"},{"photo_id":"1330887964","filename":"file2"},{"photo_id":"1330887968","filename":"file4"},{"photo_id":"1330887948","filename":"file1"},{"photo_id":"1330887945","filename":"file0"},{"photo_id":"1330887965","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330887964":["hashtag1","hashtag2"]},{"1330887945":["hashtag1","hashtag2"]},{"1330887948":["hashtag1","hashtag2"]},{"1330887971":["hashtag1","hashtag2"]},{"1330887965":["hashtag1","hashtag2"]},{"1330887968":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330887964, 1330887945, 1330887948, 1330887971, 1330887965, 1330887968)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.20648765563965 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:34:32.533401
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/34/image_23012025_23_34_55_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/23/34/image_23012025_23_34_42_6201.jpg', 2), ('/home/nano/Desktop/images/23012025/23/34/image_23012025_23_34_36_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/23/34/image_23012025_23_34_31_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/23/34/image_23012025_23_34_25_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/23/34/image_23012025_23_34_18_6193.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/34/image_23012025_23_34_55_6199.jpg', '/home/nano/Desktop/images/23012025/23/34/image_23012025_23_34_42_6201.jpg', '/home/nano/Desktop/images/23012025/23/34/image_23012025_23_34_36_5181.jpg', '/home/nano/Desktop/images/23012025/23/34/image_23012025_23_34_31_6195.jpg', '/home/nano/Desktop/images/23012025/23/34/image_23012025_23_34_25_6191.jpg', '/home/nano/Desktop/images/23012025/23/34/image_23012025_23_34_18_6193.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/34/image_23012025_23_34_55_6199.jpg
/home/nano/Desktop/images/23012025/23/34/image_23012025_23_34_42_6201.jpg
/home/nano/Desktop/images/23012025/23/34/image_23012025_23_34_36_5181.jpg
/home/nano/Desktop/images/23012025/23/34/image_23012025_23_34_31_6195.jpg
/home/nano/Desktop/images/23012025/23/34/image_23012025_23_34_25_6191.jpg
/home/nano/Desktop/images/23012025/23/34/image_23012025_23_34_18_6193.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330887991","1330887987","1330888002","1330887998","1330887995","1330888007"],"photo_ids_order":["1330887987","1330887991","1330887995","1330887998","1330888002","1330888007"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e64ce185c5062a98cb954f776a068ad0.jpg","text":"TemporaryFile(/tmp/multipartBody4862102082953787785asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671733442,"filename":"image_23012025_23_34_42_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4231475ce4489d010993320f2cddd97a.jpg","text":"TemporaryFile(/tmp/multipartBody8349370361322870695asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671733442,"filename":"image_23012025_23_34_55_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b003a5bfc513dc69c4cd438e1bdfb063.jpg","text":"TemporaryFile(/tmp/multipartBody708801524494288782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671733442,"filename":"image_23012025_23_34_25_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/88c7070564207e610650d8f7cafc5526.jpg","text":"TemporaryFile(/tmp/multipartBody6916903916226344253asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671733442,"filename":"image_23012025_23_34_31_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/34d1d3af3292ab29835baef7325cd1fd.jpg","text":"TemporaryFile(/tmp/multipartBody2139544983773568070asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671733442,"filename":"image_23012025_23_34_36_5181.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/323b2245fd217461c6da715e8a3ff9da.jpg","text":"TemporaryFile(/tmp/multipartBody1605567404209156198asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671733442,"filename":"image_23012025_23_34_18_6193.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330887995","file1":"1330887991","file0":"1330887987","file4":"1330888002","file5":"1330888007","file3":"1330887998"},"map_files_photo_id_array":[{"photo_id":"1330888007","filename":"file5"},{"photo_id":"1330887995","filename":"file2"},{"photo_id":"1330888002","filename":"file4"},{"photo_id":"1330887991","filename":"file1"},{"photo_id":"1330887987","filename":"file0"},{"photo_id":"1330887998","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330887991":["hashtag1","hashtag2"]},{"1330887987":["hashtag1","hashtag2"]},{"1330888002":["hashtag1","hashtag2"]},{"1330887998":["hashtag1","hashtag2"]},{"1330887995":["hashtag1","hashtag2"]},{"1330888007":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330887991, 1330887987, 1330888002, 1330887998, 1330887995, 1330888007)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.87083387374878 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:35:32.642331
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/35/image_23012025_23_35_55_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/23/35/image_23012025_23_35_48_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/23/35/image_23012025_23_35_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/23/35/image_23012025_23_35_36_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/23/35/image_23012025_23_35_31_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/23/35/image_23012025_23_35_25_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/35/image_23012025_23_35_55_6190.jpg', '/home/nano/Desktop/images/23012025/23/35/image_23012025_23_35_48_6192.jpg', '/home/nano/Desktop/images/23012025/23/35/image_23012025_23_35_42_6196.jpg', '/home/nano/Desktop/images/23012025/23/35/image_23012025_23_35_36_5190.jpg', '/home/nano/Desktop/images/23012025/23/35/image_23012025_23_35_31_6198.jpg', '/home/nano/Desktop/images/23012025/23/35/image_23012025_23_35_25_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/35/image_23012025_23_35_55_6190.jpg
/home/nano/Desktop/images/23012025/23/35/image_23012025_23_35_48_6192.jpg
/home/nano/Desktop/images/23012025/23/35/image_23012025_23_35_42_6196.jpg
/home/nano/Desktop/images/23012025/23/35/image_23012025_23_35_36_5190.jpg
/home/nano/Desktop/images/23012025/23/35/image_23012025_23_35_31_6198.jpg
/home/nano/Desktop/images/23012025/23/35/image_23012025_23_35_25_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330888054","1330888050","1330888046","1330888040","1330888043","1330888096"],"photo_ids_order":["1330888040","1330888043","1330888046","1330888050","1330888054","1330888096"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/caee33636070561a1987a3a29220198a.jpg","text":"TemporaryFile(/tmp/multipartBody6663712928766213968asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671793440,"filename":"image_23012025_23_35_31_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c92723b7f7fe807233e24fbc13224b44.jpg","text":"TemporaryFile(/tmp/multipartBody7190179890203001258asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671793440,"filename":"image_23012025_23_35_36_5190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b03b28a453e96ed1990cb395801f1355.jpg","text":"TemporaryFile(/tmp/multipartBody981359476966506186asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671793440,"filename":"image_23012025_23_35_42_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a252a22ee98ef6bd5d9f177a5141e404.jpg","text":"TemporaryFile(/tmp/multipartBody1825221647782733653asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671793440,"filename":"image_23012025_23_35_55_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1958b08ff73cc4ec80e2a83a1bd710a6.jpg","text":"TemporaryFile(/tmp/multipartBody4447108758298113482asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671793440,"filename":"image_23012025_23_35_48_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/33d178da1133b83adec11a06abe1d858.jpg","text":"TemporaryFile(/tmp/multipartBody78594281473199048asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671793440,"filename":"image_23012025_23_35_25_6195.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330888046","file1":"1330888043","file0":"1330888040","file4":"1330888054","file5":"1330888096","file3":"1330888050"},"map_files_photo_id_array":[{"photo_id":"1330888096","filename":"file5"},{"photo_id":"1330888046","filename":"file2"},{"photo_id":"1330888054","filename":"file4"},{"photo_id":"1330888043","filename":"file1"},{"photo_id":"1330888040","filename":"file0"},{"photo_id":"1330888050","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330888054":["hashtag1","hashtag2"]},{"1330888050":["hashtag1","hashtag2"]},{"1330888046":["hashtag1","hashtag2"]},{"1330888040":["hashtag1","hashtag2"]},{"1330888043":["hashtag1","hashtag2"]},{"1330888096":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330888054, 1330888050, 1330888046, 1330888040, 1330888043, 1330888096)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.37086081504822 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:36:32.715444
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/36/image_23012025_23_36_55_6206.jpg', 2), ('/home/nano/Desktop/images/23012025/23/36/image_23012025_23_36_42_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/23/36/image_23012025_23_36_36_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/23/36/image_23012025_23_36_31_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/23/36/image_23012025_23_36_25_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/23/36/image_23012025_23_36_18_6202.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/36/image_23012025_23_36_55_6206.jpg', '/home/nano/Desktop/images/23012025/23/36/image_23012025_23_36_42_6198.jpg', '/home/nano/Desktop/images/23012025/23/36/image_23012025_23_36_36_5185.jpg', '/home/nano/Desktop/images/23012025/23/36/image_23012025_23_36_31_6191.jpg', '/home/nano/Desktop/images/23012025/23/36/image_23012025_23_36_25_6193.jpg', '/home/nano/Desktop/images/23012025/23/36/image_23012025_23_36_18_6202.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/36/image_23012025_23_36_55_6206.jpg
/home/nano/Desktop/images/23012025/23/36/image_23012025_23_36_42_6198.jpg
/home/nano/Desktop/images/23012025/23/36/image_23012025_23_36_36_5185.jpg
/home/nano/Desktop/images/23012025/23/36/image_23012025_23_36_31_6191.jpg
/home/nano/Desktop/images/23012025/23/36/image_23012025_23_36_25_6193.jpg
/home/nano/Desktop/images/23012025/23/36/image_23012025_23_36_18_6202.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330888129","1330888120","1330888108","1330888115","1330888124","1330888112"],"photo_ids_order":["1330888108","1330888112","1330888115","1330888120","1330888124","1330888129"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/63ab06e382abaefe33cbebbcf2a1117a.jpg","text":"TemporaryFile(/tmp/multipartBody8330902557036825414asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671853494,"filename":"image_23012025_23_36_18_6202.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/12c7bc98d76766f0627b072016047def.jpg","text":"TemporaryFile(/tmp/multipartBody8439293269887970047asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671853494,"filename":"image_23012025_23_36_31_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ffc37a84944e0c8965ef1fa36f32e6af.jpg","text":"TemporaryFile(/tmp/multipartBody7837562748571311348asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671853494,"filename":"image_23012025_23_36_55_6206.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fde2c262bb077901cdcdda155b10cedc.jpg","text":"TemporaryFile(/tmp/multipartBody6359906173607707321asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671853494,"filename":"image_23012025_23_36_36_5185.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6f1e6394c57f817c94a1f8c72da0a8c7.jpg","text":"TemporaryFile(/tmp/multipartBody8501361653727631166asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671853494,"filename":"image_23012025_23_36_25_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/35ab49fbbec2c0238f790d01574ab860.jpg","text":"TemporaryFile(/tmp/multipartBody6487950588541684444asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671853494,"filename":"image_23012025_23_36_42_6198.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330888115","file1":"1330888112","file0":"1330888108","file4":"1330888124","file5":"1330888129","file3":"1330888120"},"map_files_photo_id_array":[{"photo_id":"1330888129","filename":"file5"},{"photo_id":"1330888115","filename":"file2"},{"photo_id":"1330888124","filename":"file4"},{"photo_id":"1330888112","filename":"file1"},{"photo_id":"1330888108","filename":"file0"},{"photo_id":"1330888120","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330888129":["hashtag1","hashtag2"]},{"1330888120":["hashtag1","hashtag2"]},{"1330888108":["hashtag1","hashtag2"]},{"1330888115":["hashtag1","hashtag2"]},{"1330888124":["hashtag1","hashtag2"]},{"1330888112":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330888129, 1330888120, 1330888108, 1330888115, 1330888124, 1330888112)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.228145360946655 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:37:31.938926
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/37/image_23012025_23_37_54_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/23/37/image_23012025_23_37_48_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/23/37/image_23012025_23_37_42_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/23/37/image_23012025_23_37_36_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/23/37/image_23012025_23_37_31_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/23/37/image_23012025_23_37_25_6191.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/37/image_23012025_23_37_54_6196.jpg', '/home/nano/Desktop/images/23012025/23/37/image_23012025_23_37_48_6190.jpg', '/home/nano/Desktop/images/23012025/23/37/image_23012025_23_37_42_6196.jpg', '/home/nano/Desktop/images/23012025/23/37/image_23012025_23_37_36_5181.jpg', '/home/nano/Desktop/images/23012025/23/37/image_23012025_23_37_31_6191.jpg', '/home/nano/Desktop/images/23012025/23/37/image_23012025_23_37_25_6191.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/37/image_23012025_23_37_54_6196.jpg
/home/nano/Desktop/images/23012025/23/37/image_23012025_23_37_48_6190.jpg
/home/nano/Desktop/images/23012025/23/37/image_23012025_23_37_42_6196.jpg
/home/nano/Desktop/images/23012025/23/37/image_23012025_23_37_36_5181.jpg
/home/nano/Desktop/images/23012025/23/37/image_23012025_23_37_31_6191.jpg
/home/nano/Desktop/images/23012025/23/37/image_23012025_23_37_25_6191.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330888243","1330888237","1330888246","1330888240","1330888239","1330888235"],"photo_ids_order":["1330888235","1330888237","1330888239","1330888240","1330888243","1330888246"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f40e75f697069201489e0a4c108a54c2.jpg","text":"TemporaryFile(/tmp/multipartBody1677663288271411485asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671912694,"filename":"image_23012025_23_37_31_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5fcca34f530712f0a5024fbd1707f333.jpg","text":"TemporaryFile(/tmp/multipartBody6552191131668590660asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671912694,"filename":"image_23012025_23_37_48_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1b32dcf1942e36dd44b3e5c278c465ad.jpg","text":"TemporaryFile(/tmp/multipartBody1489719393342009056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671912694,"filename":"image_23012025_23_37_25_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e64329c64ab279dfd457bdbd3b8b94a1.jpg","text":"TemporaryFile(/tmp/multipartBody828186234515704001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671912694,"filename":"image_23012025_23_37_36_5181.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/021c5af504bfa489ac6d82c5515418b9.jpg","text":"TemporaryFile(/tmp/multipartBody2841393045924893301asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671912694,"filename":"image_23012025_23_37_42_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c1ea8e5a38456049162d89f7c9bd2873.jpg","text":"TemporaryFile(/tmp/multipartBody2579415947141427424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671912694,"filename":"image_23012025_23_37_54_6196.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330888239","file1":"1330888237","file0":"1330888235","file4":"1330888243","file5":"1330888246","file3":"1330888240"},"map_files_photo_id_array":[{"photo_id":"1330888246","filename":"file5"},{"photo_id":"1330888239","filename":"file2"},{"photo_id":"1330888243","filename":"file4"},{"photo_id":"1330888237","filename":"file1"},{"photo_id":"1330888235","filename":"file0"},{"photo_id":"1330888240","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330888243":["hashtag1","hashtag2"]},{"1330888237":["hashtag1","hashtag2"]},{"1330888246":["hashtag1","hashtag2"]},{"1330888240":["hashtag1","hashtag2"]},{"1330888239":["hashtag1","hashtag2"]},{"1330888235":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330888243, 1330888237, 1330888246, 1330888240, 1330888239, 1330888235)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.791224002838135 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:38:32.039223
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/38/image_23012025_23_38_48_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/23/38/image_23012025_23_38_42_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/23/38/image_23012025_23_38_36_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/23/38/image_23012025_23_38_25_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/23/38/image_23012025_23_38_18_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/23/38/image_23012025_23_38_12_6199.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/38/image_23012025_23_38_48_6197.jpg', '/home/nano/Desktop/images/23012025/23/38/image_23012025_23_38_42_6199.jpg', '/home/nano/Desktop/images/23012025/23/38/image_23012025_23_38_36_5190.jpg', '/home/nano/Desktop/images/23012025/23/38/image_23012025_23_38_25_6199.jpg', '/home/nano/Desktop/images/23012025/23/38/image_23012025_23_38_18_6205.jpg', '/home/nano/Desktop/images/23012025/23/38/image_23012025_23_38_12_6199.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/38/image_23012025_23_38_48_6197.jpg
/home/nano/Desktop/images/23012025/23/38/image_23012025_23_38_42_6199.jpg
/home/nano/Desktop/images/23012025/23/38/image_23012025_23_38_36_5190.jpg
/home/nano/Desktop/images/23012025/23/38/image_23012025_23_38_25_6199.jpg
/home/nano/Desktop/images/23012025/23/38/image_23012025_23_38_18_6205.jpg
/home/nano/Desktop/images/23012025/23/38/image_23012025_23_38_12_6199.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330888299","1330888290","1330888287","1330888295","1330888301","1330888285"],"photo_ids_order":["1330888285","1330888287","1330888290","1330888295","1330888299","1330888301"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/87131e974f3c13618caa865319578d69.jpg","text":"TemporaryFile(/tmp/multipartBody1597573453811636564asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671972973,"filename":"image_23012025_23_38_18_6205.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/90003970cc33ba1fa7c2c48cfd468dd7.jpg","text":"TemporaryFile(/tmp/multipartBody1216969840461944423asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671972973,"filename":"image_23012025_23_38_36_5190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f21be1aa2f4f94feb92e9c836b38166d.jpg","text":"TemporaryFile(/tmp/multipartBody5032234722535528924asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671972973,"filename":"image_23012025_23_38_42_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/466193726dcba3c2a7f5cb30e3e8a699.jpg","text":"TemporaryFile(/tmp/multipartBody5814202079665520362asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671972973,"filename":"image_23012025_23_38_25_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d5b3c8807d4637ffe1fe6552c5c82e7a.jpg","text":"TemporaryFile(/tmp/multipartBody5629780038354060038asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671972973,"filename":"image_23012025_23_38_12_6199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/18cc0eb0eeedfbd6241f7aa5e20d2e2a.jpg","text":"TemporaryFile(/tmp/multipartBody3383420666017934008asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737671972973,"filename":"image_23012025_23_38_48_6197.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330888290","file1":"1330888287","file0":"1330888285","file4":"1330888299","file5":"1330888301","file3":"1330888295"},"map_files_photo_id_array":[{"photo_id":"1330888301","filename":"file5"},{"photo_id":"1330888290","filename":"file2"},{"photo_id":"1330888299","filename":"file4"},{"photo_id":"1330888287","filename":"file1"},{"photo_id":"1330888285","filename":"file0"},{"photo_id":"1330888295","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330888299":["hashtag1","hashtag2"]},{"1330888290":["hashtag1","hashtag2"]},{"1330888287":["hashtag1","hashtag2"]},{"1330888295":["hashtag1","hashtag2"]},{"1330888301":["hashtag1","hashtag2"]},{"1330888285":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330888299, 1330888290, 1330888287, 1330888295, 1330888301, 1330888285)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.287050485610962 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:39:32.160495
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/39/image_23012025_23_39_55_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/23/39/image_23012025_23_39_48_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/23/39/image_23012025_23_39_42_6200.jpg', 2), ('/home/nano/Desktop/images/23012025/23/39/image_23012025_23_39_36_5192.jpg', 2), ('/home/nano/Desktop/images/23012025/23/39/image_23012025_23_39_25_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/23/39/image_23012025_23_39_18_6197.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/39/image_23012025_23_39_55_6196.jpg', '/home/nano/Desktop/images/23012025/23/39/image_23012025_23_39_48_6196.jpg', '/home/nano/Desktop/images/23012025/23/39/image_23012025_23_39_42_6200.jpg', '/home/nano/Desktop/images/23012025/23/39/image_23012025_23_39_36_5192.jpg', '/home/nano/Desktop/images/23012025/23/39/image_23012025_23_39_25_6197.jpg', '/home/nano/Desktop/images/23012025/23/39/image_23012025_23_39_18_6197.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/39/image_23012025_23_39_55_6196.jpg
/home/nano/Desktop/images/23012025/23/39/image_23012025_23_39_48_6196.jpg
/home/nano/Desktop/images/23012025/23/39/image_23012025_23_39_42_6200.jpg
/home/nano/Desktop/images/23012025/23/39/image_23012025_23_39_36_5192.jpg
/home/nano/Desktop/images/23012025/23/39/image_23012025_23_39_25_6197.jpg
/home/nano/Desktop/images/23012025/23/39/image_23012025_23_39_18_6197.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330888408","1330888413","1330888416","1330888410","1330888404","1330888400"],"photo_ids_order":["1330888400","1330888404","1330888408","1330888410","1330888413","1330888416"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9ac4899421a474242167012f7c4d4431.jpg","text":"TemporaryFile(/tmp/multipartBody2530954941122294495asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672032956,"filename":"image_23012025_23_39_42_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/adab3e5b9265db80fbe8ca43c383713f.jpg","text":"TemporaryFile(/tmp/multipartBody3010159382425112005asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672032956,"filename":"image_23012025_23_39_25_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b5432fbc6504901c70b896a9a280765a.jpg","text":"TemporaryFile(/tmp/multipartBody5175070124405078889asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672032956,"filename":"image_23012025_23_39_18_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ba5833c9e0eb873f1279830c76e9727e.jpg","text":"TemporaryFile(/tmp/multipartBody6020080764362849679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672032956,"filename":"image_23012025_23_39_36_5192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c6dc7a04b6c1e808cadbe3ef1f620e54.jpg","text":"TemporaryFile(/tmp/multipartBody7875721653089220821asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672032956,"filename":"image_23012025_23_39_48_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f79f49f8fe66129e4f5583bcc027780c.jpg","text":"TemporaryFile(/tmp/multipartBody7448075239523516329asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672032956,"filename":"image_23012025_23_39_55_6196.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330888408","file1":"1330888404","file0":"1330888400","file4":"1330888413","file5":"1330888416","file3":"1330888410"},"map_files_photo_id_array":[{"photo_id":"1330888416","filename":"file5"},{"photo_id":"1330888408","filename":"file2"},{"photo_id":"1330888413","filename":"file4"},{"photo_id":"1330888404","filename":"file1"},{"photo_id":"1330888400","filename":"file0"},{"photo_id":"1330888410","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330888408":["hashtag1","hashtag2"]},{"1330888413":["hashtag1","hashtag2"]},{"1330888416":["hashtag1","hashtag2"]},{"1330888410":["hashtag1","hashtag2"]},{"1330888404":["hashtag1","hashtag2"]},{"1330888400":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330888408, 1330888413, 1330888416, 1330888410, 1330888404, 1330888400)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.247420072555542 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:40:32.223379
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/40/image_23012025_23_40_54_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/40/image_23012025_23_40_48_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/23/40/image_23012025_23_40_42_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/23/40/image_23012025_23_40_36_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/23/40/image_23012025_23_40_31_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/23/40/image_23012025_23_40_25_6189.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/40/image_23012025_23_40_54_6187.jpg', '/home/nano/Desktop/images/23012025/23/40/image_23012025_23_40_48_6188.jpg', '/home/nano/Desktop/images/23012025/23/40/image_23012025_23_40_42_6194.jpg', '/home/nano/Desktop/images/23012025/23/40/image_23012025_23_40_36_5178.jpg', '/home/nano/Desktop/images/23012025/23/40/image_23012025_23_40_31_6188.jpg', '/home/nano/Desktop/images/23012025/23/40/image_23012025_23_40_25_6189.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/40/image_23012025_23_40_54_6187.jpg
/home/nano/Desktop/images/23012025/23/40/image_23012025_23_40_48_6188.jpg
/home/nano/Desktop/images/23012025/23/40/image_23012025_23_40_42_6194.jpg
/home/nano/Desktop/images/23012025/23/40/image_23012025_23_40_36_5178.jpg
/home/nano/Desktop/images/23012025/23/40/image_23012025_23_40_31_6188.jpg
/home/nano/Desktop/images/23012025/23/40/image_23012025_23_40_25_6189.jpg
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330888435","1330888900","1330888488","1330888437","1330888673","1330888439"],"photo_ids_order":["1330888435","1330888437","1330888439","1330888488","1330888673","1330888900"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/5eaa19c5a24f8a11449586973f7bc741.jpg","text":"TemporaryFile(/tmp/multipartBody4154273472299590906asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672092858,"filename":"image_23012025_23_40_54_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7638b1699fda318d3055f011ffd41023.jpg","text":"TemporaryFile(/tmp/multipartBody5808047280597042564asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672092858,"filename":"image_23012025_23_40_25_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/390a393d088c900c337fc94b7d00e8d4.jpg","text":"TemporaryFile(/tmp/multipartBody6638084142809447108asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672092858,"filename":"image_23012025_23_40_36_5178.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2a3ebc0afa3c05ad65451a704a36e76c.jpg","text":"TemporaryFile(/tmp/multipartBody8822426042965631685asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672092858,"filename":"image_23012025_23_40_48_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2a76107550d434d32208551c2fc40bf7.jpg","text":"TemporaryFile(/tmp/multipartBody9187752393223243634asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672092858,"filename":"image_23012025_23_40_31_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6ee2902d25d593d41314b34cfa9a6c98.jpg","text":"TemporaryFile(/tmp/multipartBody7420606711454080204asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672092858,"filename":"image_23012025_23_40_42_6194.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330888439","file1":"1330888437","file0":"1330888435","file4":"1330888673","file5":"1330888900","file3":"1330888488"},"map_files_photo_id_array":[{"photo_id":"1330888900","filename":"file5"},{"photo_id":"1330888439","filename":"file2"},{"photo_id":"1330888673","filename":"file4"},{"photo_id":"1330888437","filename":"file1"},{"photo_id":"1330888435","filename":"file0"},{"photo_id":"1330888488","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330888435":["hashtag1","hashtag2"]},{"1330888900":["hashtag1","hashtag2"]},{"1330888488":["hashtag1","hashtag2"]},{"1330888437":["hashtag1","hashtag2"]},{"1330888673":["hashtag1","hashtag2"]},{"1330888439":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330888435, 1330888900, 1330888488, 1330888437, 1330888673, 1330888439)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.43392777442932 secondes ---
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:41:32.351749
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/41/image_23012025_23_41_54_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/23/41/image_23012025_23_41_48_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/23/41/image_23012025_23_41_42_5185.jpg', 2), ('/home/nano/Desktop/images/23012025/23/41/image_23012025_23_41_37_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/23/41/image_23012025_23_41_31_6194.jpg', 2), ('/home/nano/Desktop/images/23012025/23/41/image_23012025_23_41_24_6199.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/41/image_23012025_23_41_54_6189.jpg', '/home/nano/Desktop/images/23012025/23/41/image_23012025_23_41_48_6195.jpg', '/home/nano/Desktop/images/23012025/23/41/image_23012025_23_41_42_5185.jpg', '/home/nano/Desktop/images/23012025/23/41/image_23012025_23_41_37_6195.jpg', '/home/nano/Desktop/images/23012025/23/41/image_23012025_23_41_31_6194.jpg', '/home/nano/Desktop/images/23012025/23/41/image_23012025_23_41_24_6199.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/41/image_23012025_23_41_54_6189.jpg
/home/nano/Desktop/images/23012025/23/41/image_23012025_23_41_48_6195.jpg
/home/nano/Desktop/images/23012025/23/41/image_23012025_23_41_42_5185.jpg
/home/nano/Desktop/images/23012025/23/41/image_23012025_23_41_37_6195.jpg
/home/nano/Desktop/images/23012025/23/41/image_23012025_23_41_31_6194.jpg
/home/nano/Desktop/images/23012025/23/41/image_23012025_23_41_24_6199.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330889970","1330889973","1330889963","1330889966","1330889983","1330889992"],"photo_ids_order":["1330889963","1330889966","1330889970","1330889973","1330889983","1330889992"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9901853148dc0e2ecbc410126e5acdec.jpg","text":"TemporaryFile(/tmp/multipartBody4226957446526880268asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672153267,"filename":"image_23012025_23_41_42_5185.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/489238deba5580569137866ccfa5c8aa.jpg","text":"TemporaryFile(/tmp/multipartBody8958656918138976729asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672153267,"filename":"image_23012025_23_41_37_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6191a0abd935b641329c67432810b71a.jpg","text":"TemporaryFile(/tmp/multipartBody3946723253675133184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672153267,"filename":"image_23012025_23_41_54_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f97660b53e0ce855860d478c0add9987.jpg","text":"TemporaryFile(/tmp/multipartBody5537102116101848893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672153267,"filename":"image_23012025_23_41_48_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/812b41b6b54c11c46e71c6f96a0dea31.jpg","text":"TemporaryFile(/tmp/multipartBody300030565323167242asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672153267,"filename":"image_23012025_23_41_31_6194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/87a867034ac973420de2c66cf2e14de8.jpg","text":"TemporaryFile(/tmp/multipartBody2001982705479765196asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672153267,"filename":"image_23012025_23_41_24_6199.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330889970","file1":"1330889966","file0":"1330889963","file4":"1330889983","file5":"1330889992","file3":"1330889973"},"map_files_photo_id_array":[{"photo_id":"1330889992","filename":"file5"},{"photo_id":"1330889970","filename":"file2"},{"photo_id":"1330889983","filename":"file4"},{"photo_id":"1330889966","filename":"file1"},{"photo_id":"1330889963","filename":"file0"},{"photo_id":"1330889973","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330889970":["hashtag1","hashtag2"]},{"1330889973":["hashtag1","hashtag2"]},{"1330889963":["hashtag1","hashtag2"]},{"1330889966":["hashtag1","hashtag2"]},{"1330889983":["hashtag1","hashtag2"]},{"1330889992":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330889970, 1330889973, 1330889963, 1330889966, 1330889983, 1330889992)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.15552592277527 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:42:32.452282
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/42/image_23012025_23_42_54_6199.jpg', 2), ('/home/nano/Desktop/images/23012025/23/42/image_23012025_23_42_48_6211.jpg', 2), ('/home/nano/Desktop/images/23012025/23/42/image_23012025_23_42_42_5190.jpg', 2), ('/home/nano/Desktop/images/23012025/23/42/image_23012025_23_42_37_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/23/42/image_23012025_23_42_31_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/42/image_23012025_23_42_24_6186.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/42/image_23012025_23_42_54_6199.jpg', '/home/nano/Desktop/images/23012025/23/42/image_23012025_23_42_48_6211.jpg', '/home/nano/Desktop/images/23012025/23/42/image_23012025_23_42_42_5190.jpg', '/home/nano/Desktop/images/23012025/23/42/image_23012025_23_42_37_6189.jpg', '/home/nano/Desktop/images/23012025/23/42/image_23012025_23_42_31_6187.jpg', '/home/nano/Desktop/images/23012025/23/42/image_23012025_23_42_24_6186.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/42/image_23012025_23_42_54_6199.jpg
/home/nano/Desktop/images/23012025/23/42/image_23012025_23_42_48_6211.jpg
/home/nano/Desktop/images/23012025/23/42/image_23012025_23_42_42_5190.jpg
/home/nano/Desktop/images/23012025/23/42/image_23012025_23_42_37_6189.jpg
/home/nano/Desktop/images/23012025/23/42/image_23012025_23_42_31_6187.jpg
/home/nano/Desktop/images/23012025/23/42/image_23012025_23_42_24_6186.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330890505","1330890433","1330890453","1330890369","1330890359","1330890356"],"photo_ids_order":["1330890356","1330890359","1330890369","1330890433","1330890453","1330890505"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9255420c1ea364f1bea9bd075c44ecde.jpg","text":"TemporaryFile(/tmp/multipartBody6751421703549219485asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672213349,"filename":"image_23012025_23_42_24_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c2da23a4b1cbeecff11ada687cfd7f76.jpg","text":"TemporaryFile(/tmp/multipartBody5921396160520731588asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672213349,"filename":"image_23012025_23_42_37_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4b563f7a9b6e4c94935bc95364d4ffae.jpg","text":"TemporaryFile(/tmp/multipartBody6500910610343061728asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672213349,"filename":"image_23012025_23_42_31_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/aad5d0de5b00ddb8c011fa35edd3bbdd.jpg","text":"TemporaryFile(/tmp/multipartBody2498217362364294701asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672213349,"filename":"image_23012025_23_42_42_5190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/152b15dc74a815924957d4c5692aaf74.jpg","text":"TemporaryFile(/tmp/multipartBody2415751722410660343asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672213349,"filename":"image_23012025_23_42_48_6211.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/858974970d8d63c49f5007f572f25c5c.jpg","text":"TemporaryFile(/tmp/multipartBody4882549124477218719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672213349,"filename":"image_23012025_23_42_54_6199.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330890369","file1":"1330890359","file0":"1330890356","file4":"1330890453","file5":"1330890505","file3":"1330890433"},"map_files_photo_id_array":[{"photo_id":"1330890505","filename":"file5"},{"photo_id":"1330890369","filename":"file2"},{"photo_id":"1330890453","filename":"file4"},{"photo_id":"1330890359","filename":"file1"},{"photo_id":"1330890356","filename":"file0"},{"photo_id":"1330890433","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330890505":["hashtag1","hashtag2"]},{"1330890433":["hashtag1","hashtag2"]},{"1330890453":["hashtag1","hashtag2"]},{"1330890369":["hashtag1","hashtag2"]},{"1330890359":["hashtag1","hashtag2"]},{"1330890356":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330890505, 1330890433, 1330890453, 1330890369, 1330890359, 1330890356)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.5014762878418 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:43:32.530257
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/43/image_23012025_23_44_01_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/23/43/image_23012025_23_43_48_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/23/43/image_23012025_23_43_42_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/43/image_23012025_23_43_37_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/23/43/image_23012025_23_43_31_6205.jpg', 2), ('/home/nano/Desktop/images/23012025/23/43/image_23012025_23_43_24_6201.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/43/image_23012025_23_44_01_6196.jpg', '/home/nano/Desktop/images/23012025/23/43/image_23012025_23_43_48_6205.jpg', '/home/nano/Desktop/images/23012025/23/43/image_23012025_23_43_42_5187.jpg', '/home/nano/Desktop/images/23012025/23/43/image_23012025_23_43_37_6204.jpg', '/home/nano/Desktop/images/23012025/23/43/image_23012025_23_43_31_6205.jpg', '/home/nano/Desktop/images/23012025/23/43/image_23012025_23_43_24_6201.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/43/image_23012025_23_44_01_6196.jpg
/home/nano/Desktop/images/23012025/23/43/image_23012025_23_43_48_6205.jpg
/home/nano/Desktop/images/23012025/23/43/image_23012025_23_43_42_5187.jpg
/home/nano/Desktop/images/23012025/23/43/image_23012025_23_43_37_6204.jpg
/home/nano/Desktop/images/23012025/23/43/image_23012025_23_43_31_6205.jpg
/home/nano/Desktop/images/23012025/23/43/image_23012025_23_43_24_6201.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330890583","1330890588","1330890573","1330890576","1330890592","1330890580"],"photo_ids_order":["1330890573","1330890576","1330890580","1330890583","1330890588","1330890592"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8b5456d7a9a22d942e213b7e1fbe4278.jpg","text":"TemporaryFile(/tmp/multipartBody7630033139276449311asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672273364,"filename":"image_23012025_23_43_37_6204.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c631fe986a29889b12d2f95f699ea560.jpg","text":"TemporaryFile(/tmp/multipartBody7283505914632616050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672273364,"filename":"image_23012025_23_43_31_6205.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cf3a946c131be7639ee2c89a1c72684c.jpg","text":"TemporaryFile(/tmp/multipartBody6022221901253974634asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672273364,"filename":"image_23012025_23_44_01_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d5497753c95b1c17199bc8438d7de1d5.jpg","text":"TemporaryFile(/tmp/multipartBody3785258473386217910asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672273364,"filename":"image_23012025_23_43_48_6205.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e054499e26d7f83d9c87406c4218082b.jpg","text":"TemporaryFile(/tmp/multipartBody1312133746633617871asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672273364,"filename":"image_23012025_23_43_24_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/06e4a02cbcaa1bea0b31e1519216712e.jpg","text":"TemporaryFile(/tmp/multipartBody5436574036671928590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672273364,"filename":"image_23012025_23_43_42_5187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330890580","file1":"1330890576","file0":"1330890573","file4":"1330890588","file5":"1330890592","file3":"1330890583"},"map_files_photo_id_array":[{"photo_id":"1330890592","filename":"file5"},{"photo_id":"1330890580","filename":"file2"},{"photo_id":"1330890588","filename":"file4"},{"photo_id":"1330890576","filename":"file1"},{"photo_id":"1330890573","filename":"file0"},{"photo_id":"1330890583","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330890583":["hashtag1","hashtag2"]},{"1330890588":["hashtag1","hashtag2"]},{"1330890573":["hashtag1","hashtag2"]},{"1330890576":["hashtag1","hashtag2"]},{"1330890592":["hashtag1","hashtag2"]},{"1330890580":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330890583, 1330890588, 1330890573, 1330890576, 1330890592, 1330890580)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.24667453765869 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:44:32.633366
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/44/image_23012025_23_44_54_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/23/44/image_23012025_23_44_48_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/23/44/image_23012025_23_44_42_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/44/image_23012025_23_44_37_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/23/44/image_23012025_23_44_31_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/23/44/image_23012025_23_44_24_6195.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/44/image_23012025_23_44_54_6191.jpg', '/home/nano/Desktop/images/23012025/23/44/image_23012025_23_44_48_6197.jpg', '/home/nano/Desktop/images/23012025/23/44/image_23012025_23_44_42_5187.jpg', '/home/nano/Desktop/images/23012025/23/44/image_23012025_23_44_37_6197.jpg', '/home/nano/Desktop/images/23012025/23/44/image_23012025_23_44_31_6198.jpg', '/home/nano/Desktop/images/23012025/23/44/image_23012025_23_44_24_6195.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/44/image_23012025_23_44_54_6191.jpg
/home/nano/Desktop/images/23012025/23/44/image_23012025_23_44_48_6197.jpg
/home/nano/Desktop/images/23012025/23/44/image_23012025_23_44_42_5187.jpg
/home/nano/Desktop/images/23012025/23/44/image_23012025_23_44_37_6197.jpg
/home/nano/Desktop/images/23012025/23/44/image_23012025_23_44_31_6198.jpg
/home/nano/Desktop/images/23012025/23/44/image_23012025_23_44_24_6195.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330890680","1330890683","1330890677","1330890691","1330890685","1330890688"],"photo_ids_order":["1330890677","1330890680","1330890683","1330890685","1330890688","1330890691"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ca74e287d1920a1ef8d1e4b54c606838.jpg","text":"TemporaryFile(/tmp/multipartBody3113614758593385726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672333519,"filename":"image_23012025_23_44_48_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7ec49bebe38556e0c40df95d8f354116.jpg","text":"TemporaryFile(/tmp/multipartBody3459257983910894907asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672333519,"filename":"image_23012025_23_44_42_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/d7d639efb91b67751d0993a8c95406fb.jpg","text":"TemporaryFile(/tmp/multipartBody6097375960144789220asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672333519,"filename":"image_23012025_23_44_54_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/13d4e8ea5d8369e4bfe5e4ac28d91850.jpg","text":"TemporaryFile(/tmp/multipartBody3715531058406070asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672333519,"filename":"image_23012025_23_44_24_6195.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/71dc62c73de8c67206a2fdae7d459668.jpg","text":"TemporaryFile(/tmp/multipartBody1437960745901808958asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672333519,"filename":"image_23012025_23_44_37_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cfe30a6dd29b08ab8ec5c94f99a33c21.jpg","text":"TemporaryFile(/tmp/multipartBody5807984858723980643asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672333519,"filename":"image_23012025_23_44_31_6198.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330890683","file1":"1330890680","file0":"1330890677","file4":"1330890688","file5":"1330890691","file3":"1330890685"},"map_files_photo_id_array":[{"photo_id":"1330890691","filename":"file5"},{"photo_id":"1330890683","filename":"file2"},{"photo_id":"1330890688","filename":"file4"},{"photo_id":"1330890680","filename":"file1"},{"photo_id":"1330890677","filename":"file0"},{"photo_id":"1330890685","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330890680":["hashtag1","hashtag2"]},{"1330890683":["hashtag1","hashtag2"]},{"1330890677":["hashtag1","hashtag2"]},{"1330890691":["hashtag1","hashtag2"]},{"1330890685":["hashtag1","hashtag2"]},{"1330890688":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330890680, 1330890683, 1330890677, 1330890691, 1330890685, 1330890688)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.10375094413757 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:45:32.797303
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/45/image_23012025_23_45_54_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/23/45/image_23012025_23_45_48_5176.jpg', 2), ('/home/nano/Desktop/images/23012025/23/45/image_23012025_23_45_43_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/23/45/image_23012025_23_45_37_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/45/image_23012025_23_45_30_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/23/45/image_23012025_23_45_24_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/45/image_23012025_23_45_54_6188.jpg', '/home/nano/Desktop/images/23012025/23/45/image_23012025_23_45_48_5176.jpg', '/home/nano/Desktop/images/23012025/23/45/image_23012025_23_45_43_6188.jpg', '/home/nano/Desktop/images/23012025/23/45/image_23012025_23_45_37_6187.jpg', '/home/nano/Desktop/images/23012025/23/45/image_23012025_23_45_30_6190.jpg', '/home/nano/Desktop/images/23012025/23/45/image_23012025_23_45_24_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/45/image_23012025_23_45_54_6188.jpg
/home/nano/Desktop/images/23012025/23/45/image_23012025_23_45_48_5176.jpg
/home/nano/Desktop/images/23012025/23/45/image_23012025_23_45_43_6188.jpg
/home/nano/Desktop/images/23012025/23/45/image_23012025_23_45_37_6187.jpg
/home/nano/Desktop/images/23012025/23/45/image_23012025_23_45_30_6190.jpg
/home/nano/Desktop/images/23012025/23/45/image_23012025_23_45_24_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330890724","1330890733","1330890715","1330890741","1330890711","1330890737"],"photo_ids_order":["1330890711","1330890715","1330890724","1330890733","1330890737","1330890741"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/1156d852b2168e2f459fcf82343ae977.jpg","text":"TemporaryFile(/tmp/multipartBody8994347783822399934asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672393521,"filename":"image_23012025_23_45_43_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b6b3e74f115004dcc6ae2d8d15a61865.jpg","text":"TemporaryFile(/tmp/multipartBody6213267374864727530asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672393521,"filename":"image_23012025_23_45_37_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/afec6560c2a386be06357cac4dabb9f5.jpg","text":"TemporaryFile(/tmp/multipartBody3977454509322995078asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672393521,"filename":"image_23012025_23_45_48_5176.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0aaa4231e58be9d55c7563fcf0bdd25a.jpg","text":"TemporaryFile(/tmp/multipartBody5432520863519822175asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672393521,"filename":"image_23012025_23_45_24_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6a60602aa4781b39977a950af45ff619.jpg","text":"TemporaryFile(/tmp/multipartBody167009199703293047asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672393521,"filename":"image_23012025_23_45_54_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6d64cd8d5140afdbe7c4643a5a80eaea.jpg","text":"TemporaryFile(/tmp/multipartBody2274001292792203541asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672393521,"filename":"image_23012025_23_45_30_6190.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330890724","file1":"1330890715","file0":"1330890711","file4":"1330890737","file5":"1330890741","file3":"1330890733"},"map_files_photo_id_array":[{"photo_id":"1330890741","filename":"file5"},{"photo_id":"1330890724","filename":"file2"},{"photo_id":"1330890737","filename":"file4"},{"photo_id":"1330890715","filename":"file1"},{"photo_id":"1330890711","filename":"file0"},{"photo_id":"1330890733","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330890724":["hashtag1","hashtag2"]},{"1330890733":["hashtag1","hashtag2"]},{"1330890715":["hashtag1","hashtag2"]},{"1330890741":["hashtag1","hashtag2"]},{"1330890711":["hashtag1","hashtag2"]},{"1330890737":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330890724, 1330890733, 1330890715, 1330890741, 1330890711, 1330890737)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.81188654899597 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:46:31.892817
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/46/image_23012025_23_46_54_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/23/46/image_23012025_23_46_48_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/23/46/image_23012025_23_46_43_6185.jpg', 2), ('/home/nano/Desktop/images/23012025/23/46/image_23012025_23_46_37_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/23/46/image_23012025_23_46_30_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/46/image_23012025_23_46_24_6193.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/46/image_23012025_23_46_54_6190.jpg', '/home/nano/Desktop/images/23012025/23/46/image_23012025_23_46_48_5179.jpg', '/home/nano/Desktop/images/23012025/23/46/image_23012025_23_46_43_6185.jpg', '/home/nano/Desktop/images/23012025/23/46/image_23012025_23_46_37_6188.jpg', '/home/nano/Desktop/images/23012025/23/46/image_23012025_23_46_30_6187.jpg', '/home/nano/Desktop/images/23012025/23/46/image_23012025_23_46_24_6193.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/46/image_23012025_23_46_54_6190.jpg
/home/nano/Desktop/images/23012025/23/46/image_23012025_23_46_48_5179.jpg
/home/nano/Desktop/images/23012025/23/46/image_23012025_23_46_43_6185.jpg
/home/nano/Desktop/images/23012025/23/46/image_23012025_23_46_37_6188.jpg
/home/nano/Desktop/images/23012025/23/46/image_23012025_23_46_30_6187.jpg
/home/nano/Desktop/images/23012025/23/46/image_23012025_23_46_24_6193.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330890781","1330890777","1330890768","1330890773","1330890796","1330890787"],"photo_ids_order":["1330890768","1330890773","1330890777","1330890781","1330890787","1330890796"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a4ebb8a140f8fe16e74de413268511ee.jpg","text":"TemporaryFile(/tmp/multipartBody8647802987274340030asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672452501,"filename":"image_23012025_23_46_37_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9249783ff6da33c87d07ebde74d14788.jpg","text":"TemporaryFile(/tmp/multipartBody7626219063324117881asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672452501,"filename":"image_23012025_23_46_43_6185.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c91fab20366b572a8837225440f9470e.jpg","text":"TemporaryFile(/tmp/multipartBody1027797473480542875asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672452501,"filename":"image_23012025_23_46_54_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/bbd2b3cad20d2413ddc328d43f535e95.jpg","text":"TemporaryFile(/tmp/multipartBody3050465976900080448asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672452501,"filename":"image_23012025_23_46_48_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b33279d0a347c04bf67f15660bcd57c0.jpg","text":"TemporaryFile(/tmp/multipartBody7797491288133423093asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672452501,"filename":"image_23012025_23_46_24_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ffebdd6a23f0696d7646b68e6fb78bf7.jpg","text":"TemporaryFile(/tmp/multipartBody595706431795655936asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672452501,"filename":"image_23012025_23_46_30_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330890777","file1":"1330890773","file0":"1330890768","file4":"1330890787","file5":"1330890796","file3":"1330890781"},"map_files_photo_id_array":[{"photo_id":"1330890796","filename":"file5"},{"photo_id":"1330890777","filename":"file2"},{"photo_id":"1330890787","filename":"file4"},{"photo_id":"1330890773","filename":"file1"},{"photo_id":"1330890768","filename":"file0"},{"photo_id":"1330890781","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330890781":["hashtag1","hashtag2"]},{"1330890777":["hashtag1","hashtag2"]},{"1330890768":["hashtag1","hashtag2"]},{"1330890773":["hashtag1","hashtag2"]},{"1330890796":["hashtag1","hashtag2"]},{"1330890787":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330890781, 1330890777, 1330890768, 1330890773, 1330890796, 1330890787)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.99933695793152 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:47:32.028817
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/47/image_23012025_23_47_54_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/47/image_23012025_23_47_49_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/23/47/image_23012025_23_47_43_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/23/47/image_23012025_23_47_36_6202.jpg', 2), ('/home/nano/Desktop/images/23012025/23/47/image_23012025_23_47_30_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/23/47/image_23012025_23_47_24_5181.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/47/image_23012025_23_47_54_5187.jpg', '/home/nano/Desktop/images/23012025/23/47/image_23012025_23_47_49_6189.jpg', '/home/nano/Desktop/images/23012025/23/47/image_23012025_23_47_43_6190.jpg', '/home/nano/Desktop/images/23012025/23/47/image_23012025_23_47_36_6202.jpg', '/home/nano/Desktop/images/23012025/23/47/image_23012025_23_47_30_6190.jpg', '/home/nano/Desktop/images/23012025/23/47/image_23012025_23_47_24_5181.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/47/image_23012025_23_47_54_5187.jpg
/home/nano/Desktop/images/23012025/23/47/image_23012025_23_47_49_6189.jpg
/home/nano/Desktop/images/23012025/23/47/image_23012025_23_47_43_6190.jpg
/home/nano/Desktop/images/23012025/23/47/image_23012025_23_47_36_6202.jpg
/home/nano/Desktop/images/23012025/23/47/image_23012025_23_47_30_6190.jpg
/home/nano/Desktop/images/23012025/23/47/image_23012025_23_47_24_5181.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330890874","1330890868","1330890866","1330890875","1330890877","1330890871"],"photo_ids_order":["1330890866","1330890868","1330890871","1330890874","1330890875","1330890877"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8940fc0bcc3032b74f048b9a241e849c.jpg","text":"TemporaryFile(/tmp/multipartBody4907675562916335386asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672512897,"filename":"image_23012025_23_47_36_6202.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a0185260c98660f6f4a7a85d9c2d0a92.jpg","text":"TemporaryFile(/tmp/multipartBody1763727226328284578asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672512897,"filename":"image_23012025_23_47_49_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7b751191c89d0a187332c1e8fabfbe4f.jpg","text":"TemporaryFile(/tmp/multipartBody653197066895259403asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672512897,"filename":"image_23012025_23_47_54_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/7fca39e96a37937d4d931a99bbff5d36.jpg","text":"TemporaryFile(/tmp/multipartBody8523808571626561611asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672512897,"filename":"image_23012025_23_47_30_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/14fa0c2e1344d467c112b0b8c5015397.jpg","text":"TemporaryFile(/tmp/multipartBody4502986167170455270asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672512897,"filename":"image_23012025_23_47_24_5181.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4bca3efd9cd00df663aca40ccb026062.jpg","text":"TemporaryFile(/tmp/multipartBody7333070778302393891asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672512897,"filename":"image_23012025_23_47_43_6190.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330890871","file1":"1330890868","file0":"1330890866","file4":"1330890875","file5":"1330890877","file3":"1330890874"},"map_files_photo_id_array":[{"photo_id":"1330890877","filename":"file5"},{"photo_id":"1330890871","filename":"file2"},{"photo_id":"1330890875","filename":"file4"},{"photo_id":"1330890868","filename":"file1"},{"photo_id":"1330890866","filename":"file0"},{"photo_id":"1330890874","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330890874":["hashtag1","hashtag2"]},{"1330890868":["hashtag1","hashtag2"]},{"1330890866":["hashtag1","hashtag2"]},{"1330890875":["hashtag1","hashtag2"]},{"1330890877":["hashtag1","hashtag2"]},{"1330890871":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330890874, 1330890868, 1330890866, 1330890875, 1330890877, 1330890871)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.1217987537384 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:48:32.097905
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/48/image_23012025_23_48_54_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/23/48/image_23012025_23_48_49_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/48/image_23012025_23_48_43_6185.jpg', 2), ('/home/nano/Desktop/images/23012025/23/48/image_23012025_23_48_36_6211.jpg', 2), ('/home/nano/Desktop/images/23012025/23/48/image_23012025_23_48_30_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/23/48/image_23012025_23_48_24_5186.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/48/image_23012025_23_48_54_5179.jpg', '/home/nano/Desktop/images/23012025/23/48/image_23012025_23_48_49_6187.jpg', '/home/nano/Desktop/images/23012025/23/48/image_23012025_23_48_43_6185.jpg', '/home/nano/Desktop/images/23012025/23/48/image_23012025_23_48_36_6211.jpg', '/home/nano/Desktop/images/23012025/23/48/image_23012025_23_48_30_6193.jpg', '/home/nano/Desktop/images/23012025/23/48/image_23012025_23_48_24_5186.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/48/image_23012025_23_48_54_5179.jpg
/home/nano/Desktop/images/23012025/23/48/image_23012025_23_48_49_6187.jpg
/home/nano/Desktop/images/23012025/23/48/image_23012025_23_48_43_6185.jpg
/home/nano/Desktop/images/23012025/23/48/image_23012025_23_48_36_6211.jpg
/home/nano/Desktop/images/23012025/23/48/image_23012025_23_48_30_6193.jpg
/home/nano/Desktop/images/23012025/23/48/image_23012025_23_48_24_5186.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330890946","1330890931","1330890949","1330890940","1330890943","1330890935"],"photo_ids_order":["1330890931","1330890935","1330890940","1330890943","1330890946","1330890949"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/73719e3d413fcfa1c6af9c763d832cca.jpg","text":"TemporaryFile(/tmp/multipartBody4013930313906307160asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672572843,"filename":"image_23012025_23_48_30_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/00864a26b37450f2869a495606c61d66.jpg","text":"TemporaryFile(/tmp/multipartBody2589389160234625229asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672572843,"filename":"image_23012025_23_48_54_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2e1f5924662202f3008484c9006f563f.jpg","text":"TemporaryFile(/tmp/multipartBody5292127055741731865asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672572843,"filename":"image_23012025_23_48_24_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ed01e2f954705283fb28d040ef3479de.jpg","text":"TemporaryFile(/tmp/multipartBody6128565443933310124asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672572843,"filename":"image_23012025_23_48_43_6185.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e04f21e1cfaa94c375f50487dfd7b8f6.jpg","text":"TemporaryFile(/tmp/multipartBody8987988582748157877asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672572843,"filename":"image_23012025_23_48_36_6211.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/54799368d262697729f90bd222f24f25.jpg","text":"TemporaryFile(/tmp/multipartBody1583999116782496646asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672572843,"filename":"image_23012025_23_48_49_6187.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330890940","file1":"1330890935","file0":"1330890931","file4":"1330890946","file5":"1330890949","file3":"1330890943"},"map_files_photo_id_array":[{"photo_id":"1330890949","filename":"file5"},{"photo_id":"1330890940","filename":"file2"},{"photo_id":"1330890946","filename":"file4"},{"photo_id":"1330890935","filename":"file1"},{"photo_id":"1330890931","filename":"file0"},{"photo_id":"1330890943","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330890946":["hashtag1","hashtag2"]},{"1330890931":["hashtag1","hashtag2"]},{"1330890949":["hashtag1","hashtag2"]},{"1330890940":["hashtag1","hashtag2"]},{"1330890943":["hashtag1","hashtag2"]},{"1330890935":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330890946, 1330890931, 1330890949, 1330890940, 1330890943, 1330890935)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.1222722530365 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:49:32.188678
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/49/image_23012025_23_49_54_5187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/49/image_23012025_23_49_49_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/23/49/image_23012025_23_49_43_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/23/49/image_23012025_23_49_36_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/23/49/image_23012025_23_49_30_6204.jpg', 2), ('/home/nano/Desktop/images/23012025/23/49/image_23012025_23_49_24_5186.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/49/image_23012025_23_49_54_5187.jpg', '/home/nano/Desktop/images/23012025/23/49/image_23012025_23_49_49_6196.jpg', '/home/nano/Desktop/images/23012025/23/49/image_23012025_23_49_43_6196.jpg', '/home/nano/Desktop/images/23012025/23/49/image_23012025_23_49_36_6197.jpg', '/home/nano/Desktop/images/23012025/23/49/image_23012025_23_49_30_6204.jpg', '/home/nano/Desktop/images/23012025/23/49/image_23012025_23_49_24_5186.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/49/image_23012025_23_49_54_5187.jpg
/home/nano/Desktop/images/23012025/23/49/image_23012025_23_49_49_6196.jpg
/home/nano/Desktop/images/23012025/23/49/image_23012025_23_49_43_6196.jpg
/home/nano/Desktop/images/23012025/23/49/image_23012025_23_49_36_6197.jpg
/home/nano/Desktop/images/23012025/23/49/image_23012025_23_49_30_6204.jpg
/home/nano/Desktop/images/23012025/23/49/image_23012025_23_49_24_5186.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330891881","1330891895","1330891916","1330891919","1330891891","1330891912"],"photo_ids_order":["1330891881","1330891891","1330891895","1330891912","1330891916","1330891919"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c1e6f37e380884862a4ba8e54f48e16b.jpg","text":"TemporaryFile(/tmp/multipartBody4605207956965724893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672633009,"filename":"image_23012025_23_49_54_5187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e72a4cc98cd574c19ffcd7bd093ef82c.jpg","text":"TemporaryFile(/tmp/multipartBody9070860149491616389asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672633009,"filename":"image_23012025_23_49_43_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/899dd69a6e51429007187cec3ffb3317.jpg","text":"TemporaryFile(/tmp/multipartBody2815310418685490305asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672633009,"filename":"image_23012025_23_49_30_6204.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/38d76160809ff3a62effd85669c1505c.jpg","text":"TemporaryFile(/tmp/multipartBody2872936899395548009asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672633009,"filename":"image_23012025_23_49_24_5186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/f1ede10d58bc66b887458c26f06a5a7e.jpg","text":"TemporaryFile(/tmp/multipartBody2999733125777546439asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672633009,"filename":"image_23012025_23_49_49_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/76b801ed3daf348c2a2a237611a35f09.jpg","text":"TemporaryFile(/tmp/multipartBody2478847720053321227asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672633009,"filename":"image_23012025_23_49_36_6197.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330891895","file1":"1330891891","file0":"1330891881","file4":"1330891916","file5":"1330891919","file3":"1330891912"},"map_files_photo_id_array":[{"photo_id":"1330891919","filename":"file5"},{"photo_id":"1330891895","filename":"file2"},{"photo_id":"1330891916","filename":"file4"},{"photo_id":"1330891891","filename":"file1"},{"photo_id":"1330891881","filename":"file0"},{"photo_id":"1330891912","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330891881":["hashtag1","hashtag2"]},{"1330891895":["hashtag1","hashtag2"]},{"1330891916":["hashtag1","hashtag2"]},{"1330891919":["hashtag1","hashtag2"]},{"1330891891":["hashtag1","hashtag2"]},{"1330891912":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330891881, 1330891895, 1330891916, 1330891919, 1330891891, 1330891912)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.14569115638733 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:50:32.282658
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/50/image_23012025_23_50_55_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/50/image_23012025_23_50_49_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/23/50/image_23012025_23_50_42_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/23/50/image_23012025_23_50_36_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/23/50/image_23012025_23_50_30_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/23/50/image_23012025_23_50_24_5179.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/50/image_23012025_23_50_55_6187.jpg', '/home/nano/Desktop/images/23012025/23/50/image_23012025_23_50_49_6190.jpg', '/home/nano/Desktop/images/23012025/23/50/image_23012025_23_50_42_6189.jpg', '/home/nano/Desktop/images/23012025/23/50/image_23012025_23_50_36_6190.jpg', '/home/nano/Desktop/images/23012025/23/50/image_23012025_23_50_30_6193.jpg', '/home/nano/Desktop/images/23012025/23/50/image_23012025_23_50_24_5179.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/50/image_23012025_23_50_55_6187.jpg
/home/nano/Desktop/images/23012025/23/50/image_23012025_23_50_49_6190.jpg
/home/nano/Desktop/images/23012025/23/50/image_23012025_23_50_42_6189.jpg
/home/nano/Desktop/images/23012025/23/50/image_23012025_23_50_36_6190.jpg
/home/nano/Desktop/images/23012025/23/50/image_23012025_23_50_30_6193.jpg
/home/nano/Desktop/images/23012025/23/50/image_23012025_23_50_24_5179.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330892307","1330892192","1330892310","1330892084","1330892345","1330892295"],"photo_ids_order":["1330892084","1330892192","1330892295","1330892307","1330892310","1330892345"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/279f4b58df704a0c8aaadeb3ce129d75.jpg","text":"TemporaryFile(/tmp/multipartBody6679919612950522875asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672693017,"filename":"image_23012025_23_50_36_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9004a4e716af2995e1756eb6829b964c.jpg","text":"TemporaryFile(/tmp/multipartBody238878579637661776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672693017,"filename":"image_23012025_23_50_49_6190.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/28d1da84406b727f99de942774c9477f.jpg","text":"TemporaryFile(/tmp/multipartBody8669333263905545121asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672693017,"filename":"image_23012025_23_50_30_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fd56fbc4e27ac80078a5dfc0be3f5ec4.jpg","text":"TemporaryFile(/tmp/multipartBody9136158177086772300asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672693017,"filename":"image_23012025_23_50_55_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/6ae6a985531668318f4e90bc00faf3fe.jpg","text":"TemporaryFile(/tmp/multipartBody2345465203168201220asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672693017,"filename":"image_23012025_23_50_24_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4b166d23dab820184191048082d86b5e.jpg","text":"TemporaryFile(/tmp/multipartBody6849934905499929547asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672693017,"filename":"image_23012025_23_50_42_6189.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330892295","file1":"1330892192","file0":"1330892084","file4":"1330892310","file5":"1330892345","file3":"1330892307"},"map_files_photo_id_array":[{"photo_id":"1330892345","filename":"file5"},{"photo_id":"1330892295","filename":"file2"},{"photo_id":"1330892310","filename":"file4"},{"photo_id":"1330892192","filename":"file1"},{"photo_id":"1330892084","filename":"file0"},{"photo_id":"1330892307","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330892307":["hashtag1","hashtag2"]},{"1330892192":["hashtag1","hashtag2"]},{"1330892310":["hashtag1","hashtag2"]},{"1330892084":["hashtag1","hashtag2"]},{"1330892345":["hashtag1","hashtag2"]},{"1330892295":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330892307, 1330892192, 1330892310, 1330892084, 1330892345, 1330892295)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.281940937042236 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:51:32.392840
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/51/image_23012025_23_51_55_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/23/51/image_23012025_23_51_49_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/23/51/image_23012025_23_51_42_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/23/51/image_23012025_23_51_36_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/23/51/image_23012025_23_51_30_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/23/51/image_23012025_23_51_25_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/51/image_23012025_23_51_55_6189.jpg', '/home/nano/Desktop/images/23012025/23/51/image_23012025_23_51_49_6188.jpg', '/home/nano/Desktop/images/23012025/23/51/image_23012025_23_51_42_6188.jpg', '/home/nano/Desktop/images/23012025/23/51/image_23012025_23_51_36_6191.jpg', '/home/nano/Desktop/images/23012025/23/51/image_23012025_23_51_30_5181.jpg', '/home/nano/Desktop/images/23012025/23/51/image_23012025_23_51_25_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/51/image_23012025_23_51_55_6189.jpg
/home/nano/Desktop/images/23012025/23/51/image_23012025_23_51_49_6188.jpg
/home/nano/Desktop/images/23012025/23/51/image_23012025_23_51_42_6188.jpg
/home/nano/Desktop/images/23012025/23/51/image_23012025_23_51_36_6191.jpg
/home/nano/Desktop/images/23012025/23/51/image_23012025_23_51_30_5181.jpg
/home/nano/Desktop/images/23012025/23/51/image_23012025_23_51_25_6188.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330892484","1330892478","1330892497","1330892515","1330892509","1330892493"],"photo_ids_order":["1330892478","1330892484","1330892493","1330892497","1330892509","1330892515"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/defb38c1c77c6610e6322e2e33bedd2b.jpg","text":"TemporaryFile(/tmp/multipartBody1898161177153351685asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672753145,"filename":"image_23012025_23_51_49_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/99183fa430efac5e2c45a810a5c48518.jpg","text":"TemporaryFile(/tmp/multipartBody2592741008378948155asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672753145,"filename":"image_23012025_23_51_55_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4cd7f5bac5f29cfcbdbaff760a95d25c.jpg","text":"TemporaryFile(/tmp/multipartBody3176692330566460374asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672753145,"filename":"image_23012025_23_51_36_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e56da0616c1ce00ac40e9f9128c32a6d.jpg","text":"TemporaryFile(/tmp/multipartBody4735236594821839010asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672753145,"filename":"image_23012025_23_51_25_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/8f5ef434e6943f5dd44706487d7d3dab.jpg","text":"TemporaryFile(/tmp/multipartBody7945992756743743885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672753145,"filename":"image_23012025_23_51_30_5181.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c4f59053794a8d3d3d71efee032e9f31.jpg","text":"TemporaryFile(/tmp/multipartBody5166058626109271082asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672753145,"filename":"image_23012025_23_51_42_6188.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330892493","file1":"1330892484","file0":"1330892478","file4":"1330892509","file5":"1330892515","file3":"1330892497"},"map_files_photo_id_array":[{"photo_id":"1330892515","filename":"file5"},{"photo_id":"1330892493","filename":"file2"},{"photo_id":"1330892509","filename":"file4"},{"photo_id":"1330892484","filename":"file1"},{"photo_id":"1330892478","filename":"file0"},{"photo_id":"1330892497","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330892484":["hashtag1","hashtag2"]},{"1330892478":["hashtag1","hashtag2"]},{"1330892497":["hashtag1","hashtag2"]},{"1330892515":["hashtag1","hashtag2"]},{"1330892509":["hashtag1","hashtag2"]},{"1330892493":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330892484, 1330892478, 1330892497, 1330892515, 1330892509, 1330892493)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.817523956298828 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:52:32.459275
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_48_6185.jpg', 2), ('/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_42_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_36_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_31_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_25_6189.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_55_6188.jpg', '/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_48_6185.jpg', '/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_42_6198.jpg', '/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_36_5177.jpg', '/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_31_6187.jpg', '/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_25_6189.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_55_6188.jpg
/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_48_6185.jpg
/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_42_6198.jpg
/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_36_5177.jpg
/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_31_6187.jpg
/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_25_6189.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.5591006278991699 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:53:03.350591
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/53/image_23012025_23_54_01_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_55_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_48_6185.jpg', 2), ('/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_42_6198.jpg', 2), ('/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_36_5177.jpg', 2), ('/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_31_6187.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/53/image_23012025_23_54_01_6197.jpg', '/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_55_6188.jpg', '/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_48_6185.jpg', '/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_42_6198.jpg', '/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_36_5177.jpg', '/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_31_6187.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/53/image_23012025_23_54_01_6197.jpg
/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_55_6188.jpg
/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_48_6185.jpg
/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_42_6198.jpg
/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_36_5177.jpg
/home/nano/Desktop/images/23012025/23/52/image_23012025_23_52_31_6187.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330892757","1330892750","1330892747","1330892695","1330892697","1330892688"],"photo_ids_order":["1330892688","1330892695","1330892697","1330892747","1330892750","1330892757"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ce1baec26e0071ced9798184946d8fdc.jpg","text":"TemporaryFile(/tmp/multipartBody8663750212256463567asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672844065,"filename":"image_23012025_23_52_31_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a7e494f11d0c81332dbab78275ed6366.jpg","text":"TemporaryFile(/tmp/multipartBody1808871080570380507asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672844065,"filename":"image_23012025_23_52_36_5177.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9abd7003718b204dcaa7061960277545.jpg","text":"TemporaryFile(/tmp/multipartBody590145956296831784asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672844065,"filename":"image_23012025_23_52_42_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/4e0892c08494328e23a390efc2dbd9e8.jpg","text":"TemporaryFile(/tmp/multipartBody5201125612517698913asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672844065,"filename":"image_23012025_23_52_55_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/79d8f919c85960314d5b8b6d61a46e8e.jpg","text":"TemporaryFile(/tmp/multipartBody4359533317592211020asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672844065,"filename":"image_23012025_23_52_48_6185.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/3e836b0e542e0b68775037217f5caf97.jpg","text":"TemporaryFile(/tmp/multipartBody7338068294110473612asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672844065,"filename":"image_23012025_23_54_01_6197.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330892697","file1":"1330892695","file0":"1330892688","file4":"1330892750","file5":"1330892757","file3":"1330892747"},"map_files_photo_id_array":[{"photo_id":"1330892757","filename":"file5"},{"photo_id":"1330892697","filename":"file2"},{"photo_id":"1330892750","filename":"file4"},{"photo_id":"1330892695","filename":"file1"},{"photo_id":"1330892688","filename":"file0"},{"photo_id":"1330892747","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330892757":["hashtag1","hashtag2"]},{"1330892750":["hashtag1","hashtag2"]},{"1330892747":["hashtag1","hashtag2"]},{"1330892695":["hashtag1","hashtag2"]},{"1330892697":["hashtag1","hashtag2"]},{"1330892688":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330892757, 1330892750, 1330892747, 1330892695, 1330892697, 1330892688)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.54112148284912 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:54:03.627510
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/53/image_23012025_23_53_48_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/23/53/image_23012025_23_53_42_6195.jpg', 2), ('/home/nano/Desktop/images/23012025/23/53/image_23012025_23_53_36_5181.jpg', 2), ('/home/nano/Desktop/images/23012025/23/53/image_23012025_23_53_31_6191.jpg', 2), ('/home/nano/Desktop/images/23012025/23/53/image_23012025_23_53_25_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/23/53/image_23012025_23_53_18_6193.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/53/image_23012025_23_53_48_6192.jpg', '/home/nano/Desktop/images/23012025/23/53/image_23012025_23_53_42_6195.jpg', '/home/nano/Desktop/images/23012025/23/53/image_23012025_23_53_36_5181.jpg', '/home/nano/Desktop/images/23012025/23/53/image_23012025_23_53_31_6191.jpg', '/home/nano/Desktop/images/23012025/23/53/image_23012025_23_53_25_6193.jpg', '/home/nano/Desktop/images/23012025/23/53/image_23012025_23_53_18_6193.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/53/image_23012025_23_53_48_6192.jpg
/home/nano/Desktop/images/23012025/23/53/image_23012025_23_53_42_6195.jpg
/home/nano/Desktop/images/23012025/23/53/image_23012025_23_53_36_5181.jpg
/home/nano/Desktop/images/23012025/23/53/image_23012025_23_53_31_6191.jpg
/home/nano/Desktop/images/23012025/23/53/image_23012025_23_53_25_6193.jpg
/home/nano/Desktop/images/23012025/23/53/image_23012025_23_53_18_6193.jpg
after data_to_send, before sending request
begin to post requests
after request
uploaded 0 photos
time to upload: 0.7816269397735596 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 AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:54:32.685535
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/54/image_23012025_23_54_54_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/23/54/image_23012025_23_54_48_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/23/54/image_23012025_23_54_42_6197.jpg', 2), ('/home/nano/Desktop/images/23012025/23/54/image_23012025_23_54_36_5183.jpg', 2), ('/home/nano/Desktop/images/23012025/23/54/image_23012025_23_54_31_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/23/54/image_23012025_23_54_25_6200.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/54/image_23012025_23_54_54_6192.jpg', '/home/nano/Desktop/images/23012025/23/54/image_23012025_23_54_48_6192.jpg', '/home/nano/Desktop/images/23012025/23/54/image_23012025_23_54_42_6197.jpg', '/home/nano/Desktop/images/23012025/23/54/image_23012025_23_54_36_5183.jpg', '/home/nano/Desktop/images/23012025/23/54/image_23012025_23_54_31_6196.jpg', '/home/nano/Desktop/images/23012025/23/54/image_23012025_23_54_25_6200.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/54/image_23012025_23_54_54_6192.jpg
/home/nano/Desktop/images/23012025/23/54/image_23012025_23_54_48_6192.jpg
/home/nano/Desktop/images/23012025/23/54/image_23012025_23_54_42_6197.jpg
/home/nano/Desktop/images/23012025/23/54/image_23012025_23_54_36_5183.jpg
/home/nano/Desktop/images/23012025/23/54/image_23012025_23_54_31_6196.jpg
/home/nano/Desktop/images/23012025/23/54/image_23012025_23_54_25_6200.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330892829","1330892823","1330892826","1330892834","1330892821","1330892818"],"photo_ids_order":["1330892818","1330892821","1330892823","1330892826","1330892829","1330892834"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/9be3c196d8f6aa1298cdec989668cee6.jpg","text":"TemporaryFile(/tmp/multipartBody8825839555352436182asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672933558,"filename":"image_23012025_23_54_31_6196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/46985ce75f4e8d0bd5db45ab516f0948.jpg","text":"TemporaryFile(/tmp/multipartBody3532385203992453042asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672933558,"filename":"image_23012025_23_54_42_6197.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/60459e5b07a196807e04018f51b9f6e6.jpg","text":"TemporaryFile(/tmp/multipartBody5843656133778528361asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672933558,"filename":"image_23012025_23_54_36_5183.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/a1ed0718786887cc8f4d3b7593ba1f4d.jpg","text":"TemporaryFile(/tmp/multipartBody4402572425843533011asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672933558,"filename":"image_23012025_23_54_25_6200.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/2a3a9119e68cfa6f2593b835618eb40d.jpg","text":"TemporaryFile(/tmp/multipartBody493353831001149931asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672933558,"filename":"image_23012025_23_54_48_6192.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/faf3a12f5e6d3b408eae6fa28113b89c.jpg","text":"TemporaryFile(/tmp/multipartBody2729701991135764229asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672933558,"filename":"image_23012025_23_54_54_6192.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330892823","file1":"1330892821","file0":"1330892818","file4":"1330892829","file5":"1330892834","file3":"1330892826"},"map_files_photo_id_array":[{"photo_id":"1330892834","filename":"file5"},{"photo_id":"1330892823","filename":"file2"},{"photo_id":"1330892829","filename":"file4"},{"photo_id":"1330892821","filename":"file1"},{"photo_id":"1330892818","filename":"file0"},{"photo_id":"1330892826","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330892829":["hashtag1","hashtag2"]},{"1330892823":["hashtag1","hashtag2"]},{"1330892826":["hashtag1","hashtag2"]},{"1330892834":["hashtag1","hashtag2"]},{"1330892821":["hashtag1","hashtag2"]},{"1330892818":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330892829, 1330892823, 1330892826, 1330892834, 1330892821, 1330892818)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.236774682998657 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:55:31.817213
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/55/image_23012025_23_55_54_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/23/55/image_23012025_23_55_48_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/23/55/image_23012025_23_55_42_5178.jpg', 2), ('/home/nano/Desktop/images/23012025/23/55/image_23012025_23_55_37_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/23/55/image_23012025_23_55_31_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/23/55/image_23012025_23_55_24_6193.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/55/image_23012025_23_55_54_6189.jpg', '/home/nano/Desktop/images/23012025/23/55/image_23012025_23_55_48_6189.jpg', '/home/nano/Desktop/images/23012025/23/55/image_23012025_23_55_42_5178.jpg', '/home/nano/Desktop/images/23012025/23/55/image_23012025_23_55_37_6189.jpg', '/home/nano/Desktop/images/23012025/23/55/image_23012025_23_55_31_6189.jpg', '/home/nano/Desktop/images/23012025/23/55/image_23012025_23_55_24_6193.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/55/image_23012025_23_55_54_6189.jpg
/home/nano/Desktop/images/23012025/23/55/image_23012025_23_55_48_6189.jpg
/home/nano/Desktop/images/23012025/23/55/image_23012025_23_55_42_5178.jpg
/home/nano/Desktop/images/23012025/23/55/image_23012025_23_55_37_6189.jpg
/home/nano/Desktop/images/23012025/23/55/image_23012025_23_55_31_6189.jpg
/home/nano/Desktop/images/23012025/23/55/image_23012025_23_55_24_6193.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330892855","1330892870","1330892864","1330892860","1330892857","1330892859"],"photo_ids_order":["1330892855","1330892857","1330892859","1330892860","1330892864","1330892870"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/fd9f665c5f5b7e74147a242d830062bf.jpg","text":"TemporaryFile(/tmp/multipartBody8443863505741643072asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672992461,"filename":"image_23012025_23_55_54_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cc77dfeed43b4f46e2af04a53478d18f.jpg","text":"TemporaryFile(/tmp/multipartBody1133807209261492596asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672992461,"filename":"image_23012025_23_55_24_6193.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/0d7bf62b28a29d51477e9d9835526963.jpg","text":"TemporaryFile(/tmp/multipartBody8519370356334126631asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672992461,"filename":"image_23012025_23_55_31_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/106c8de9d1933b508de02fa51903059d.jpg","text":"TemporaryFile(/tmp/multipartBody5523633299013217027asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672992461,"filename":"image_23012025_23_55_37_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/23a25c4bd15f4fe5885a5bf5d35afdbe.jpg","text":"TemporaryFile(/tmp/multipartBody8408929307288924358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672992461,"filename":"image_23012025_23_55_48_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/cce5538a2f029afdb581ff68aaf2cadd.jpg","text":"TemporaryFile(/tmp/multipartBody6989765231458519741asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737672992461,"filename":"image_23012025_23_55_42_5178.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330892859","file1":"1330892857","file0":"1330892855","file4":"1330892864","file5":"1330892870","file3":"1330892860"},"map_files_photo_id_array":[{"photo_id":"1330892870","filename":"file5"},{"photo_id":"1330892859","filename":"file2"},{"photo_id":"1330892864","filename":"file4"},{"photo_id":"1330892857","filename":"file1"},{"photo_id":"1330892855","filename":"file0"},{"photo_id":"1330892860","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330892855":["hashtag1","hashtag2"]},{"1330892870":["hashtag1","hashtag2"]},{"1330892864":["hashtag1","hashtag2"]},{"1330892860":["hashtag1","hashtag2"]},{"1330892857":["hashtag1","hashtag2"]},{"1330892859":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330892855, 1330892870, 1330892864, 1330892860, 1330892857, 1330892859)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.04980158805847 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:56:31.907752
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/56/image_23012025_23_56_54_6189.jpg', 2), ('/home/nano/Desktop/images/23012025/23/56/image_23012025_23_56_42_5179.jpg', 2), ('/home/nano/Desktop/images/23012025/23/56/image_23012025_23_56_37_6190.jpg', 2), ('/home/nano/Desktop/images/23012025/23/56/image_23012025_23_56_31_6188.jpg', 2), ('/home/nano/Desktop/images/23012025/23/56/image_23012025_23_56_24_6187.jpg', 2), ('/home/nano/Desktop/images/23012025/23/56/image_23012025_23_56_18_6191.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/56/image_23012025_23_56_54_6189.jpg', '/home/nano/Desktop/images/23012025/23/56/image_23012025_23_56_42_5179.jpg', '/home/nano/Desktop/images/23012025/23/56/image_23012025_23_56_37_6190.jpg', '/home/nano/Desktop/images/23012025/23/56/image_23012025_23_56_31_6188.jpg', '/home/nano/Desktop/images/23012025/23/56/image_23012025_23_56_24_6187.jpg', '/home/nano/Desktop/images/23012025/23/56/image_23012025_23_56_18_6191.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/56/image_23012025_23_56_54_6189.jpg
/home/nano/Desktop/images/23012025/23/56/image_23012025_23_56_42_5179.jpg
/home/nano/Desktop/images/23012025/23/56/image_23012025_23_56_37_6190.jpg
/home/nano/Desktop/images/23012025/23/56/image_23012025_23_56_31_6188.jpg
/home/nano/Desktop/images/23012025/23/56/image_23012025_23_56_24_6187.jpg
/home/nano/Desktop/images/23012025/23/56/image_23012025_23_56_18_6191.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1330892928","1330892918","1330892921","1330892935","1330892932","1330892926"],"photo_ids_order":["1330892918","1330892921","1330892926","1330892928","1330892932","1330892935"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/ee79ec7baf880f3e97a6d8af83e02c8c.jpg","text":"TemporaryFile(/tmp/multipartBody2593923588251739867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737673052544,"filename":"image_23012025_23_56_31_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/05989b4d5272bb85a0066430103234a5.jpg","text":"TemporaryFile(/tmp/multipartBody3530750375430578474asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737673052544,"filename":"image_23012025_23_56_54_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/e617bbe98e56963f0bb306cb89b04408.jpg","text":"TemporaryFile(/tmp/multipartBody8703244785433158550asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737673052544,"filename":"image_23012025_23_56_42_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/37d363609cf386c73c79be1f04f63c8f.jpg","text":"TemporaryFile(/tmp/multipartBody2163693477710542046asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737673052544,"filename":"image_23012025_23_56_18_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/b4b75ba2955341927652188e870d5394.jpg","text":"TemporaryFile(/tmp/multipartBody1014854512302419616asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737673052544,"filename":"image_23012025_23_56_24_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/23/c413333b08d004d9f8869eb9ad1edebf.jpg","text":"TemporaryFile(/tmp/multipartBody3999491551477296737asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1737673052544,"filename":"image_23012025_23_56_37_6190.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1330892926","file1":"1330892921","file0":"1330892918","file4":"1330892932","file5":"1330892935","file3":"1330892928"},"map_files_photo_id_array":[{"photo_id":"1330892935","filename":"file5"},{"photo_id":"1330892926","filename":"file2"},{"photo_id":"1330892932","filename":"file4"},{"photo_id":"1330892921","filename":"file1"},{"photo_id":"1330892918","filename":"file0"},{"photo_id":"1330892928","filename":"file3"}],"portfolio_id":19847706,"hashtag_by_photo_ids":[{"1330892928":["hashtag1","hashtag2"]},{"1330892918":["hashtag1","hashtag2"]},{"1330892921":["hashtag1","hashtag2"]},{"1330892935":["hashtag1","hashtag2"]},{"1330892932":["hashtag1","hashtag2"]},{"1330892926":["hashtag1","hashtag2"]}],"comms":"Portfolio 19847706 used, photo_id : ArrayBuffer(1330892928, 1330892918, 1330892921, 1330892935, 1330892932, 1330892926)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.553400993347168 secondes ---
Start to upload photos with parameters : -o DESC -n AEC_mm_0125 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-01-23 23:57:31.999382
  port_id : 19847706
  datou_current_id : 2506585
in upload_from_sqlite, uploading in 19847706
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250123 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/23012025/23/57/image_23012025_23_57_54_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/23/57/image_23012025_23_57_48_6196.jpg', 2), ('/home/nano/Desktop/images/23012025/23/57/image_23012025_23_57_42_5191.jpg', 2), ('/home/nano/Desktop/images/23012025/23/57/image_23012025_23_57_37_6192.jpg', 2), ('/home/nano/Desktop/images/23012025/23/57/image_23012025_23_57_31_6193.jpg', 2), ('/home/nano/Desktop/images/23012025/23/57/image_23012025_23_57_24_6193.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/23012025/23/57/image_23012025_23_57_54_6193.jpg', '/home/nano/Desktop/images/23012025/23/57/image_23012025_23_57_48_6196.jpg', '/home/nano/Desktop/images/23012025/23/57/image_23012025_23_57_42_5191.jpg', '/home/nano/Desktop/images/23012025/23/57/image_23012025_23_57_37_6192.jpg', '/home/nano/Desktop/images/23012025/23/57/image_23012025_23_57_31_6193.jpg', '/home/nano/Desktop/images/23012025/23/57/image_23012025_23_57_24_6193.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2506585&datou=0
/home/nano/Desktop/images/23012025/23/57/image_23012025_23_57_54_6193.jpg
/home/nano/Desktop/images/23012025/23/57/image_23012025_23_57_48_6196.jpg
/home/nano/Desktop/images/23012025/23/57/image_23012025_23_57_42_5191.jpg
/home/nano/Desktop/images/23012025/23/57/image_23012025_23_57_37_6192.jpg
/home/nano/Desktop/images/23012025/23/57/image_23012025_23_57_31_6193.jpg
/home/nano/Desktop/images/23012025/23/57/image_23012025_23_57_24_6193.jpg
